From: Jouni Malinen Date: Sun, 28 Apr 2013 19:35:15 +0000 (+0300) Subject: Clear extra_blacklist_count on FLUSH command X-Git-Tag: aosp-kk-from-upstream~321 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8a7890d7c74fd41f2c4e8d57c1c76d0788f2e4f;p=thirdparty%2Fhostap.git Clear extra_blacklist_count on FLUSH command This is needed to avoid old blacklist failure counts from being valid after state flush. Signed-hostap: Jouni Malinen --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index a86239d2d..a422a7bcf 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -5059,6 +5059,7 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s) wpa_bss_flush(wpa_s); wpa_blacklist_clear(wpa_s); + wpa_s->extra_blacklist_count = 0; wpa_supplicant_ctrl_iface_remove_network(wpa_s, "all"); wpa_supplicant_ctrl_iface_remove_cred(wpa_s, "all"); }