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
This commit is contained in:
Bjoern A. Zeeb 2020-08-17 20:18:01 +00:00
parent 97d9ee18a9
commit 976485968e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364327

View File

@ -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 */