projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b3b991
)
ath: Missed to clear key4 of micentry
author
Rajkumar Manoharan
<rmanoharan@atheros.com>
Wed, 8 Dec 2010 14:31:05 +0000
(20:01 +0530)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 13 Dec 2010 20:23:27 +0000
(15:23 -0500)
key4 of micentry is used, if ATH_CRYPT_CAP_MIC_COMBINED is set.
But is not cleared on key cache reset.
Cc: stable@kernel.org
Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/key.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/key.c
b/drivers/net/wireless/ath/key.c
index 29a2961af5fc28f86441642c2165c613c4488fba..5d465e5fcf24560850eba244f3d266cbbda0c8da 100644
(file)
--- a/
drivers/net/wireless/ath/key.c
+++ b/
drivers/net/wireless/ath/key.c
@@
-58,6
+58,8
@@
bool ath_hw_keyreset(struct ath_common *common, u16 entry)
REG_WRITE(ah, AR_KEYTABLE_KEY1(micentry), 0);
REG_WRITE(ah, AR_KEYTABLE_KEY2(micentry), 0);
REG_WRITE(ah, AR_KEYTABLE_KEY3(micentry), 0);
+ if (common->crypt_caps & ATH_CRYPT_CAP_MIC_COMBINED)
+ REG_WRITE(ah, AR_KEYTABLE_KEY4(micentry), 0);
}