aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-10-27 10:56:56 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-27 10:56:56 (GMT)
commit4d9fb08d23a788f945da2f75f04425409a7f7eee (patch)
tree9cd392460d66f63cc551c48a90937250c565e133 /wpa_supplicant/ctrl_iface.c
parentd20c340f7ed166ecc7fd00a1b20e4490c95ee3f1 (diff)
downloadhostap-4d9fb08d23a788f945da2f75f04425409a7f7eee.zip
hostap-4d9fb08d23a788f945da2f75f04425409a7f7eee.tar.gz
hostap-4d9fb08d23a788f945da2f75f04425409a7f7eee.tar.bz2
WPS: Clear known_wps_freq in addition to after_wps
Both of these variables can result in optimized WPS scans, so better clear these more consistently to avoid unexpected single-channel scans. 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 d0c0a01..86e7ece 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -5136,6 +5136,7 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s)
wpas_wps_cancel(wpa_s);
#endif /* CONFIG_WPS */
wpa_s->after_wps = 0;
+ wpa_s->known_wps_freq = 0;
#ifdef CONFIG_TDLS_TESTING
extern unsigned int tdls_testing;
@@ -5570,6 +5571,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
wpa_s->normal_scans = 0;
wpa_s->scan_req = MANUAL_SCAN_REQ;
wpa_s->after_wps = 0;
+ wpa_s->known_wps_freq = 0;
wpa_supplicant_req_scan(wpa_s, 0, 0);
} else if (wpa_s->sched_scanning) {
wpa_printf(MSG_DEBUG, "Stop ongoing "