From: Jouni Malinen Date: Sun, 18 Jul 2010 03:28:22 +0000 (-0700) Subject: SME: Do not skip initial scan request X-Git-Tag: hostap-1-bp~1255 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4436274bef6d73227979c7ca5c87c25e323298b7;p=thirdparty%2Fhostap.git 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. --- diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c index 90d40c802..54d86fc22 100644 --- a/wpa_supplicant/scan.c +++ b/wpa_supplicant/scan.c @@ -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) {