qcacmn: Add API to get TX pending in WoW state

This change is used to provide an API for PMO module to
check whether there are pending TX frames before HOST sends
wake up indication to FW. PMO module uses this to indicate
FW whehter to discard HWDTIM.

Change-Id: Icc3271e87e376e3313fddc5f4f99e39daeaf6af7
CRs-Fixed: 3046947
This commit is contained in:
Yu Tian
2021-09-28 17:06:24 +08:00
gecommit door Madan Koyyalamudi
bovenliggende ce387c8fd3
commit 112813c1b7
5 gewijzigde bestanden met toevoegingen van 22 en 0 verwijderingen

Bestand weergeven

@@ -2700,4 +2700,19 @@ cdp_set_pkt_capture_mode(ol_txrx_soc_handle soc, bool val)
{
}
#endif
/**
* cdp_rx_get_pending() - Get number of pending frames of RX threads
* @soc: opaque soc handle
* Return: number of pending frames
*/
static inline uint32_t
cdp_get_tx_inqueue(ol_txrx_soc_handle soc)
{
if (!soc || !soc->ol_ops ||
!soc->ol_ops->dp_get_tx_inqueue)
return 0;
return soc->ol_ops->dp_get_tx_inqueue(soc);
}
#endif /* _CDP_TXRX_CMN_H_ */