linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* WEP-LEAP regression
@ 2012-06-20 14:33 Stanislaw Gruszka
  2012-06-20 19:59 ` Felix Fietkau
  0 siblings, 1 reply; 3+ messages in thread
From: Stanislaw Gruszka @ 2012-06-20 14:33 UTC (permalink / raw)
  To: Felix Fietkau; +Cc: linux-wireless

Our QA reported regression on ath9k connecting to legacy WEP-LEAP AP,
with the following supplicant parameters:

fast_reauth=1
ap_scan=1

eapol_version=1

network={
        ssid="qe-wep-enterprise-cisco"
        key_mgmt=IEEE8021X
        auth_alg=LEAP
        eap=LEAP
        identity="AAA"
        password="BBB"
}

Device associate but DHCP fails (we do no recive any frame).

Reverting both related commits:

commit f88373fa47f3ce6590fdfaa742d0ddacc2ae017f
Author: Felix Fietkau <nbd@openwrt.org>
Date:   Sun Feb 5 21:15:17 2012 +0100

    ath9k: fix a WEP crypto related regression

and
 
commit 7a532fe7131216a02c81a6c1b1f8632da1195a58
Author: Felix Fietkau <nbd@openwrt.org>
Date:   Sat Jan 14 15:08:34 2012 +0100

    ath9k_hw: fix interpretation of the rx KeyMiss flag

fixes the problem.

Felix could you look at this?

Stanislaw

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: WEP-LEAP regression
  2012-06-20 14:33 WEP-LEAP regression Stanislaw Gruszka
@ 2012-06-20 19:59 ` Felix Fietkau
  2012-06-21 10:21   ` Stanislaw Gruszka
  0 siblings, 1 reply; 3+ messages in thread
From: Felix Fietkau @ 2012-06-20 19:59 UTC (permalink / raw)
  To: Stanislaw Gruszka; +Cc: linux-wireless

On 2012-06-20 4:33 PM, Stanislaw Gruszka wrote:
> Our QA reported regression on ath9k connecting to legacy WEP-LEAP AP,
> with the following supplicant parameters:
> 
> fast_reauth=1
> ap_scan=1
> 
> eapol_version=1
> 
> network={
>         ssid="qe-wep-enterprise-cisco"
>         key_mgmt=IEEE8021X
>         auth_alg=LEAP
>         eap=LEAP
>         identity="AAA"
>         password="BBB"
> }
> 
> Device associate but DHCP fails (we do no recive any frame).
> 
> Reverting both related commits:
> 
> commit f88373fa47f3ce6590fdfaa742d0ddacc2ae017f
> Author: Felix Fietkau <nbd@openwrt.org>
> Date:   Sun Feb 5 21:15:17 2012 +0100
> 
>     ath9k: fix a WEP crypto related regression
> 
> and
>  
> commit 7a532fe7131216a02c81a6c1b1f8632da1195a58
> Author: Felix Fietkau <nbd@openwrt.org>
> Date:   Sat Jan 14 15:08:34 2012 +0100
> 
>     ath9k_hw: fix interpretation of the rx KeyMiss flag
> 
> fixes the problem.
> 
> Felix could you look at this?
Please try this patch:

--- a/drivers/net/wireless/ath/ath.h
+++ b/drivers/net/wireless/ath/ath.h
@@ -143,6 +143,7 @@ struct ath_common {
 	u32 keymax;
 	DECLARE_BITMAP(keymap, ATH_KEYMAX);
 	DECLARE_BITMAP(tkip_keymap, ATH_KEYMAX);
+	DECLARE_BITMAP(ccmp_keymap, ATH_KEYMAX);
 	enum ath_crypt_caps crypt_caps;
 
 	unsigned int clockrate;
--- a/drivers/net/wireless/ath/key.c
+++ b/drivers/net/wireless/ath/key.c
@@ -556,6 +556,9 @@ int ath_key_config(struct ath_common *co
 		return -EIO;
 
 	set_bit(idx, common->keymap);
+	if (key->cipher == WLAN_CIPHER_SUITE_CCMP)
+		set_bit(idx, common->ccmp_keymap);
+
 	if (key->cipher == WLAN_CIPHER_SUITE_TKIP) {
 		set_bit(idx + 64, common->keymap);
 		set_bit(idx, common->tkip_keymap);
@@ -582,6 +585,7 @@ void ath_key_delete(struct ath_common *c
 		return;
 
 	clear_bit(key->hw_key_idx, common->keymap);
+	clear_bit(key->hw_key_idx, common->ccmp_keymap);
 	if (key->cipher != WLAN_CIPHER_SUITE_TKIP)
 		return;
 
--- a/drivers/net/wireless/ath/ath9k/recv.c
+++ b/drivers/net/wireless/ath/ath9k/recv.c
@@ -785,7 +785,8 @@ static bool ath9k_rx_accept(struct ath_c
 	 * descriptor does contain a valid key index. This has been observed
 	 * mostly with CCMP encryption.
 	 */
-	if (rx_stats->rs_keyix == ATH9K_RXKEYIX_INVALID)
+	if (rx_stats->rs_keyix == ATH9K_RXKEYIX_INVALID ||
+	    !test_bit(rx_stats->rs_keyix, common->ccmp_keymap))
 		rx_stats->rs_status &= ~ATH9K_RXERR_KEYMISS;
 
 	if (!rx_stats->rs_datalen) {


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: WEP-LEAP regression
  2012-06-20 19:59 ` Felix Fietkau
@ 2012-06-21 10:21   ` Stanislaw Gruszka
  0 siblings, 0 replies; 3+ messages in thread
From: Stanislaw Gruszka @ 2012-06-21 10:21 UTC (permalink / raw)
  To: Felix Fietkau; +Cc: linux-wireless

On Wed, Jun 20, 2012 at 09:59:07PM +0200, Felix Fietkau wrote:
> Please try this patch:

It fixes the problem .

Thanks
Stanislaw


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-21 10:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-20 14:33 WEP-LEAP regression Stanislaw Gruszka
2012-06-20 19:59 ` Felix Fietkau
2012-06-21 10:21   ` Stanislaw Gruszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).