]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Make sure wait for the first client gets stopped
authorJouni Malinen <j@w1.fi>
Sun, 6 Oct 2013 05:15:28 +0000 (22:15 -0700)
committerJouni Malinen <j@w1.fi>
Sun, 6 Oct 2013 05:15:28 +0000 (22:15 -0700)
If a group was removed before the wait for the first client had timed
out and the client had not yet connected, p2p_go_wait_client could have
been left set and with that, scan operations could be unnecessarily
delayed. This fixes some undesired delays from commit
c1c0b35fea656345b672984910cc3b93938bc5e5.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/p2p_supplicant.c

index 109cc80cef815e93b9b37dc2347e64554f3c9a2e..4b54a63fa68d2a0e21d7c2cdfe2d8a77430824b4 100644 (file)
@@ -423,6 +423,12 @@ static int wpas_p2p_group_delete(struct wpa_supplicant *wpa_s,
                wpa_s->p2p_in_provisioning = 0;
        }
 
+       /*
+        * Make sure wait for the first client does not remain active after the
+        * group has been removed.
+        */
+       wpa_s->global->p2p_go_wait_client.sec = 0;
+
        if (removal_reason != P2P_GROUP_REMOVAL_SILENT && ssid)
                wpas_notify_p2p_group_removed(wpa_s, ssid, gtype);