]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: improve reliability of MIC error detection
authorFelix Fietkau <nbd@openwrt.org>
Wed, 13 Jul 2011 15:35:05 +0000 (23:35 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 15 Jul 2011 17:38:32 +0000 (13:38 -0400)
commit0ba14e6e3e6bfe5d68d6eeeeac8fbde2f625c7ec
treee1aabd62a59c42cebec3e208edd4198382c91a16
parentd45742ecd794ae6ae7e7dde766c8e8a53f8e78e7
ath9k: improve reliability of MIC error detection

For unicast the hardware sometimes reports MIC errors even though the
frame that it received actually contains a valid MIC - on some chips this
can happen frequently enough to trigger TKIP countermeasures.
Fix this issue by not reporting MIC errors for unicast frames with a
valid key, letting mac80211 validate the MIC instead.

Additionally, strip the MIC for all frames that the hardware considers
valid to avoid wasting CPU cycles re-validating it.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/recv.c