]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
D-Bus: Fix P2P Flush method to clear pending Action frames
authorAmit Khatri <amit7861234@gmail.com>
Wed, 16 Jan 2019 17:46:46 +0000 (23:16 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 21 Jan 2019 10:30:17 +0000 (12:30 +0200)
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>
wpa_supplicant/dbus/dbus_new_handlers_p2p.c

index d7457237deff824490edca59f812d30a62189206..9f44f69ff8512e7cf31363b1cee09c648ed6b69d 100644 (file)
@@ -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);