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 */
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to