summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDustin Brown <dustinb@codeaurora.org>2017-03-07 16:09:09 -0800
committerPrakash Dhavali <pdhavali@codeaurora.org>2017-03-09 21:08:42 -0800
commit1445b31ba7bcf3a416202a6ddb68424a9649ef6f (patch)
tree845521495dd7d4f8f2194645dc50924dad74b444
parent5c1dc60851e112dc55b1a1980d0d084567892b21 (diff)
qcacld-3.0: Reduce PNO wakelock timeout in perf builds
The Preferred Network Offload (PNO) wakelock protects Supplicant while it configures the new scan results. The wakelock timeout should be optimized as much as possible on production builds, as it is never released by the driver. For additional power savings, reduce the timeout of this wakelock in production builds compared to debug builds. Change-Id: Iaccf56e00e933d3a216212ef219f31d28d022ea5 CRs-Fixed: 2016286
-rw-r--r--core/wma/inc/wma.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/wma/inc/wma.h b/core/wma/inc/wma.h
index 53a9c2ccbf8a..096784e03d67 100644
--- a/core/wma/inc/wma.h
+++ b/core/wma/inc/wma.h
@@ -311,8 +311,13 @@ enum ds_mode {
#ifdef FEATURE_WLAN_SCAN_PNO
#define WMA_PNO_MATCH_WAKE_LOCK_TIMEOUT (5 * 1000) /* in msec */
+#ifdef CONFIG_SLUB_DEBUG_ON
#define WMA_PNO_SCAN_COMPLETE_WAKE_LOCK_TIMEOUT (2 * 1000) /* in msec */
-#endif
+#else
+#define WMA_PNO_SCAN_COMPLETE_WAKE_LOCK_TIMEOUT (1 * 1000) /* in msec */
+#endif /* CONFIG_SLUB_DEBUG_ON */
+#endif /* FEATURE_WLAN_SCAN_PNO */
+
#define WMA_AUTH_REQ_RECV_WAKE_LOCK_TIMEOUT (5 * 1000) /* in msec */
#define WMA_ASSOC_REQ_RECV_WAKE_LOCK_DURATION (5 * 1000) /* in msec */
#define WMA_DEAUTH_RECV_WAKE_LOCK_DURATION (5 * 1000) /* in msec */