diff options
author | Johannes Berg <johannes.berg@intel.com> | 2023-06-04 11:11:22 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-06-06 14:15:56 +0200 |
commit | 92747f17c431a75967b461bedbb36ff259acead1 (patch) | |
tree | a10fa3fc8b9b4ab956247a9758d7828a1d3a1630 /scripts/relocs_check.sh | |
parent | wifi: mac80211: move sta_info_move_state() up (diff) | |
download | linux-92747f17c431a75967b461bedbb36ff259acead1.tar.xz linux-92747f17c431a75967b461bedbb36ff259acead1.zip |
wifi: mac80211: batch recalc during STA flush
When we flush stations, we first take them off the list
and then destroy them one by one. If we do the different
mode recalculations while destroying them, we cause the
following scenario:
- STA 1 has 80 MHz - min chanctx width is now 80 MHz
- STA 2 has 80 MHz
- empty STA list
- destroy STA 2
- recalc min chanctx width -> results in 20 MHz as
the STA list is already empty
This is broken, since as far as the driver is concerned
STA 1 still exists at this point, and this causes issues
at least with iwlwifi.
Fix - and also optimize - this by doing the recalc of
min chanctx width (and also P2P PS) only after all the
stations were removed.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230604120651.48d262b6b42d.Ia15532657c17535c28ec0c5df263b65f0f80663c@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'scripts/relocs_check.sh')
0 files changed, 0 insertions, 0 deletions