qcacmn: Add Wake timer pattern API
Add WOW_TIMER_PATTERN to enable host to set wake timer in FW when required. Change-Id: Id37420ee8295d11fc8fe0f0fcc344d6ef31c315b CRs-Fixed: 2134108
This commit is contained in:
@@ -2226,6 +2226,28 @@ QDF_STATUS wmi_unified_fw_profiling_data_cmd(void *wmi_hdl,
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_wow_timer_pattern_cmd() - set timer pattern tlv, so that firmware
|
||||
* will wake up host after specified time is elapsed
|
||||
* @wmi_handle: wmi handle
|
||||
* @vdev_id: vdev id
|
||||
* @cookie: value to identify reason why host set up wake call.
|
||||
* @time: time in ms
|
||||
*
|
||||
* Return: QDF status
|
||||
*/
|
||||
QDF_STATUS wmi_unified_wow_timer_pattern_cmd(void *wmi_hdl, uint8_t vdev_id,
|
||||
uint32_t cookie, uint32_t time)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_wow_timer_pattern_cmd)
|
||||
return wmi_handle->ops->send_wow_timer_pattern_cmd(wmi_handle,
|
||||
vdev_id, cookie, time);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_nat_keepalive_en_cmd() - enable NAT keepalive filter
|
||||
* @wmi_handle: wmi handle
|
||||
|
Reference in New Issue
Block a user