mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
wifi: mac80211_hwsim: don't run RC update on new STA on S1G vif
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>
This commit is contained in:
parent
a1d4a1bc09
commit
c6e9b87746
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user