OSDN Git Service

rtw88: add NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 support
authorTzu-En Huang <tehuang@realtek.com>
Tue, 8 Oct 2019 08:20:57 +0000 (16:20 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 14 Oct 2019 09:10:48 +0000 (12:10 +0300)
commit5dc32b8ace3754fab7f1c504e6e5dac6d0f7686d
tree589e06c0dbf6a7efd5675284eb2fac53d16d8432
parent27c65bfc434fb18db001c3ade07dbdb189eda7ec
rtw88: add NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 support

Add support for NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 feature.
According to the "Hardware crypto acceleration" documentation section,
when set_key() is called with %DISABLE_KEY command, for outgoing frames,
we flush out frames in the queues with the old key; for incoming frames,
no frames will be passed to mac80211 decrypted with the old key due to
rtw_sec_clear_cam().

Signed-off-by: Tzu-En Huang <tehuang@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/mac.h
drivers/net/wireless/realtek/rtw88/mac80211.c
drivers/net/wireless/realtek/rtw88/main.c