wifi: mac80211: flush STA queues on unauthorization
authorJohannes Berg <johannes.berg@intel.com>
Thu, 28 Sep 2023 14:35:39 +0000 (17:35 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 23 Oct 2023 09:45:17 +0000 (11:45 +0200)
commit06d6af4e1223339bb597b02fa8ad3f979ddb5511
tree308b0581679887c8f1b29842ef4ea96403606023
parent3831f6d8ce9c3c237a561219a2fb9c41ec800331
wifi: mac80211: flush STA queues on unauthorization

When the station is marked as no longer authorized, we shouldn't
transmit to it any longer, but in particular we shouldn't be able
to transmit to it after removing keys, which might lead to frames
being sent out unencrypted depending on the exact hardware offload
mechanism. Thus, instead of flushing only on station destruction,
which covers only some cases, always flush on unauthorization.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230928172905.d47f528829e7.I96903652c7ee0c5c66891f8b2364383da8e45a1f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.c