[PATCH 03/16] P2P: Clear BSS list when clearing the P2P state
Ilan Peer
ilan.peer
Wed Jun 17 06:24:49 PDT 2015
Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
wpa_supplicant/ctrl_iface.c | 3 +++
wpa_supplicant/dbus/dbus_new_handlers_p2p.c | 2 ++
2 files changed, 5 insertions(+)
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 563a764..105a301 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -5759,6 +5759,7 @@ static int p2p_ctrl_set(struct wpa_supplicant *wpa_s, char *cmd)
wpas_p2p_stop_find(wpa_s);
os_memset(wpa_s->p2p_auth_invite, 0, ETH_ALEN);
p2p_flush(wpa_s->global->p2p);
+ wpa_bss_flush(wpa_s);
}
return 0;
}
@@ -5898,6 +5899,8 @@ static void p2p_ctrl_flush(struct wpa_supplicant *wpa_s)
wpas_p2p_stop_find(wpa_s);
if (wpa_s->global->p2p)
p2p_flush(wpa_s->global->p2p);
+
+ wpa_bss_flush(wpa_s);
}
diff --git a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
index 56e9033..810b202 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
@@ -13,6 +13,7 @@
#include "../config.h"
#include "../wpa_supplicant_i.h"
#include "../wps_supplicant.h"
+#include "../bss.h"
#include "../notify.h"
#include "dbus_new_helpers.h"
#include "dbus_new.h"
@@ -429,6 +430,7 @@ DBusMessage * wpas_dbus_handler_p2p_flush(DBusMessage *message,
os_memset(wpa_s->p2p_auth_invite, 0, ETH_ALEN);
wpa_s->force_long_sd = 0;
p2p_flush(wpa_s->global->p2p);
+ wpa_bss_flush(wpa_s);
return NULL;
}
--
1.9.1
More information about the Hostap
mailing list