diff options
author | John W. Linville <linville@tuxdriver.com> | 2007-08-07 16:33:15 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-08-14 16:48:23 -0400 |
commit | b9bf1e60a294fc7795d5198f94a917290e52865b (patch) | |
tree | 80460b0993fcb6069731e9173220d709116d362c /net | |
parent | 7b7ed879254ad43990c9d67f95be3427401c3392 (diff) |
[PATCH] mac80211: probe for hidden SSIDs in pre-auth scan
Probe for hidden SSIDs if initiating pre-authentication scan and SSID
is set for STA interface.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/ieee80211_sta.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c index 7ba352e3ffe0..0d99b685df5f 100644 --- a/net/mac80211/ieee80211_sta.c +++ b/net/mac80211/ieee80211_sta.c | |||
@@ -2154,7 +2154,11 @@ static int ieee80211_sta_config_auth(struct net_device *dev, | |||
2154 | return 0; | 2154 | return 0; |
2155 | } else { | 2155 | } else { |
2156 | if (ifsta->state != IEEE80211_AUTHENTICATE) { | 2156 | if (ifsta->state != IEEE80211_AUTHENTICATE) { |
2157 | ieee80211_sta_start_scan(dev, NULL, 0); | 2157 | if (ifsta->auto_ssid_sel) |
2158 | ieee80211_sta_start_scan(dev, NULL, 0); | ||
2159 | else | ||
2160 | ieee80211_sta_start_scan(dev, ifsta->ssid, | ||
2161 | ifsta->ssid_len); | ||
2158 | ifsta->state = IEEE80211_AUTHENTICATE; | 2162 | ifsta->state = IEEE80211_AUTHENTICATE; |
2159 | set_bit(IEEE80211_STA_REQ_AUTH, &ifsta->request); | 2163 | set_bit(IEEE80211_STA_REQ_AUTH, &ifsta->request); |
2160 | } else | 2164 | } else |