qcacmn: Add TX pending indication when sending wake up to FW

FW may experience HWDTIM mode enter and exit, if HOST can't queue
frames fast enough, this will bring 10ms latency for TX under WoW.
This change adds an indication bit to notify FW whether a TX happens
after WoW wakeup, then FW can discard HWDITM and reduce TX latency.

Change-Id: Ib695a0e5d032af4be27fef59f3c5123a35428d7d
CRs-Fixed: 3046987
This commit is contained in:
Yu Tian
2021-10-13 14:29:48 +08:00
committed by Madan Koyyalamudi
parent ffb9ec5cae
commit dc20d398e8
4 changed files with 20 additions and 5 deletions

View File

@@ -330,13 +330,15 @@ QDF_STATUS wmi_unified_wow_delete_pattern_cmd(wmi_unified_t wmi_handle,
/**
* wmi_unified_host_wakeup_ind_to_fw_cmd() - send wakeup ind to fw
* @wmi_handle: wmi handle
* @tx_pending_ind: flag of TX has pending frames
*
* Sends host wakeup indication to FW. On receiving this indication,
* FW will come out of WOW.
*
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
*/
QDF_STATUS wmi_unified_host_wakeup_ind_to_fw_cmd(wmi_unified_t wmi_handle);
QDF_STATUS wmi_unified_host_wakeup_ind_to_fw_cmd(wmi_unified_t wmi_handle,
bool tx_pending_ind);
/**
* wmi_unified_wow_timer_pattern_cmd() - set timer pattern tlv, so that