Skip to content

Commit 73488cb

Browse files
Jouni MalinenKalle Valo
authored andcommitted
ath9k: Clear key cache explicitly on disabling hardware
Now that ath/key.c may not be explicitly clearing keys from the key cache, clear all key cache entries when disabling hardware to make sure no keys are left behind beyond this point. Signed-off-by: Jouni Malinen <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 56c5485 commit 73488cb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • drivers/net/wireless/ath/ath9k

drivers/net/wireless/ath/ath9k/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,11 @@ static void ath9k_stop(struct ieee80211_hw *hw)
894894

895895
spin_unlock_bh(&sc->sc_pcu_lock);
896896

897+
/* Clear key cache entries explicitly to get rid of any potentially
898+
* remaining keys.
899+
*/
900+
ath9k_cmn_init_crypto(sc->sc_ah);
901+
897902
ath9k_ps_restore(sc);
898903

899904
sc->ps_idle = prev_idle;

0 commit comments

Comments
 (0)