aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorAbhijeet Kolekar <abhijeet.kolekar@intel.com>2008-05-09 12:35:41 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-16 17:14:44 -0400
commit34a961f7db36f10abd6b153411fe8c810f21f6b3 (patch)
tree243f70ff2ae5655bdf383495ee984749891e2ec2 /net/mac80211/mlme.c
parent23f40dc650c0344b37fe54143868a31be66db882 (diff)
mac80211 : Association with 11n hidden ssid ap.
This patch fixes the association problem with 11n hidden ssid ap. Patch fixes the problem of associating with hidden ssid when all three parameters ap,essid and channel are given to iwconfig. This patch removes the condition of checking three parameters and always checks for bss in bss list while associating. Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 4adba09e80ca..e470bf12b765 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -3446,21 +3446,17 @@ static int ieee80211_sta_config_auth(struct net_device *dev,
3446 struct ieee80211_sta_bss *bss, *selected = NULL; 3446 struct ieee80211_sta_bss *bss, *selected = NULL;
3447 int top_rssi = 0, freq; 3447 int top_rssi = 0, freq;
3448 3448
3449 if (!(ifsta->flags & (IEEE80211_STA_AUTO_SSID_SEL |
3450 IEEE80211_STA_AUTO_BSSID_SEL | IEEE80211_STA_AUTO_CHANNEL_SEL))) {
3451 ifsta->state = IEEE80211_AUTHENTICATE;
3452 ieee80211_sta_reset_auth(dev, ifsta);
3453 return 0;
3454 }
3455
3456 spin_lock_bh(&local->sta_bss_lock); 3449 spin_lock_bh(&local->sta_bss_lock);
3457 freq = local->oper_channel->center_freq; 3450 freq = local->oper_channel->center_freq;
3458 list_for_each_entry(bss, &local->sta_bss_list, list) { 3451 list_for_each_entry(bss, &local->sta_bss_list, list) {
3459 if (!(bss->capability & WLAN_CAPABILITY_ESS)) 3452 if (!(bss->capability & WLAN_CAPABILITY_ESS))
3460 continue; 3453 continue;
3461 3454
3462 if (!!(bss->capability & WLAN_CAPABILITY_PRIVACY) ^ 3455 if ((ifsta->flags & (IEEE80211_STA_AUTO_SSID_SEL |
3463 !!sdata->default_key) 3456 IEEE80211_STA_AUTO_BSSID_SEL |
3457 IEEE80211_STA_AUTO_CHANNEL_SEL)) &&
3458 (!!(bss->capability & WLAN_CAPABILITY_PRIVACY) ^
3459 !!sdata->default_key))
3464 continue; 3460 continue;
3465 3461
3466 if (!(ifsta->flags & IEEE80211_STA_AUTO_CHANNEL_SEL) && 3462 if (!(ifsta->flags & IEEE80211_STA_AUTO_CHANNEL_SEL) &&