]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Clear p2p_go_group_formation_completed on GO start
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 10 Oct 2014 12:53:22 +0000 (15:53 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 10 Oct 2014 12:53:22 +0000 (15:53 +0300)
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 <jouni@qca.qualcomm.com>
wpa_supplicant/p2p_supplicant.c

index d19efa25e74b0188bc92568f5c24674659791537..1f54c10cc39edfb656b474bf03eb176cf648223b 100644 (file)
@@ -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;