]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Do not enable bgscan when driver takes care of BSS selection
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 26 Sep 2011 12:17:01 +0000 (15:17 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 26 Sep 2011 12:17:01 +0000 (15:17 +0300)
There is no need to request periodic bgscans when the driver claims
to have capability for roaming within ESS. Ignoring the bgscan
configuration allows the same configuration file to be used both
with drivers the handle roaming and with drivers that don't.

wpa_supplicant/wpa_supplicant.c

index ae65e4cb64c9788f9e7a347fd74ea804287a1772..7389bc3af860ae25c85cc7a3210bb7900cc4d927 100644 (file)
@@ -527,6 +527,8 @@ const char * wpa_supplicant_state_txt(enum wpa_states state)
 
 static void wpa_supplicant_start_bgscan(struct wpa_supplicant *wpa_s)
 {
+       if (wpas_driver_bss_selection(wpa_s))
+               return;
        if (wpa_s->current_ssid == wpa_s->bgscan_ssid)
                return;