ath9k: fix spurious MIC failure reports
authorFelix Fietkau <nbd@openwrt.org>
Sat, 28 Aug 2010 16:21:21 +0000 (18:21 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:32:01 +0000 (13:32 -0800)
commit1cd0695c23eb4e023662ef9832736e30cb98f8e8
tree4d2c6aea8dc960a7e09cd0384e5ea3703d1604c9
parent26f6f238655f8a646db1c4d7d1ba2fdd3f042adf
ath9k: fix spurious MIC failure reports

commit 56363ddeeed3afc5277ca227209773bc1042cc7b upstream.

According to the hardware documentation, the MIC failure bit is only
valid if the frame was decrypted using a valid TKIP key and is not a
fragment.
In some setups I've seen hardware-reported MIC failures on an AP that
was configured for CCMP only, so it's clear that additional checks are
necessary.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath.h
drivers/net/wireless/ath/ath9k/common.c
drivers/net/wireless/ath/ath9k/mac.c
drivers/net/wireless/ath/ath9k/recv.c