aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wps_supplicant.c
diff options
context:
space:
mode:
authorAlexandru Costache <alexandru.costache.100@gmail.com>2014-05-12 16:14:55 (GMT)
committerJouni Malinen <j@w1.fi>2014-05-12 16:43:59 (GMT)
commitfb2ac53df19220c63e858354478f2f74087fa0ef (patch)
tree67f07369b977d80e5f066efb895c958216fb4479 /wpa_supplicant/wps_supplicant.c
parent4162db59aec2956204bd40ca10bd77f4ae939ba5 (diff)
downloadhostap-fb2ac53df19220c63e858354478f2f74087fa0ef.zip
hostap-fb2ac53df19220c63e858354478f2f74087fa0ef.tar.gz
hostap-fb2ac53df19220c63e858354478f2f74087fa0ef.tar.bz2
Remove leftover timeouts on cleanup
Signed-off-by: Alexandru Costache <alexandru.costache.100@gmail.com>
Diffstat (limited to 'wpa_supplicant/wps_supplicant.c')
-rw-r--r--wpa_supplicant/wps_supplicant.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 2b58749..de015ee 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -1465,6 +1465,10 @@ void wpas_wps_deinit(struct wpa_supplicant *wpa_s)
eloop_cancel_timeout(wpas_wps_reenable_networks_cb, wpa_s, NULL);
wpas_wps_clear_ap_info(wpa_s);
+#ifdef CONFIG_P2P
+ eloop_cancel_timeout(wpas_p2p_pbc_overlap_cb, wpa_s, NULL);
+#endif /* CONFIG_P2P */
+
if (wpa_s->wps == NULL)
return;