diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2010-02-03 07:57:46 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-02-08 16:50:53 -0500 |
commit | 070bb5477fb4029131aad4941d7aaf0093db0c38 (patch) | |
tree | 2f2e0bda0a7fc3d7772053e53ca7e879a4c57a1c /net/mac80211/mlme.c | |
parent | 33e5a2f776e331dc8a4379b6efb660d38f182d96 (diff) |
mac80211: don't probe if we have probe response
We can now easily determine whether we already
have probe response information for the BSS we
are asked to connect to, in which case there's
little point in probing the BSS again.
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.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 86c6ad1b058d..f437284830ef 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -27,10 +27,6 @@ | |||
27 | #include "rate.h" | 27 | #include "rate.h" |
28 | #include "led.h" | 28 | #include "led.h" |
29 | 29 | ||
30 | #define IEEE80211_AUTH_TIMEOUT (HZ / 5) | ||
31 | #define IEEE80211_AUTH_MAX_TRIES 3 | ||
32 | #define IEEE80211_ASSOC_TIMEOUT (HZ / 5) | ||
33 | #define IEEE80211_ASSOC_MAX_TRIES 3 | ||
34 | #define IEEE80211_MAX_PROBE_TRIES 5 | 30 | #define IEEE80211_MAX_PROBE_TRIES 5 |
35 | 31 | ||
36 | /* | 32 | /* |
@@ -1844,7 +1840,11 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata, | |||
1844 | wk->probe_auth.algorithm = auth_alg; | 1840 | wk->probe_auth.algorithm = auth_alg; |
1845 | wk->probe_auth.privacy = req->bss->capability & WLAN_CAPABILITY_PRIVACY; | 1841 | wk->probe_auth.privacy = req->bss->capability & WLAN_CAPABILITY_PRIVACY; |
1846 | 1842 | ||
1847 | wk->type = IEEE80211_WORK_DIRECT_PROBE; | 1843 | /* if we already have a probe, don't probe again */ |
1844 | if (req->bss->proberesp_ies) | ||
1845 | wk->type = IEEE80211_WORK_AUTH; | ||
1846 | else | ||
1847 | wk->type = IEEE80211_WORK_DIRECT_PROBE; | ||
1848 | wk->chan = req->bss->channel; | 1848 | wk->chan = req->bss->channel; |
1849 | wk->sdata = sdata; | 1849 | wk->sdata = sdata; |
1850 | wk->done = ieee80211_probe_auth_done; | 1850 | wk->done = ieee80211_probe_auth_done; |