diff options
Diffstat (limited to 'drivers/net/wireless/ipw2200.c')
-rw-r--r-- | drivers/net/wireless/ipw2200.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index c9b306a8116c..e36a1fd9eefd 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c | |||
@@ -5510,6 +5510,15 @@ static int ipw_best_network(struct ipw_priv *priv, | |||
5510 | return 0; | 5510 | return 0; |
5511 | } | 5511 | } |
5512 | 5512 | ||
5513 | if (!priv->ieee->wpa_enabled && (network->wpa_ie_len > 0 || | ||
5514 | network->rsn_ie_len > 0)) { | ||
5515 | IPW_DEBUG_ASSOC("Network '%s (" MAC_FMT ")' excluded " | ||
5516 | "because of WPA capability mismatch.\n", | ||
5517 | escape_essid(network->ssid, network->ssid_len), | ||
5518 | MAC_ARG(network->bssid)); | ||
5519 | return 0; | ||
5520 | } | ||
5521 | |||
5513 | if ((priv->config & CFG_STATIC_BSSID) && | 5522 | if ((priv->config & CFG_STATIC_BSSID) && |
5514 | memcmp(network->bssid, priv->bssid, ETH_ALEN)) { | 5523 | memcmp(network->bssid, priv->bssid, ETH_ALEN)) { |
5515 | IPW_DEBUG_ASSOC("Network '%s (" MAC_FMT ")' excluded " | 5524 | IPW_DEBUG_ASSOC("Network '%s (" MAC_FMT ")' excluded " |
@@ -6228,6 +6237,7 @@ static int ipw_wpa_enable(struct ipw_priv *priv, int value) | |||
6228 | { | 6237 | { |
6229 | /* This is called when wpa_supplicant loads and closes the driver | 6238 | /* This is called when wpa_supplicant loads and closes the driver |
6230 | * interface. */ | 6239 | * interface. */ |
6240 | priv->ieee->wpa_enabled = value; | ||
6231 | return 0; | 6241 | return 0; |
6232 | } | 6242 | } |
6233 | 6243 | ||