P2P: Cancel group formation when deleting a group during group formation
authorMichael Olbrich <m.olbrich@pengutronix.de>
Thu, 30 Jul 2015 10:14:24 +0000 (12:14 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Aug 2015 18:37:09 +0000 (21:37 +0300)
Otherwise P2P remains in provisioning state and continues to skip
extended listening forever.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
wpa_supplicant/p2p_supplicant.c

index e41c2bf..04db856 100644 (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;