]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
ath9k: fix spurious MIC failure reports
authorFelix Fietkau <nbd@openwrt.org>
Sat, 28 Aug 2010 16:21:21 +0000 (18:21 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 31 Aug 2010 18:22:23 +0000 (14:22 -0400)
commit56363ddeeed3afc5277ca227209773bc1042cc7b
tree2f92621e743983cb10175bbbd009ae2e167d1054
parent3653910714a4a9b19aadb202c24f7b1ae61d3556
ath9k: fix spurious MIC failure reports

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>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
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