]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: mac80211: add support for storing station S1G capabilities
authorLachlan Hodges <lachlan.hodges@morsemicro.com>
Tue, 17 Jun 2025 08:06:09 +0000 (18:06 +1000)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 24 Jun 2025 13:19:28 +0000 (15:19 +0200)
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>
net/mac80211/cfg.c

index cc366d79d49a7c52ebc88bd7a322f663c9108ff8..56540c3701ed786c37f946f9c4af820c15b5922d 100644 (file)
@@ -1895,6 +1895,7 @@ static int sta_link_apply_parameters(struct ieee80211_local *local,
                       params->vht_capa ||
                       params->he_capa ||
                       params->eht_capa ||
+                      params->s1g_capa ||
                       params->opmode_notif_used;
 
        switch (mode) {
@@ -1973,6 +1974,10 @@ static int sta_link_apply_parameters(struct ieee80211_local *local,
                                                    params->eht_capa_len,
                                                    link_sta);
 
+       if (params->s1g_capa)
+               ieee80211_s1g_cap_to_sta_s1g_cap(sdata, params->s1g_capa,
+                                                link_sta);
+
        ieee80211_sta_init_nss(link_sta);
 
        if (params->opmode_notif_used) {