From cf9f033d8f6670c4f462b71b880432138119b804 Mon Sep 17 00:00:00 2001 From: Alan Chen Date: Wed, 30 Sep 2020 13:10:18 -0700 Subject: [PATCH] qcacld-3.0: Add a mod DTIM on system suspend flag If the INI item enable_mod_dtim_on_system_suspend is set, then set the bit WMI_WOW_FLAG_MOD_DTIM_ON_SYS_SUSPEND in wow flag parameter. Change-Id: I15a717bd5f5532dd2c8a6e27e5df8c28965da062 CRs-Fixed: 2789161 --- components/pmo/core/src/wlan_pmo_suspend_resume.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/components/pmo/core/src/wlan_pmo_suspend_resume.c b/components/pmo/core/src/wlan_pmo_suspend_resume.c index fba8c2f8199a..b65ad8cb15fc 100644 --- a/components/pmo/core/src/wlan_pmo_suspend_resume.c +++ b/components/pmo/core/src/wlan_pmo_suspend_resume.c @@ -813,13 +813,17 @@ pmo_core_enable_wow_in_fw(struct wlan_objmgr_psoc *psoc, if (type == QDF_SYSTEM_SUSPEND) { pmo_info("system suspend wow"); - if ((psoc_cfg) && - (psoc_cfg->is_mod_dtim_on_sys_suspend_enabled)) - param.flags |= WMI_WOW_FLAG_SYSTEM_SUSPEND_WOW; + param.flags |= WMI_WOW_FLAG_SYSTEM_SUSPEND_WOW; } else { pmo_info("RTPM wow"); } + if ((psoc_cfg) && + (psoc_cfg->is_mod_dtim_on_sys_suspend_enabled)) { + pmo_info("mod DTIM enabled"); + param.flags |= WMI_WOW_FLAG_MOD_DTIM_ON_SYS_SUSPEND; + } + status = pmo_tgt_psoc_send_wow_enable_req(psoc, ¶m); if (status != QDF_STATUS_SUCCESS) { pmo_err("Failed to enable wow in fw");