Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
33 lines
971 B
Diff
33 lines
971 B
Diff
From: Benjamin Lin <benjamin-jw.lin@mediatek.com>
|
|
Date: Mon, 18 Nov 2024 16:07:22 +0800
|
|
Subject: [PATCH] wifi: mac80211: fix incorrect timing to initialize
|
|
station NSS capability
|
|
|
|
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>
|
|
---
|
|
|
|
--- a/net/mac80211/cfg.c
|
|
+++ b/net/mac80211/cfg.c
|
|
@@ -1914,6 +1914,8 @@ static int sta_link_apply_parameters(str
|
|
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
|
|
@@ -1923,8 +1925,6 @@ static int sta_link_apply_parameters(str
|
|
sband->band);
|
|
}
|
|
|
|
- ieee80211_sta_init_nss(link_sta);
|
|
-
|
|
return 0;
|
|
}
|
|
|