From: Jouni Malinen Date: Fri, 10 Oct 2014 12:53:22 +0000 (+0300) Subject: P2P: Clear p2p_go_group_formation_completed on GO start X-Git-Tag: hostap_2_4~1368 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58b40fdbfd32a238bf47489c824537152cd7bf82;p=thirdparty%2Fhostap.git 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 --- 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;