From 58b40fdbfd32a238bf47489c824537152cd7bf82 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 10 Oct 2014 15:53:22 +0300 Subject: [PATCH] P2P: Clear p2p_go_group_formation_completed on GO start Previously, this variable did not necessarily get cleared between group formations and could result in some of the workaround operations from not being executed after the first group formation when using the same interface for all P2P groups. Fix this by clearing the variable whenever starting the GO to make sure it is used consistently for each group formation. Signed-off-by: Jouni Malinen --- wpa_supplicant/p2p_supplicant.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index d19efa25e..1f54c10cc 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -1349,6 +1349,7 @@ static void wpas_start_wps_go(struct wpa_supplicant *wpa_s, } wpa_s->show_group_started = 0; + wpa_s->p2p_go_group_formation_completed = 0; wpa_config_set_network_defaults(ssid); ssid->temporary = 1;