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:
parent
c46235aaf0
commit
5eae87a7d6
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
if (group_wpa_s == NULL) {
|
||||
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;
|
||||
}
|
||||
if (group_wpa_s != wpa_s) {
|
||||
|
|
Loading…
Reference in a new issue