[PATCH 9/9] P2P: Stop p2p_listen/find on wpas_p2p_invite
Ilan Peer
ilan.peer
Sun Jan 18 17:44:12 PST 2015
Stop any ongoing P2P listen/find flow before starting
invitation flow. This was partially handled in p2p_invite()
that called p2p_find(), but this did not cleanly handle cases
such as long_listen.
Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
wpa_supplicant/p2p_supplicant.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 72d6873..df5a4d7 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -6177,6 +6177,12 @@ int wpas_p2p_invite(struct wpa_supplicant *wpa_s, const u8 *peer_addr,
pref_freq = 0;
}
+ /*
+ * stop any find/listen operations before invitation and possibly
+ * connection establishment
+ */
+ wpas_p2p_stop_find_oper(wpa_s);
+
return p2p_invite(wpa_s->global->p2p, peer_addr, role, bssid,
ssid->ssid, ssid->ssid_len, force_freq, go_dev_addr,
1, pref_freq, -1);
--
1.8.3.2
More information about the Hostap
mailing list