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
This commit is contained in:
Rajeev Kumar 2016-02-02 18:02:32 -08:00 • committed by Vishwajith Upendra
commit aea89633d6

View file

@ -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;
}
/**