Commit 2270c817 authored by Oldřich Jedlička's avatar Oldřich Jedlička Committed by Zheng Zengkai
Browse files

wifi: mac80211: do not pass AP_VLAN vif pointer to drivers during flush

stable inclusion
from stable-v6.6.5
commit ee0db868ee4d88493dfdc82f59e3b4e449ddddd5
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8N21P

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ee0db868ee4d88493dfdc82f59e3b4e449ddddd5

--------------------------------

[ Upstream commit 3e3a2b645c043f7e3e488d5011478cefb69bbe8b ]

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: 0b75a1b1 ("wifi: mac80211: flush queues on STA removal")
Fixes: d00800a2 ("wifi: mac80211: add flush_sta method")
Tested-by: default avatarKonstantin Demin <rockdrilla@gmail.com>
Tested-by: default avatarKoen Vandeputte <koen.vandeputte@citymesh.com>
Signed-off-by: default avatarOldřich Jedlička <oldium.pro@gmail.com>
Link: https://lore.kernel.org/r/20231104141333.3710-1-oldium.pro@gmail.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent e5d58b94
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment