[PATCH 1/1] P2P Client should not issue p2p_find

Eduardo Abinader eduardo.abinader
Thu Feb 13 13:12:42 PST 2014


According to WFA-P2P, p2p client interfaces should not
probe request while participating a P2P group. This
patch enforces this behavior.

Signed-off-by: Eduardo Abinader <eduardo.abinader at openbossa.org>
---
 wpa_supplicant/p2p_supplicant.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 1495ea4..6ad6eda 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -5497,7 +5497,8 @@ int wpas_p2p_find(struct wpa_supplicant *wpa_s, unsigned int timeout,
 	wpa_s->p2p_long_listen = 0;
 
 	if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL ||
-	    wpa_s->p2p_in_provisioning)
+	    wpa_s->p2p_in_provisioning ||
+	    wpa_s->p2p_group_interface == P2P_GROUP_INTERFACE_CLIENT)
 		return -1;
 
 	wpa_supplicant_cancel_sched_scan(wpa_s);
-- 
1.8.1.2




More information about the Hostap mailing list