Browse Source

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 <jouni@qca.qualcomm.com>
Jouni Malinen 10 years ago
parent
commit
58b40fdbfd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      wpa_supplicant/p2p_supplicant.c

+ 1 - 0
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;