aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-07-01 15:40:45 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-10 15:01:52 -0400
commit6dc1cb0319997648f59b0f46b9e093e779f0353d (patch)
tree79bb836ba724a77ac200e5b11d3930adb92bb25d /net/mac80211/mlme.c
parentac00326e9d1d46bf48e9cf60cf892a96b885601a (diff)
mac80211: remove auth algorithm retry
The automatic auth algorithm issue is now solved in cfg80211, so mac80211 no longer needs code to try different algorithms -- just using whatever cfg80211 asked for is good. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 2a7860009f9c..2b357c7adb8d 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1414,39 +1414,6 @@ static void ieee80211_rx_mgmt_auth(struct ieee80211_sub_if_data *sdata,
1414 return; 1414 return;
1415 1415
1416 if (status_code != WLAN_STATUS_SUCCESS) { 1416 if (status_code != WLAN_STATUS_SUCCESS) {
1417 if (status_code == WLAN_STATUS_NOT_SUPPORTED_AUTH_ALG) {
1418 u8 algs[3];
1419 const int num_algs = ARRAY_SIZE(algs);
1420 int i, pos;
1421 algs[0] = algs[1] = algs[2] = 0xff;
1422 if (ifmgd->auth_algs & IEEE80211_AUTH_ALG_OPEN)
1423 algs[0] = WLAN_AUTH_OPEN;
1424 if (ifmgd->auth_algs & IEEE80211_AUTH_ALG_SHARED_KEY)
1425 algs[1] = WLAN_AUTH_SHARED_KEY;
1426 if (ifmgd->auth_algs & IEEE80211_AUTH_ALG_LEAP)
1427 algs[2] = WLAN_AUTH_LEAP;
1428 if (ifmgd->auth_alg == WLAN_AUTH_OPEN)
1429 pos = 0;
1430 else if (ifmgd->auth_alg == WLAN_AUTH_SHARED_KEY)
1431 pos = 1;
1432 else
1433 pos = 2;
1434 for (i = 0; i < num_algs; i++) {
1435 pos++;
1436 if (pos >= num_algs)
1437 pos = 0;
1438 if (algs[pos] == ifmgd->auth_alg ||
1439 algs[pos] == 0xff)
1440 continue;
1441 if (algs[pos] == WLAN_AUTH_SHARED_KEY &&
1442 !ieee80211_sta_wep_configured(sdata))
1443 continue;
1444 ifmgd->auth_alg = algs[pos];
1445 ifmgd->auth_tries = 0;
1446 return;
1447 }
1448 }
1449 /* nothing else to try -- give up */
1450 cfg80211_send_rx_auth(sdata->dev, (u8 *) mgmt, len, 1417 cfg80211_send_rx_auth(sdata->dev, (u8 *) mgmt, len,
1451 GFP_KERNEL); 1418 GFP_KERNEL);
1452 ifmgd->state = IEEE80211_STA_MLME_DISABLED; 1419 ifmgd->state = IEEE80211_STA_MLME_DISABLED;
@@ -2102,18 +2069,6 @@ static void ieee80211_sta_reset_auth(struct ieee80211_sub_if_data *sdata)
2102 drv_reset_tsf(local); 2069 drv_reset_tsf(local);
2103 2070
2104 ifmgd->wmm_last_param_set = -1; /* allow any WMM update */ 2071 ifmgd->wmm_last_param_set = -1; /* allow any WMM update */
2105
2106
2107 if (ifmgd->auth_algs & IEEE80211_AUTH_ALG_OPEN)
2108 ifmgd->auth_alg = WLAN_AUTH_OPEN;
2109 else if (ifmgd->auth_algs & IEEE80211_AUTH_ALG_SHARED_KEY)
2110 ifmgd->auth_alg = WLAN_AUTH_SHARED_KEY;
2111 else if (ifmgd->auth_algs & IEEE80211_AUTH_ALG_LEAP)
2112 ifmgd->auth_alg = WLAN_AUTH_LEAP;
2113 else if (ifmgd->auth_algs & IEEE80211_AUTH_ALG_FT)
2114 ifmgd->auth_alg = WLAN_AUTH_FT;
2115 else
2116 ifmgd->auth_alg = WLAN_AUTH_OPEN;
2117 ifmgd->auth_transaction = -1; 2072 ifmgd->auth_transaction = -1;
2118 ifmgd->flags &= ~IEEE80211_STA_ASSOCIATED; 2073 ifmgd->flags &= ~IEEE80211_STA_ASSOCIATED;
2119 ifmgd->assoc_scan_tries = 0; 2074 ifmgd->assoc_scan_tries = 0;
@@ -2351,8 +2306,6 @@ void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata)
2351 skb_queue_head_init(&ifmgd->skb_queue); 2306 skb_queue_head_init(&ifmgd->skb_queue);
2352 2307
2353 ifmgd->capab = WLAN_CAPABILITY_ESS; 2308 ifmgd->capab = WLAN_CAPABILITY_ESS;
2354 ifmgd->auth_algs = IEEE80211_AUTH_ALG_OPEN |
2355 IEEE80211_AUTH_ALG_SHARED_KEY;
2356 ifmgd->flags |= IEEE80211_STA_CREATE_IBSS | 2309 ifmgd->flags |= IEEE80211_STA_CREATE_IBSS |
2357 IEEE80211_STA_AUTO_BSSID_SEL | 2310 IEEE80211_STA_AUTO_BSSID_SEL |
2358 IEEE80211_STA_AUTO_CHANNEL_SEL; 2311 IEEE80211_STA_AUTO_CHANNEL_SEL;