From aea89633d6ebdb4e53b90c412f2dfa03223c1a96 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Tue, 2 Feb 2016 18:02:32 -0800 Subject: [PATCH] qcacld-3.0: Set wow enable parameter in WMA properly WoW is getting enabled even in disconnected state when PNO, EXT_SCAN or LPASS is not enabled. Enable wow only when one of interface is in beaconing mode, connected state or PNO/EXT_SCAN/LPASS is enabled. Change-Id: I30226700844c9b4adbe3a0659a270b99dc6e66f8 CRs-Fixed: 971738 --- core/wma/src/wma_features.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index ad74ab301fff..a68cade641d8 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -3364,8 +3364,9 @@ bool wma_is_extscan_in_progress(tp_wma_handle wma, int vdev_id) * 2) Is any one of vdev in connected state (in STA mode) ? * 3) Is PNO in progress in any one of vdev ? * 4) Is Extscan in progress in any one of vdev ? + * If none of above conditions is true then return false * - * Return: true if wma needs to configure wow. + * Return: true if wma needs to configure wow false otherwise. */ bool wma_is_wow_applicable(tp_wma_handle wma) { @@ -3389,7 +3390,7 @@ bool wma_is_wow_applicable(tp_wma_handle wma) } WMA_LOGD("All vdev are in disconnected state and pno/extscan is not in progress, skipping wow"); - return true; + return false; } /**