ath9k: fix dynamic WEP related regression
authorFelix Fietkau <nbd@openwrt.org>
Sat, 23 Jun 2012 17:23:31 +0000 (19:23 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Jun 2012 19:14:13 +0000 (15:14 -0400)
commitbed3d9c0b71f9afbfec905cb6db3b9f16be29d4d
treee9c9531371681fc01bcda264caa1c728a60b58fe
parent8311f0da95d483ceb76bafae6e0a8c90531fb577
ath9k: fix dynamic WEP related regression

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>
Cc: stable@vger.kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath.h
drivers/net/wireless/ath/ath9k/recv.c
drivers/net/wireless/ath/key.c
This page took 0.027605 seconds and 5 git commands to generate.