]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SME: Do not skip initial scan request
authorJouni Malinen <jouni.malinen@atheros.com>
Sun, 18 Jul 2010 03:28:22 +0000 (20:28 -0700)
committerJouni Malinen <j@w1.fi>
Sun, 18 Jul 2010 03:28:22 +0000 (20:28 -0700)
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.

wpa_supplicant/scan.c

index 90d40c80226bfd4df0179b9dff61da4e8484c762..54d86fc22f6a9507722552ea3fc14b45f98bcda1 100644 (file)
@@ -295,6 +295,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) {