]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_hw: fix interpretation of the rx KeyMiss flag
authorFelix Fietkau <nbd@openwrt.org>
Sat, 14 Jan 2012 14:08:34 +0000 (15:08 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Jan 2012 20:01:15 +0000 (15:01 -0500)
commit6c2cbca972b0bd904c8705ac3c9c90be3cec7145
tree183c13f11d014deba1b4fba2b8cc4c60f791bd3a
parent0b69d8eaf8aa97fe4e1737bcb1f6a1e03855464d
ath9k_hw: fix interpretation of the rx KeyMiss flag

Documentation states that the KeyMiss flag is only valid if RxFrameOK is
unset, however empirical evidence has shown that this is false.
When KeyMiss is set (and RxFrameOK is 1), the hardware passes a valid frame
which has not been decrypted. The driver then falsely marks the frame
as decrypted, and when using CCMP this corrupts the rx CCMP PN, leading
to connection hangs.

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/ath9k/ar9003_mac.c
drivers/net/wireless/ath/ath9k/mac.c