diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-08 11:58:23 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-11 15:53:37 -0400 |
commit | a0fe8b3349bdee27065b57cdceb2ca53c1487866 (patch) | |
tree | bc7329418a3c3eb8e93a9ce479a5f9ba5d576b8e | |
parent | 9116dd01120e249dc2e84e6edecd7ad7f828680f (diff) |
mac80211: simplify scan start
ieee80211_sta_start_scan() can very well take a non-NULL
ssid pointer with a zero ssid_len.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | net/mac80211/mlme.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index f43ca7b88d57..f4cbe5cc56c5 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -3052,10 +3052,7 @@ void ieee80211_sta_work(struct work_struct *work) | |||
3052 | ifsta->state != IEEE80211_STA_MLME_AUTHENTICATE && | 3052 | ifsta->state != IEEE80211_STA_MLME_AUTHENTICATE && |
3053 | ifsta->state != IEEE80211_STA_MLME_ASSOCIATE && | 3053 | ifsta->state != IEEE80211_STA_MLME_ASSOCIATE && |
3054 | test_and_clear_bit(IEEE80211_STA_REQ_SCAN, &ifsta->request)) { | 3054 | test_and_clear_bit(IEEE80211_STA_REQ_SCAN, &ifsta->request)) { |
3055 | if (ifsta->scan_ssid_len) | 3055 | ieee80211_sta_start_scan(sdata, ifsta->scan_ssid, ifsta->scan_ssid_len); |
3056 | ieee80211_sta_start_scan(sdata, ifsta->scan_ssid, ifsta->scan_ssid_len); | ||
3057 | else | ||
3058 | ieee80211_sta_start_scan(sdata, NULL, 0); | ||
3059 | return; | 3056 | return; |
3060 | } | 3057 | } |
3061 | 3058 | ||