ath9k: add NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 support
authorAlexander Wetzel <alexander@wetzel-home.de>
Tue, 4 Aug 2020 16:41:51 +0000 (18:41 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 17 Aug 2020 10:22:43 +0000 (13:22 +0300)
commit4bad3a2041b5391678834f2611cbf7b7c66ca8f7
tree16340dd48012ed57db84f41dff4836a9ac6eaeb6
parent54f9ab7b870934b70e5a21786d951fbcf663970f
ath9k: add NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 support

The ath9k driver was so far only able to rekey PTK0 keys correctly due
to the best effort queue flush added with commit 62872a9b9a10
("mac80211: Fix PTK rekey freezes and clear text leak").

Add the needed queue flush and set NL80211_EXT_FEATURE_CAN_REPLACE_PTK0
to tell mac80211 that the driver can now rekey PTK0 keys correctly and
no longer needs the best effort flush.

Effectively this prevents mac80211 to warn when rekeying a PTK0 key
only.

Signed-off-by: Alexander Wetzel <alexander@wetzel-home.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200804164152.175375-1-alexander@wetzel-home.de
drivers/net/wireless/ath/ath9k/init.c
drivers/net/wireless/ath/ath9k/main.c