svn commit: r364315 - head/sys/net80211
Bjoern A. Zeeb
bz at FreeBSD.org
Mon Aug 17 16:51:22 UTC 2020
Author: bz
Date: Mon Aug 17 16:51:21 2020
New Revision: 364315
URL: https://svnweb.freebsd.org/changeset/base/364315
Log:
net80211: return 80P80 before 160
In ieee80211_vht_get_chwidth_ie() we need to return 80P80 (3) before
VHT160 (2) as otherwise we'll never use 80P80. Fix the order.
MFC after: 2 weeks
X-MFC with: r364303 (which missed this)
Sponsored by: Rubicon Communications, LLC (d/b/a "Netgate")
Modified:
head/sys/net80211/ieee80211_vht.c
Modified: head/sys/net80211/ieee80211_vht.c
==============================================================================
--- head/sys/net80211/ieee80211_vht.c Mon Aug 17 16:37:46 2020 (r364314)
+++ head/sys/net80211/ieee80211_vht.c Mon Aug 17 16:51:21 2020 (r364315)
@@ -693,10 +693,10 @@ ieee80211_vht_get_chwidth_ie(struct ieee80211_channel
* well?
*/
- if (IEEE80211_IS_CHAN_VHT160(c))
- return IEEE80211_VHT_CHANWIDTH_160MHZ;
if (IEEE80211_IS_CHAN_VHT80P80(c))
return IEEE80211_VHT_CHANWIDTH_80P80MHZ;
+ if (IEEE80211_IS_CHAN_VHT160(c))
+ return IEEE80211_VHT_CHANWIDTH_160MHZ;
if (IEEE80211_IS_CHAN_VHT80(c))
return IEEE80211_VHT_CHANWIDTH_80MHZ;
if (IEEE80211_IS_CHAN_VHT40(c))
More information about the svn-src-all
mailing list