qcacld-3.0: Send idle roam trigger monitor command to firmware

Send idle roam trigger monitor command to firmware based on
the SET SUSPEND mode command received from the user space.
The set suspend mode value sent will be used by firmware as
one of the parameters in determining if the device is in
idle state. When set suspend mode is 1, device is not in
idle state else the device is considered idle if idle state
data packet count, idle rssi, inactivity time criteria are met.

Add changes to send the suspend mode value over the wmi
command WMI_IDLE_TRIGGER_MONITOR_CMDID.

Change-Id: Ia4531fdab140334dbb830e0d7486db07bbdfc7e8
CRs-Fixed: 2436221
This commit is contained in:
Pragaspathi Thilagaraj
2019-04-16 02:47:50 +05:30
committed by nshrivas
parent 0332a6ca4a
commit aa8320e1c6
9 changed files with 117 additions and 2 deletions

View File

@@ -249,3 +249,15 @@ QDF_STATUS pmo_tgt_psoc_send_target_resume_req(struct wlan_objmgr_psoc *psoc)
return pmo_tx_ops.psoc_send_target_resume_req(psoc);
}
QDF_STATUS pmo_tgt_psoc_send_idle_roam_monitor(struct wlan_objmgr_psoc *psoc,
uint8_t val)
{
struct wlan_pmo_tx_ops pmo_tx_ops;
pmo_tx_ops = GET_PMO_TX_OPS_FROM_PSOC(psoc);
if (!pmo_tx_ops.psoc_send_idle_roam_suspend_mode) {
pmo_err("NULL fp");
return QDF_STATUS_E_NULL_VALUE;
}
return pmo_tx_ops.psoc_send_idle_roam_suspend_mode(psoc, val);
}

View File

@@ -696,6 +696,13 @@ ucfg_pmo_power_save_offload_enabled(struct wlan_objmgr_psoc *psoc)
return powersave_offload_enabled;
}
QDF_STATUS
ucfg_pmo_tgt_psoc_send_idle_roam_suspend_mode(struct wlan_objmgr_psoc *psoc,
uint8_t val)
{
return pmo_tgt_psoc_send_idle_roam_monitor(psoc, val);
}
#ifdef WLAN_FEATURE_EXTWOW_SUPPORT
bool
ucfg_pmo_extwow_is_goto_suspend_enabled(struct wlan_objmgr_psoc *psoc)
@@ -825,4 +832,3 @@ ucfg_pmo_get_active_mc_bc_apf_mode(struct wlan_objmgr_psoc *psoc)
return pmo_psoc_ctx->psoc_cfg.active_mc_bc_apf_mode;
}