Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Aug 2020 20:18:02 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r364327 - head/sys/net80211
Message-ID:  <202008172018.07HKI2UR032897@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Mon Aug 17 20:18:01 2020
New Revision: 364327
URL: https://svnweb.freebsd.org/changeset/base/364327

Log:
  net80211: replace magic number by define
  
  Rather than coding an array size of [4] replace the number with
  WME_NUM_AC.
  
  MFC after:	2 weeks
  Reviewed by:	adrian
  Sponsored by:	Rubicon Communications, LLC (d/b/a "Netgate")
  Differential Revision:	https://reviews.freebsd.org/D26090

Modified:
  head/sys/net80211/ieee80211_proto.h

Modified: head/sys/net80211/ieee80211_proto.h
==============================================================================
--- head/sys/net80211/ieee80211_proto.h	Mon Aug 17 20:16:33 2020	(r364326)
+++ head/sys/net80211/ieee80211_proto.h	Mon Aug 17 20:18:01 2020	(r364327)
@@ -286,7 +286,7 @@ struct ieee80211_wme_state {
 	u_int	wme_hipri_switch_thresh;/* aggressive mode switch thresh */
 	u_int	wme_hipri_switch_hysteresis;/* aggressive mode switch hysteresis */
 
-	struct wmeParams wme_params[4];		/* from assoc resp for each AC*/
+	struct wmeParams wme_params[WME_NUM_AC]; /* from assoc resp for each AC */
 	struct chanAccParams wme_wmeChanParams;	/* WME params applied to self */
 	struct chanAccParams wme_wmeBssChanParams;/* WME params bcast to stations */
 	struct chanAccParams wme_chanParams;	/* params applied to self */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008172018.07HKI2UR032897>