wifi: mac80211: flush queues on STA removal
authorJohannes Berg <johannes.berg@intel.com>
Fri, 31 Mar 2023 14:59:16 +0000 (16:59 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 13 Apr 2023 14:32:22 +0000 (16:32 +0200)
commit0b75a1b1e42e07ae84e3a11d2368b418546e2bec
tree79791df82ca12044876e91a946291170bce2490e
parent2c9abe653bc5134eeab411c46dde008d8a1c37b0
wifi: mac80211: flush queues on STA removal

When we remove a station, we first make it unreachable,
then we (must) remove its keys, and then remove the
station itself. Depending on the hardware design, if
we have hardware crypto at all, frames still sitting
on hardware queues may then be transmitted without a
valid key, possibly unencrypted or with a fixed key.

Fix this by flushing the queues when removing stations
so this cannot happen.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.c