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:

gecommit door
Madan Koyyalamudi

bovenliggende
ce387c8fd3
commit
112813c1b7
@@ -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_ */
|
||||
|
Verwijs in nieuw issue
Block a user