Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Aug 2020 16:51:22 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r364315 - head/sys/net80211
Message-ID:  <202008171651.07HGpMdl002767@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008171651.07HGpMdl002767>