]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: Fixed RX decryption status reporting
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 18 Dec 2008 12:33:00 +0000 (14:33 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Dec 2008 20:23:53 +0000 (15:23 -0500)
commit4c72eccc46e6221fe9a6b24720725c21ef8ebfa3
tree2d25940ee9e8af06be7f903c8265722d81b07148
parente6a956fb670445f41c5504c401f80f55ad06fba0
ath9k: Fixed RX decryption status reporting

The RX code in ath9k uses sc_keymap to figure out whether a default
key was used. However, the default key entries in sc_keymap were
always set and as such, frames could have been claimed to be decrypted
by hardware when they were not. This can cause problems especially
with TKIP since mac80211 is validating the Michael MIC in the frame
and this will result in MIC failure and potentially TKIP
countermeasures if the frame was not decrypted correctly.

Change key cache slot allocation to mark only the keys that really
have been used in sc_keymap to avoid the issue. The key cache slot
selection routines are now internally avoiding the slots that may be
needed for TKIP group keys.

Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/main.c