Skip to content

Commit a9937a3

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 cbea71b commit a9937a3

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
@@ -5897,7 +5897,8 @@ ieee80211_determine_our_sta_mode(struct ieee80211_sub_if_data *sdata,
58975897

58985898
if (is_5ghz &&
58995899
!(vht_cap.cap & (IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ |
5900-
IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ))) {
5900+
IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ |
5901+
IEEE80211_VHT_CAP_EXT_NSS_BW_MASK))) {
59015902
conn->bw_limit = IEEE80211_CONN_BW_LIMIT_80;
59025903
mlme_link_id_dbg(sdata, link_id,
59035904
"no VHT 160 MHz capability on 5 GHz, limiting to 80 MHz");

0 commit comments

Comments
 (0)