]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Clear show_group_started on GO start
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 1 Dec 2011 08:46:06 +0000 (10:46 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 1 Dec 2011 08:49:26 +0000 (10:49 +0200)
The show_group_started variable could be left to 1 based on an earlier
failed attempt to start P2P client operation. This can result in
unexpected P2P-GROUP-STARTED event when a GO is started without group
formation (e.g., re-invoke a persistent group or start an autonomous
GO). Avoid this by explicitly clearing show_group_start when setting up
the GO.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/p2p_supplicant.c

index c6484afc27b49a9e86f98109f631fafa07d19795..450cec87abe5c9348dbf35c8264071ac4fbe8475 100644 (file)
@@ -711,6 +711,8 @@ static void wpas_start_wps_go(struct wpa_supplicant *wpa_s,
        if (ssid == NULL)
                return;
 
+       wpa_s->show_group_started = 0;
+
        wpa_config_set_network_defaults(ssid);
        ssid->temporary = 1;
        ssid->p2p_group = 1;