wlan: Decrease SAP timeout from 100 to 10 seconds
Decrease the timeout in SAP mode to associate with an STA
from 100 to 10 seconds. 100 secs is too long a time to wait
for 4-way handsake and DHCP to complete, and thus leads to
power wastage.
Change-Id: Ic07d14093c8c2c588e23ffc54076bbb3cef31ecc
CRs-fixed: 448604
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 892679b..4703003 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -4701,7 +4701,7 @@
void hdd_allow_suspend_timeout(v_U32_t timeout)
{
#ifdef WLAN_OPEN_SOURCE
- wake_lock_timeout(&wlan_wake_lock, timeout);
+ wake_lock_timeout(&wlan_wake_lock, msecs_to_jiffies(timeout));
#else
/* Do nothing as there is no API in wcnss for timeout*/
#endif