ath9k_hw: handle rx key miss
authorFelix Fietkau <nbd@openwrt.org>
Tue, 14 Sep 2010 16:38:26 +0000 (18:38 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 14 Sep 2010 20:14:27 +0000 (16:14 -0400)
commit70a9fb6815e8c03eafb9563a96363b9988eb001b
tree9a36d507571c8cbc2169d4108061d60e77924c38
parent96deb62e35ec7c82aa52c89b9adb2740e07b4812
ath9k_hw: handle rx key miss

If AR_KeyMiss is set in the rx descriptor and AR_RxFrameOK is unset,
the hardware could not locate a valid key during a decryption attempt.

In this case, the frame must not be reported as decrypted, otherwise
mac80211 sees only random garbage.

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