Skip to content

Commit 10c810c

Browse files
committed
wifi: mac80211: fix station NSS capability initialization order
JIRA: https://issues.redhat.com/browse/RHEL-73817 commit 819e0f1 Author: Benjamin Lin <benjamin-jw.lin@mediatek.com> Date: Mon Nov 18 16:07:22 2024 +0800 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> Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
1 parent fcb3d25 commit 10c810c

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
@@ -1911,6 +1911,8 @@ static int sta_link_apply_parameters(struct ieee80211_local *local,
19111911
params->eht_capa_len,
19121912
link_sta);
19131913

1914+
ieee80211_sta_init_nss(link_sta);
1915+
19141916
if (params->opmode_notif_used) {
19151917
/* returned value is only needed for rc update, but the
19161918
* rc isn't initialized here yet, so ignore it
@@ -1920,8 +1922,6 @@ static int sta_link_apply_parameters(struct ieee80211_local *local,
19201922
sband->band);
19211923
}
19221924

1923-
ieee80211_sta_init_nss(link_sta);
1924-
19251925
return 0;
19261926
}
19271927

0 commit comments

Comments
 (0)