mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
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:
parent
88fdf825d4
commit
aea89633d6
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue