aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-10-20 18:34:39 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-20 18:38:02 (GMT)
commit7255983b59adb56a74f6c3a97ae9171e1481a12f (patch)
treee99b497bff62d056f3f3d2eeef022e5b5ed9f366 /wpa_supplicant/ctrl_iface.c
parent72c052d5250191d3989ef104889fb8ac40ad44e7 (diff)
downloadhostap-7255983b59adb56a74f6c3a97ae9171e1481a12f.zip
hostap-7255983b59adb56a74f6c3a97ae9171e1481a12f.tar.gz
hostap-7255983b59adb56a74f6c3a97ae9171e1481a12f.tar.bz2
WPS: Clear after_wps from number of new locations
This makes it less likely to forget WPS single-channel scan optimization in effect after having completed the WPS operation or in case WPS operating gets cancelled. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/ctrl_iface.c')
-rw-r--r--wpa_supplicant/ctrl_iface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 2dc64dd..b2d7882 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -5162,6 +5162,7 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s)
#ifdef CONFIG_WPS
wpas_wps_cancel(wpa_s);
#endif /* CONFIG_WPS */
+ wpa_s->after_wps = 0;
#ifdef CONFIG_TDLS_TESTING
extern unsigned int tdls_testing;
@@ -5595,6 +5596,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
(wpa_s->wpa_state == WPA_COMPLETED))) {
wpa_s->normal_scans = 0;
wpa_s->scan_req = MANUAL_SCAN_REQ;
+ wpa_s->after_wps = 0;
wpa_supplicant_req_scan(wpa_s, 0, 0);
} else if (wpa_s->sched_scanning) {
wpa_printf(MSG_DEBUG, "Stop ongoing "