[PATCH 1/2] P2P: improve deinit for go neg non-zero status

Eduardo Abinader eduardo.abinader
Sat May 3 09:42:52 PDT 2014


Added cancel timeout and issuing formation failed, in order
to improve detection for group formation failure, upon
non-zero status.
---
 wpa_supplicant/p2p_supplicant.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 522d277..62e628d 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -1590,6 +1590,8 @@ static void wpas_go_neg_completed(void *ctx, struct p2p_go_neg_results *res)
 			       res->status);
 		wpas_notify_p2p_go_neg_completed(wpa_s, res);
 		wpas_p2p_remove_pending_group_interface(wpa_s);
+		eloop_cancel_timeout(wpas_p2p_long_listen_timeout, wpa_s, NULL);
+		wpas_p2p_group_formation_failed(wpa_s);
 		return;
 	}
 
-- 
1.9.1




More information about the Hostap mailing list