]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita85ce9e1dba2cde572055a2a2bdfd3276b96d070
treee9c9531371681fc01bcda264caa1c728a60b58fe
parent156786553e07673f3eefbb117ded5bc396ff71c8
ath9k: fix dynamic WEP related regression

commit 6c2cbca972b0bd904c8705ac3c9c90be3cec7145
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