Fix Wi-Fi activation issue in TM1 23/257323/2 submit/tizen/20210427.065300
authorNishant Chaprana <n.chaprana@samsung.com>
Tue, 27 Apr 2021 04:22:32 +0000 (09:52 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Tue, 27 Apr 2021 04:22:34 +0000 (09:52 +0530)
Increased timeout to 10 seconds in case of device activation
This is required because the Mac Randomizaiton parameters need
to be set by dbus calls, to retains previous boot settings.

The timeout value is already less because wifi_manager_activate() API
has 120 seconds timeout to turn on the device, however current timeout
emits failure callback post 4 seconds, when -EINPROGRESS is returned
from device plugin.

Change-Id: I92041dbd9898f1f6b0a59f895bcd06fb5f6e1e91
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
src/device.c

index ffec3f2..53aa111 100755 (executable)
@@ -270,11 +270,11 @@ int __connman_device_enable(struct connman_device *device)
        }
        /*
         * if err == -EINPROGRESS, then the DBus call to the respective daemon
-        * was successful. We set a 4 sec timeout so if the daemon never
+        * was successful. We set a 10 sec timeout so if the daemon never
         * returns a reply, we would reset the pending request.
         */
        if (err == -EINPROGRESS)
-               device->pending_timeout = g_timeout_add_seconds(4,
+               device->pending_timeout = g_timeout_add_seconds(10,
                                        device_pending_reset, device);
 done:
        return err;