P2P: Fix GO failed interface init

Whenever an ongoing GO Neg has failed, due to interface init, the P2P
Device should cancel timeouts and issue wpas_p2p_group_formation_failed,
so the other peer detects faster group formation has failed.

Signed-off-by: Eduardo Abinader <eduardo.abinader@openbossa.org>
This commit is contained in:
Eduardo Abinader 2014-03-20 08:43:31 -04:00 committed by Jouni Malinen
parent c46235aaf0
commit 5eae87a7d6

View file

@ -1622,6 +1622,9 @@ static void wpas_go_neg_completed(void *ctx, struct p2p_go_neg_results *res)
wpas_p2p_init_group_interface(wpa_s, res->role_go); wpas_p2p_init_group_interface(wpa_s, res->role_go);
if (group_wpa_s == NULL) { if (group_wpa_s == NULL) {
wpas_p2p_remove_pending_group_interface(wpa_s); 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; return;
} }
if (group_wpa_s != wpa_s) { if (group_wpa_s != wpa_s) {