]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: fix a WEP crypto related regression
authorFelix Fietkau <nbd@openwrt.org>
Sun, 5 Feb 2012 20:15:17 +0000 (21:15 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Feb 2012 16:34:02 +0000 (11:34 -0500)
commitb4084842a6a054226becc9f4850f399eb65db262
tree806086755a4ba5bb35674d8960bccce552d1c3cc
parent0aacdaf642bb5557c8c25b7a4bfc13ff8a228120
ath9k: fix a WEP crypto related regression

commit b4a82a0 "ath9k_hw: fix interpretation of the rx KeyMiss flag"
fixed the interpretation of the KeyMiss flag for keycache based lookups,
however WEP encryption uses a static index, so KeyMiss is always asserted
for it, even though frames are decrypted properly.
Fix this by clearing the ATH9K_RXERR_KEYMISS flag if no keycache based
lookup was performed.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Cc: stable@vger.kernel.org
Reported-by: Laurent Bonnans <bonnans.l@gmail.com>
Reported-by: Jurica Vukadin <u.ra604@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/recv.c