aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-07-18 03:28:22 (GMT)
committerJouni Malinen <j@w1.fi>2010-07-18 16:39:35 (GMT)
commita08be7d60d2887271b63bb4ea2c91a27f63bf2ca (patch)
treeeb5498818e2fb85140ff16117e4d5407718d8659
parente50464f5df2c9f5b35770b563a7f7c1c89861099 (diff)
downloadhostap-07-a08be7d60d2887271b63bb4ea2c91a27f63bf2ca.zip
hostap-07-a08be7d60d2887271b63bb4ea2c91a27f63bf2ca.tar.gz
hostap-07-a08be7d60d2887271b63bb4ea2c91a27f63bf2ca.tar.bz2
SME: Do not skip initial scan request
When SME is in wpa_supplicant (mac80211), we need to make sure that the kernel code has valid BSS entry for the AP. In some cases it seemed to be possible to end up not having current information in cfg80211 or mac80211 which can result to association failures. Avoid this by always running through the scan request before initial connection attempt. (cherry picked from commit 4436274bef6d73227979c7ca5c87c25e323298b7)
-rw-r--r--wpa_supplicant/scan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index f1aff7f..4d9114f 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
@@ -290,6 +290,7 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx)
#endif /* CONFIG_WPS */
if (wpa_s->scan_res_tried == 0 && wpa_s->conf->ap_scan == 1 &&
+ !(wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME) &&
!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_USER_SPACE_MLME) &&
wps != 2 && !wpa_s->conf->filter_ssids &&
!wpa_s->connect_without_scan) {