P2P: Cancel group formation when deleting a group during group formation

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

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
This commit is contained in:
Michael Olbrich 2015-07-30 12:14:24 +02:00 committed by Jouni Malinen
parent 86e2dcf5a6
commit be11a59486

View File

@ -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;