]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: mac80211_hwsim: don't run RC update on new STA on S1G vif
authorLachlan Hodges <lachlan.hodges@morsemicro.com>
Wed, 27 May 2026 03:38:27 +0000 (13:38 +1000)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 28 May 2026 07:48:15 +0000 (09:48 +0200)
mac80211_hwsim_sta_rc_update() is unable to handle S1G widths so
when a new STA is added under a S1G vif the WARN is hit preventing
hwsim use for S1G. For now, skip calling rc_update() for S1G
interfaces. This is required such that the soon-to-be S1G hwsim tests
can successfully run.

Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Link: https://patch.msgid.link/20260527033828.183821-2-lachlan.hodges@morsemicro.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/virtual/mac80211_hwsim_main.c

index 67a33e5e7d541c6f0cf3af0935456bd1d595ee70..0241b38beddc50689e342b972ba1a9c815cce2d0 100644 (file)
@@ -2816,7 +2816,10 @@ static int mac80211_hwsim_sta_add(struct ieee80211_hw *hw,
 
        hwsim_check_magic(vif);
        hwsim_set_sta_magic(sta);
-       mac80211_hwsim_sta_rc_update(hw, vif, &sta->deflink, 0);
+
+       /* For now, don't run RC update on STAs on an S1G interface */
+       if (!vif->cfg.s1g)
+               mac80211_hwsim_sta_rc_update(hw, vif, &sta->deflink, 0);
 
        if (sta->valid_links) {
                WARN(hweight16(sta->valid_links) > 1,