[PATCH] P2P: cancel group formation when deleting a group during group formation

Michael Olbrich m.olbrich at pengutronix.de
Thu Jul 30 06:14:24 EDT 2015


Otherwise P2P remains in provisioning state and continues to skip listening
forever.

Signed-off-by: Michael Olbrich <m.olbrich at pengutronix.de>
---

Hi,

I'm not quite sure if this is the correct fix. However, something needs to
happen here. Otherwise I just get "P2P: Skip Extended Listen timeout in
active state (PROVISIONING)" forever.

Regards,
Michael

 wpa_supplicant/p2p_supplicant.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 8f90e38ad664..f34ff4a72a06 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -872,6 +872,7 @@ static int wpas_p2p_group_delete(struct wpa_supplicant *wpa_s,
 		wpa_printf(MSG_DEBUG, "P2P: Cancelled P2P group formation "
 			   "timeout");
 		wpa_s->p2p_in_provisioning = 0;
+		wpas_p2p_group_formation_failed(wpa_s, 1);
 	}
 
 	wpa_s->p2p_in_invitation = 0;
-- 
2.1.4



More information about the HostAP mailing list