summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishant Chaprana <n.chaprana@samsung.com>2021-04-27 09:52:32 +0530
committerNishant Chaprana <n.chaprana@samsung.com>2021-04-27 09:52:34 +0530
commitcba5cda6e7f5671ec2d0b52d2a6039fa7f40c954 (patch)
tree1b795e9c248b544de727c25686c64de3a7c1fede
parent770ed7e6a3173290e071662a385b892756ff5072 (diff)
downloadconnman-cba5cda6e7f5671ec2d0b52d2a6039fa7f40c954.tar.gz
connman-cba5cda6e7f5671ec2d0b52d2a6039fa7f40c954.tar.bz2
connman-cba5cda6e7f5671ec2d0b52d2a6039fa7f40c954.zip
Fix Wi-Fi activation issue in TM1submit/tizen/20210427.065300
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>
-rwxr-xr-xsrc/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c
index ffec3f2c..53aa1110 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;