]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit89aebaaf0ad372a204ace695562d6538383dba3d
tree16340dd48012ed57db84f41dff4836a9ac6eaeb6
parentcd7566f63844bb60f059be03607dd3fccecc4eb6
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 2064ec0c9567
("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