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
This commit is contained in:
Alan Chen
2020-09-30 13:10:18 -07:00
committed by snandini
parent c5d7e3552f
commit b34e03512e

View File

@@ -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, &param);
if (status != QDF_STATUS_SUCCESS) {
pmo_err("Failed to enable wow in fw");