Skip to content

Commit 037dc18

Browse files
donnaskiezjmberg-intel
authored andcommitted
wifi: mac80211: add support for storing station S1G capabilities
When a station configuration is updated, update the stations S1G capabilities. Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com> Link: https://patch.msgid.link/20250617080610.756048-4-lachlan.hodges@morsemicro.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 2a8a6b7 commit 037dc18

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

net/mac80211/cfg.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,6 +1895,7 @@ static int sta_link_apply_parameters(struct ieee80211_local *local,
18951895
params->vht_capa ||
18961896
params->he_capa ||
18971897
params->eht_capa ||
1898+
params->s1g_capa ||
18981899
params->opmode_notif_used;
18991900

19001901
switch (mode) {
@@ -1973,6 +1974,10 @@ static int sta_link_apply_parameters(struct ieee80211_local *local,
19731974
params->eht_capa_len,
19741975
link_sta);
19751976

1977+
if (params->s1g_capa)
1978+
ieee80211_s1g_cap_to_sta_s1g_cap(sdata, params->s1g_capa,
1979+
link_sta);
1980+
19761981
ieee80211_sta_init_nss(link_sta);
19771982

19781983
if (params->opmode_notif_used) {

0 commit comments

Comments
 (0)