From 6bff24e2b974512159ffb653e76fd181dba6c911 Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Tue, 7 Mar 2017 16:09:09 -0800 Subject: [PATCH] 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 --- core/wma/inc/wma.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/wma/inc/wma.h b/core/wma/inc/wma.h index fda13955ac7c..70e509f4b1d9 100644 --- a/core/wma/inc/wma.h +++ b/core/wma/inc/wma.h @@ -305,8 +305,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 */