Skip to content

Commit 819e0f1

Browse files
Benjamin Linjmberg-intel
authored andcommitted
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: a8bca3e ("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>
1 parent 52cebab commit 819e0f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/mac80211/cfg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,6 +1935,8 @@ static int sta_link_apply_parameters(struct ieee80211_local *local,
19351935
params->eht_capa_len,
19361936
link_sta);
19371937

1938+
ieee80211_sta_init_nss(link_sta);
1939+
19381940
if (params->opmode_notif_used) {
19391941
/* returned value is only needed for rc update, but the
19401942
* rc isn't initialized here yet, so ignore it
@@ -1944,8 +1946,6 @@ static int sta_link_apply_parameters(struct ieee80211_local *local,
19441946
sband->band);
19451947
}
19461948

1947-
ieee80211_sta_init_nss(link_sta);
1948-
19491949
return 0;
19501950
}
19511951

0 commit comments

Comments
 (0)