Clear wpa_s->sme.last_unprot_disconnect.sec on FLUSH command
authorJouni Malinen <j@w1.fi>
Sun, 17 Jul 2016 21:56:53 +0000 (00:56 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 17 Jul 2016 21:56:53 +0000 (00:56 +0300)
This is needed for hwsim test cases to allow multiple STA-initiated SA
Query operations in short amount of time.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/ctrl_iface.c

index b7468e5..b75587e 100644 (file)
@@ -7228,6 +7228,10 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s)
 
        eloop_cancel_timeout(wpas_network_reenabled, wpa_s, NULL);
        wpa_s->wnmsleep_used = 0;
+
+#ifdef CONFIG_SME
+       wpa_s->sme.last_unprot_disconnect.sec = 0;
+#endif /* CONFIG_SME */
 }