]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ath9k: Avoid corrupt frames being forwarded to mac80211.
authorVivek Natarajan <vnatarajan@atheros.com>
Tue, 27 Apr 2010 07:35:38 +0000 (13:05 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:20:46 +0000 (10:20 -0700)
commit8a16f471efd41605e8abc06ecabb8082caf6a63e
tree2818f31ee3758877d7febcb97f05f821dbf53552
parent1d8fba816fb4f6546dd1e8c6b302824f1adfde42
ath9k: Avoid corrupt frames being forwarded to mac80211.

commit 3a37495268ab45507b4cab9d4cb18c5496ab7a10 upstream.

If bit 29 is set, MAC H/W can attempt to decrypt the received aggregate
with WEP or TKIP, eventhough the received frame may be a CRC failed
corrupted frame. If this bit is set, H/W obeys key type in keycache.
If it is not set and if the key type in keycache is neither open nor
AES, H/W forces key type to be open.  But bit 29 should be set to 1
for AsyncFIFO feature to encrypt/decrypt the aggregate with WEP or TKIP.

Reported-by: Johan Hovold <johan.hovold@lundinova.se>
Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Signed-off-by: Ranga Rao Ravuri <ranga.ravuri@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/initvals.h