]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Clear extra_blacklist_count on FLUSH command
authorJouni Malinen <j@w1.fi>
Sun, 28 Apr 2013 19:35:15 +0000 (22:35 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 28 Apr 2013 19:35:15 +0000 (22:35 +0300)
This is needed to avoid old blacklist failure counts from being valid
after state flush.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/ctrl_iface.c

index a86239d2d4ac96cf2d4abfcb72598fe99a19cb4b..a422a7bcfd2f33e53e6210c3dbeac309be6860f5 100644 (file)
@@ -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");
 }