wifi: mac80211: do not pass AP_VLAN vif pointer to drivers during flush
authorOldřich Jedlička <oldium.pro@gmail.com>
Sat, 4 Nov 2023 14:13:33 +0000 (15:13 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 24 Nov 2023 17:28:29 +0000 (18:28 +0100)
commit3e3a2b645c043f7e3e488d5011478cefb69bbe8b
tree273d905eb9ed3fee4bc01623749ce152f6f371e4
parent71b5e40651d89a8685bea1592dfcd2aa61559628
wifi: mac80211: do not pass AP_VLAN vif pointer to drivers during flush

This fixes WARN_ONs when using AP_VLANs after station removal. The flush
call passed AP_VLAN vif to driver, but because these vifs are virtual and
not registered with drivers, we need to translate to the correct AP vif
first.

Closes: https://github.com/openwrt/openwrt/issues/12420
Fixes: 0b75a1b1e42e ("wifi: mac80211: flush queues on STA removal")
Fixes: d00800a289c9 ("wifi: mac80211: add flush_sta method")
Tested-by: Konstantin Demin <rockdrilla@gmail.com>
Tested-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
Link: https://lore.kernel.org/r/20231104141333.3710-1-oldium.pro@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/driver-ops.h