From: Jouni Malinen Date: Mon, 26 Sep 2011 12:17:01 +0000 (+0300) Subject: Do not enable bgscan when driver takes care of BSS selection X-Git-Tag: hostap-1-bp~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0096c4274099c8a083bbef1b677d8d91b7ba1823;p=thirdparty%2Fhostap.git Do not enable bgscan when driver takes care of BSS selection 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. --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index ae65e4cb6..7389bc3af 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -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;