qcacmn: 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 idle trigger monitor value over the
wmi command WMI_IDLE_TRIGGER_MONITOR_CMDID.

Change-Id: I34632814a1e653fa87cfbab90c72ee1622dfd63c
CRs-Fixed: 2436222
This commit is contained in:
Pragaspathi Thilagaraj
2019-04-16 02:28:24 +05:30
committed by nshrivas
parent 5679e39c7d
commit 9582515724
4 changed files with 63 additions and 1 deletions

View File

@@ -952,6 +952,16 @@ QDF_STATUS wmi_unified_set_sta_ps_mode(void *wmi_hdl,
return QDF_STATUS_E_FAILURE;
}
QDF_STATUS
wmi_unified_send_idle_trigger_monitor(wmi_unified_t wmi_handle, uint8_t val)
{
if (wmi_handle->ops->send_idle_roam_monitor_cmd)
return wmi_handle->ops->send_idle_roam_monitor_cmd(wmi_handle,
val);
return QDF_STATUS_E_FAILURE;
}
/**
* wmi_set_mimops() - set MIMO powersave
* @wmi_hdl: wmi handle