]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: clear the keys properly via DISABLE_KEY
authorKarthikeyan Kathirvel <kathirve@codeaurora.org>
Mon, 15 Nov 2021 10:04:40 +0000 (11:04 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 17 Nov 2021 07:32:44 +0000 (09:32 +0200)
commitaaacd1a8497dde76fdb7d117d38e0ca3e7140be3
tree761b4fe05f04bc3ff133a6f4b74c7fa5d7bba773
parent292b6e45483b8a3588ffa97f222b95f6d72788fd
ath11k: clear the keys properly via DISABLE_KEY

DISABLE_KEY sets the key_len to 0, firmware will not delete the keys if
key_len is 0. Changing from security mode to open mode will cause mcast
to be still encrypted without vdev restart.

Set the proper key_len for DISABLE_KEY cmd to clear the keys in
firmware.

Tested-on: IPQ6018 hw1.0 AHB WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1

Fixes: cb31f0c88272 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
Reported-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Karthikeyan Kathirvel <kathirve@codeaurora.org>
[sven@narfation.org: split into separate patches, clean up commit message]
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211115100441.33771-1-sven@narfation.org
drivers/net/wireless/ath/ath11k/mac.c
drivers/net/wireless/ath/ath11k/wmi.c