Skip to content

Commit 9d10225

Browse files
nscndgregkh
authored andcommitted
wifi: mac80211: handle VHT EXT NSS in ieee80211_determine_our_sta_mode()
[ Upstream commit b5b8e29 ] A station which has a NSS ratio on the number of streams it is capable of in 160MHz VHT operation is supposed to use the 'Extended NSS BW Support' as defined by section '9.4.2.156.2 VHT Capabilities Information field'. This was missing in ieee80211_determine_our_sta_mode() and so we would wrongfully downgrade our bandwidth when connecting to an AP that supported 160MHz with messages such as: [ 37.638346] wlan1: AP XX:XX:XX:XX:XX:XX changed bandwidth in assoc response, new used config is 5280.000 MHz, width 3 (5290.000/0 MHz) Fixes: 310c838 ("wifi: mac80211: clean up connection process") Signed-off-by: Nicolas Escande <nico.escande@gmail.com> Link: https://patch.msgid.link/20260327100256.3101348-1-nico.escande@gmail.com Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2e0e5a4 commit 9d10225

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

net/mac80211/mlme.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5304,7 +5304,8 @@ ieee80211_determine_our_sta_mode(struct ieee80211_sub_if_data *sdata,
53045304

53055305
if (is_5ghz &&
53065306
!(vht_cap.cap & (IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ |
5307-
IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ))) {
5307+
IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ |
5308+
IEEE80211_VHT_CAP_EXT_NSS_BW_MASK))) {
53085309
conn->bw_limit = IEEE80211_CONN_BW_LIMIT_80;
53095310
mlme_link_id_dbg(sdata, link_id,
53105311
"no VHT 160 MHz capability on 5 GHz, limiting to 80 MHz");

0 commit comments

Comments
 (0)