svn commit: r364326 - head/sys/net80211

Bjoern A. Zeeb bz at FreeBSD.org
Mon Aug 17 20:16:34 UTC 2020


Author: bz
Date: Mon Aug 17 20:16:33 2020
New Revision: 364326
URL: https://svnweb.freebsd.org/changeset/base/364326

Log:
  net80211: VHT correct NSS Set loop boundary
  
  For the <VHT-MCS, NSS> tuple, NSS is 1..8 (or in our loop case 0..7
  but not 0..6). Correct the boundry to check for < 8 and not < 7.
  
  MFC after:	2 weeks
  Reviewed by:	adrian
  Sponsored by:	Rubicon Communications, LLC (d/b/a "Netgate")
  Differential Revision:	https://reviews.freebsd.org/D26087

Modified:
  head/sys/net80211/ieee80211_vht.c

Modified: head/sys/net80211/ieee80211_vht.c
==============================================================================
--- head/sys/net80211/ieee80211_vht.c	Mon Aug 17 20:11:43 2020	(r364325)
+++ head/sys/net80211/ieee80211_vht.c	Mon Aug 17 20:16:33 2020	(r364326)
@@ -218,7 +218,7 @@ ieee80211_vht_announce(struct ieee80211com *ic)
 	    IEEE80211_VHTCAP_BITS);
 
 	/* For now, just 5GHz VHT.  Worry about 2GHz VHT later */
-	for (i = 0; i < 7; i++) {
+	for (i = 0; i < 8; i++) {
 		/* Each stream is 2 bits */
 		tx = (ic->ic_vht_mcsinfo.tx_mcs_map >> (2*i)) & 0x3;
 		rx = (ic->ic_vht_mcsinfo.rx_mcs_map >> (2*i)) & 0x3;


More information about the svn-src-head mailing list