Return-path: Received: from mail-px0-f189.google.com ([209.85.216.189]:63182 "EHLO mail-px0-f189.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750698Ab0BFOi1 (ORCPT ); Sat, 6 Feb 2010 09:38:27 -0500 Received: by pxi27 with SMTP id 27so2377806pxi.4 for ; Sat, 06 Feb 2010 06:38:26 -0800 (PST) From: tom.leiming@gmail.com To: lrodriguez@atheros.com Cc: linux-wireless@vger.kernel.org, ath9k-devel@lists.ath9k.org, linville@tuxdriver.com, johannes@sipsolutions.net, stable@kernel.org, Ming Lei Subject: [PATCH] ath9k: fix keycache leak in split tkip case Date: Sat, 6 Feb 2010 22:38:23 +0800 Message-Id: <1265467103-11474-1-git-send-email-tom.leiming@gmail.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Ming Lei If split tkip key is used, ath_delete_key should delete rx key and rx mic key. This patch fixes the leak of hw keycache in the case. --- The patch is against the latest wireless test tree. Signed-off-by: Ming Lei --- drivers/net/wireless/ath/ath9k/main.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 6796d5c..928402b 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -809,6 +809,7 @@ static void ath_key_delete(struct ath_common *common, struct ieee80211_key_conf clear_bit(key->hw_key_idx + 64, common->keymap); if (common->splitmic) { + ath9k_hw_keyreset(ah, key->hw_key_idx + 32); clear_bit(key->hw_key_idx + 32, common->keymap); clear_bit(key->hw_key_idx + 64 + 32, common->keymap); } -- 1.6.2.5