From cba5cda6e7f5671ec2d0b52d2a6039fa7f40c954 Mon Sep 17 00:00:00 2001 From: Nishant Chaprana Date: Tue, 27 Apr 2021 09:52:32 +0530 Subject: [PATCH] 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 --- src/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.7.4