]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Do not use group idle timeout during provisioning
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 27 Mar 2012 15:04:06 +0000 (18:04 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 27 Mar 2012 15:04:06 +0000 (18:04 +0300)
Use the normal group formation timeout during the provisioning phase to
avoid terminating this process too early due to group idle timeout.

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

wpa_supplicant/p2p_supplicant.c

index e7de82f6922bac04c3cf9243ee654a1211b060bb..01b3e3a6c4c9aab6aeaabba1e473b21c9805c8eb 100644 (file)
@@ -3997,6 +3997,17 @@ static void wpas_p2p_set_group_idle_timeout(struct wpa_supplicant *wpa_s)
        if (timeout == 0)
                return;
 
+       if (wpa_s->p2p_in_provisioning) {
+               /*
+                * Use the normal group formation timeout during the
+                * provisioning phase to avoid terminating this process too
+                * early due to group idle timeout.
+                */
+               wpa_printf(MSG_DEBUG, "P2P: Do not use P2P group idle timeout "
+                          "during provisioning");
+               return;
+       }
+
        wpa_printf(MSG_DEBUG, "P2P: Set P2P group idle timeout to %u seconds",
                   timeout);
        eloop_register_timeout(timeout, 0, wpas_p2p_group_idle_timeout,