diff options
author | Dan Williams <dcbw@redhat.com> | 2008-08-18 15:32:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-26 20:06:30 -0400 |
commit | d0c2912fe8df81a8b723fb6ec4d4cdf523cbaff7 (patch) | |
tree | e5d2c767850eb246adfd81a7eb0d0a6a306b41fc /drivers/net/wireless/atmel.c | |
parent | 3c34a5d821b825b720189e87561ba18500cf8026 (diff) | |
download | linux-3.10-d0c2912fe8df81a8b723fb6ec4d4cdf523cbaff7.tar.gz linux-3.10-d0c2912fe8df81a8b723fb6ec4d4cdf523cbaff7.tar.bz2 linux-3.10-d0c2912fe8df81a8b723fb6ec4d4cdf523cbaff7.zip |
atmel: try open system authentication too
When the AP rejects a Shared Key authentication request, try Open System
auth too.
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/atmel.c')
-rw-r--r-- | drivers/net/wireless/atmel.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/net/wireless/atmel.c b/drivers/net/wireless/atmel.c index f23bcd07dee..bd65c485098 100644 --- a/drivers/net/wireless/atmel.c +++ b/drivers/net/wireless/atmel.c @@ -3062,12 +3062,20 @@ static void authenticate(struct atmel_private *priv, u16 frame_len) } if (status == WLAN_STATUS_NOT_SUPPORTED_AUTH_ALG) { - /* Do opensystem first, then try sharedkey */ + /* Flip back and forth between WEP auth modes until the max + * authentication tries has been exceeded. + */ if (system == WLAN_AUTH_OPEN) { priv->CurrentAuthentTransactionSeqNum = 0x001; priv->exclude_unencrypted = 1; send_authentication_request(priv, WLAN_AUTH_SHARED_KEY, NULL, 0); return; + } else if ( system == WLAN_AUTH_SHARED_KEY + && priv->wep_is_on) { + priv->CurrentAuthentTransactionSeqNum = 0x001; + priv->exclude_unencrypted = 0; + send_authentication_request(priv, WLAN_AUTH_OPEN, NULL, 0); + return; } else if (priv->connect_to_any_BSS) { int bss_index; |