From: Nishant Chaprana Date: Tue, 27 Apr 2021 04:22:32 +0000 (+0530) Subject: Fix Wi-Fi activation issue in TM1 X-Git-Tag: submit/tizen/20210427.065300^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cba5cda6e7f5671ec2d0b52d2a6039fa7f40c954;p=platform%2Fupstream%2Fconnman.git Fix Wi-Fi activation issue in TM1 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 --- diff --git a/src/device.c b/src/device.c index ffec3f2..53aa111 100755 --- a/src/device.c +++ b/src/device.c @@ -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;