diff options
author | Stefan Rompf <stefan@loplof.de> | 2006-02-06 14:42:23 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-02-17 08:16:59 -0500 |
commit | 23afaec4441baf0579fa115b626242d4d23704dd (patch) | |
tree | 5a9ddf4e13fc686108f7b21aef02c1b9eec924ce | |
parent | 471680828330e6b2aac295cf7ac9d8e5820df2eb (diff) |
[PATCH] ipw2200: Fix WPA network selection problem
Do not avoid APs with wpa_ie or rsn_ie if !ieee->wpa_enabled
There are broken APs out there that fill these elements even
though encryption is disnabled. Also, this breaks legit WEP to
WPA migration scenarious.
We add a checking to prohibite WPA configured STA trying to
associate with non-WPA supported APs.
Signed-off-by: Stefan Rompf <stefan@loplof.de>
Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ipw2200.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index 0702f0eeb784..02d2dae85c4c 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c | |||
@@ -5533,8 +5533,8 @@ static int ipw_best_network(struct ipw_priv *priv, | |||
5533 | return 0; | 5533 | return 0; |
5534 | } | 5534 | } |
5535 | 5535 | ||
5536 | if (!priv->ieee->wpa_enabled && (network->wpa_ie_len > 0 || | 5536 | if (priv->ieee->wpa_enabled && |
5537 | network->rsn_ie_len > 0)) { | 5537 | network->wpa_ie_len == 0 && network->rsn_ie_len == 0) { |
5538 | IPW_DEBUG_ASSOC("Network '%s (" MAC_FMT ")' excluded " | 5538 | IPW_DEBUG_ASSOC("Network '%s (" MAC_FMT ")' excluded " |
5539 | "because of WPA capability mismatch.\n", | 5539 | "because of WPA capability mismatch.\n", |
5540 | escape_essid(network->ssid, network->ssid_len), | 5540 | escape_essid(network->ssid, network->ssid_len), |