ath9k: fix dynamic WEP related regression
authorFelix Fietkau <nbd@openwrt.org>
Sat, 23 Jun 2012 17:23:31 +0000 (19:23 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 12 Jul 2012 03:32:01 +0000 (04:32 +0100)
commite087c0136ef1d53213a5cbdc4187c15a88f55996
tree96c613c3ec7b9f30a8bcdd289bfb9672a41f51ce
parentec5b2b02eedb2c3471d5a87ba0f72d11b04c2af1
ath9k: fix dynamic WEP related regression

commit bed3d9c0b71f9afbfec905cb6db3b9f16be29d4d upstream.

commit 7a532fe7131216a02c81a6c1b1f8632da1195a58
ath9k_hw: fix interpretation of the rx KeyMiss flag

This commit used the rx key miss indication to detect packets that were
passed from the hardware without being decrypted, however it seems that
this bit is not only undefined in the static WEP case, but also for
dynamically allocated WEP keys. This caused a regression when using
WEP-LEAP.

This patch fixes the regression by keeping track of which key indexes
refer to CCMP keys and only using the key miss indication for those.

Reported-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/ath/ath.h
drivers/net/wireless/ath/ath9k/recv.c
drivers/net/wireless/ath/key.c