aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorAmit Khatri <amit7861234@gmail.com>2019-01-16 17:46:46 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-21 10:30:17 (GMT)
commitcc0f24196b31456afb77f39c84e97967d28d3a0d (patch)
tree95530eab4e6595c55d5f5c9db9572b70f6c8b4b4 /wpa_supplicant
parentfff8da8ace1cd276f7bd79e353f3d42b4e73bbe1 (diff)
downloadhostap-cc0f24196b31456afb77f39c84e97967d28d3a0d.zip
hostap-cc0f24196b31456afb77f39c84e97967d28d3a0d.tar.gz
hostap-cc0f24196b31456afb77f39c84e97967d28d3a0d.tar.bz2
D-Bus: Fix P2P Flush method to clear pending Action frames
If we call p2p_flush from ctrl_iface, before calling p2p_flush() it calls wpas_p2p_stop_find(). Add the same call to the matching D-Bus method to clear all pending operations. Signed-off-by: Amit Khatri <amit7861234@gmail.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/dbus/dbus_new_handlers_p2p.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
index d745723..9f44f69 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
@@ -505,6 +505,7 @@ DBusMessage * wpas_dbus_handler_p2p_flush(DBusMessage *message,
wpa_s = wpa_s->global->p2p_init_wpa_s;
+ wpas_p2p_stop_find(wpa_s);
os_memset(wpa_s->p2p_auth_invite, 0, ETH_ALEN);
wpa_s->force_long_sd = 0;
p2p_flush(wpa_s->global->p2p);