aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-05-24 13:02:58 (GMT)
committerJouni Malinen <j@w1.fi>2013-05-24 13:02:58 (GMT)
commite78aaca0da241b03b640da5e0ef3ddf01e97867f (patch)
tree7d5c3adcc36b3852e38115240a7ac7850511d8dc /wpa_supplicant
parent3cb953e4b690144b64db8a4ad78ebf547685db65 (diff)
downloadhostap-e78aaca0da241b03b640da5e0ef3ddf01e97867f.zip
hostap-e78aaca0da241b03b640da5e0ef3ddf01e97867f.tar.gz
hostap-e78aaca0da241b03b640da5e0ef3ddf01e97867f.tar.bz2
Stop TKIP countermeasures on FLUSH command
This is needed to get wpa_supplicant into clean state during testing if a test case triggers countermeasures. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/ctrl_iface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index ae0bcbc..49157bf 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -5064,6 +5064,9 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s)
wpa_tdls_enable(wpa_s->wpa, 1);
#endif /* CONFIG_TDLS */
+ eloop_cancel_timeout(wpa_supplicant_stop_countermeasures, wpa_s, NULL);
+ wpa_supplicant_stop_countermeasures(wpa_s, NULL);
+
wpa_s->no_keep_alive = 0;
os_free(wpa_s->disallow_aps_bssid);