From: Jason Abele Date: Fri, 3 Apr 2015 00:30:48 +0000 (-0700) Subject: wpa_supplicant: Clear blacklist on connect X-Git-Tag: hostap_2_5~872 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a20a3616cd31236a81868e54c7e0a7ad525931db;p=thirdparty%2Fhostap.git wpa_supplicant: Clear blacklist on connect It has been noticed that the band steering/load balancing of some multi-AP networks will lead to an ever-growing list of blacklisted BSSIDs. This eventually leads to a connection drop when the connection is pushed to a distant AP. Fix this issue by clearing the blacklist upon successful connect. Signed-off-by: Jason Abele --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index f690b9190..2ba9c3844 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -731,6 +731,7 @@ void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s, ssid && ssid->id_str ? ssid->id_str : ""); #endif /* CONFIG_CTRL_IFACE || !CONFIG_NO_STDOUT_DEBUG */ wpas_clear_temp_disabled(wpa_s, ssid, 1); + wpa_blacklist_clear(wpa_s); wpa_s->extra_blacklist_count = 0; wpa_s->new_connection = 0; wpa_drv_set_operstate(wpa_s, 1);