summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Lin <benjamin-jw.lin@mediatek.com>2024-11-18 16:07:22 +0800
committerJohannes Berg <johannes.berg@intel.com>2024-12-03 11:29:16 +0100
commit819e0f1e58e0ba3800cd9eb96b2a39e44e49df97 (patch)
treef9eee485b91424a1bddedb45670f229b4eb0009b
parent52cebabb1264a51c80b2461d52e71600c1c58df2 (diff)
downloadlwn-819e0f1e58e0ba3800cd9eb96b2a39e44e49df97.tar.gz
lwn-819e0f1e58e0ba3800cd9eb96b2a39e44e49df97.zip
wifi: mac80211: fix station NSS capability initialization order
Station's spatial streaming capability should be initialized before handling VHT OMN, because the handling requires the capability information. Fixes: a8bca3e9371d ("wifi: mac80211: track capability/opmode NSS separately") Signed-off-by: Benjamin Lin <benjamin-jw.lin@mediatek.com> Link: https://patch.msgid.link/20241118080722.9603-1-benjamin-jw.lin@mediatek.com [rewrite subject] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--net/mac80211/cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index b853afe2d2a6..d3fc158ccaf6 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1935,6 +1935,8 @@ static int sta_link_apply_parameters(struct ieee80211_local *local,
params->eht_capa_len,
link_sta);
+ ieee80211_sta_init_nss(link_sta);
+
if (params->opmode_notif_used) {
/* returned value is only needed for rc update, but the
* rc isn't initialized here yet, so ignore it
@@ -1944,8 +1946,6 @@ static int sta_link_apply_parameters(struct ieee80211_local *local,
sband->band);
}
- ieee80211_sta_init_nss(link_sta);
-
return 0;
}