From 0096c4274099c8a083bbef1b677d8d91b7ba1823 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 26 Sep 2011 15:17:01 +0300 Subject: [PATCH] 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. --- wpa_supplicant/wpa_supplicant.c | 2 ++ 1 file changed, 2 insertions(+) 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;