aboutsummaryrefslogtreecommitdiff
path: root/sys/net80211
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2020-08-17 20:18:01 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2020-08-17 20:18:01 +0000
commit976485968e2b93db60696c5ad9af31c77fbe1ad2 (patch)
tree78721ea40f07de4b42035637abc59429735303e4 /sys/net80211
parent97d9ee18a9798db624d8c9af9950e2c179ea007d (diff)
downloadsrc-976485968e2b93db60696c5ad9af31c77fbe1ad2.tar.gz
src-976485968e2b93db60696c5ad9af31c77fbe1ad2.zip
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
Notes
Notes: svn path=/head/; revision=364327
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_proto.h b/sys/net80211/ieee80211_proto.h
index 1f255f4c736a..fafedf46cab5 100644
--- a/sys/net80211/ieee80211_proto.h
+++ b/sys/net80211/ieee80211_proto.h
@@ -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 */