瀏覽代碼

qcacld-3.0: Reduce wakelock resume wlan timeout to 1 sec

qcacld-2.0 to qcacld-3.0 propagation

Supplicant can get the scan results within 1 sec, 2 sec is aggressive.
Reduce time duration of WIFI_POWER_EVENT_WAKELOCK_RESUME_WLAN
from 2 sec to 1 sec.

Change-Id: I83a2c674f1e42fc78480b194ad08b903b8fecffa
CRs-Fixed: 1060384
(cherry picked from commit 75e507e42cb2d9fc353980085d1302fda43b5fae)
Sreelakshmi Konamki 8 年之前
父節點
當前提交
2252853d10
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      core/hdd/src/wlan_hdd_power.c

+ 3 - 1
core/hdd/src/wlan_hdd_power.c

@@ -77,6 +77,7 @@
 
 /* Preprocessor definitions and constants */
 #define HDD_SSR_BRING_UP_TIME 30000
+#define HDD_WAKE_LOCK_RESUME_DURATION 1000
 
 /* Type declarations */
 
@@ -1687,7 +1688,8 @@ static int __wlan_hdd_cfg80211_resume_wlan(struct wiphy *wiphy)
 				 * app's is in suspended state and not able to
 				 * process the connect request to AP
 				 */
-				hdd_prevent_suspend_timeout(2000,
+				hdd_prevent_suspend_timeout(
+					HDD_WAKE_LOCK_RESUME_DURATION,
 					WIFI_POWER_EVENT_WAKELOCK_RESUME_WLAN);
 				cfg80211_sched_scan_results(pHddCtx->wiphy);
 			}