qcacld-3.0: Modify get tx success ack count api

Modify get tx success ack count api to support it for
lithium datapath by passing pdev reference.

Change-Id: Ibf4396bba941fd4f7e1dc55ca24534fecf54e01e
CRs-Fixed: 2438716
This commit is contained in:
Sravan Kumar Kairam 2019-04-19 22:13:09 +05:30 • committed by nshrivas
commit 53b43e15f0
2 changed files with 4 additions and 1 deletions

View file

@ -4329,11 +4329,13 @@ static void ol_txrx_update_mac_id(uint8_t vdev_id, uint8_t mac_id)
/**
* ol_txrx_get_tx_ack_count() - get tx ack count
* @pdev: pdev reference
* @vdev_id: vdev_id
*
* Return: tx ack count
*/
static uint32_t ol_txrx_get_tx_ack_stats(uint8_t vdev_id)
static uint32_t ol_txrx_get_tx_ack_stats(struct cdp_pdev *pdev,
uint8_t vdev_id)
{
struct ol_txrx_vdev_t *vdev =
(struct ol_txrx_vdev_t *)ol_txrx_get_vdev_from_vdev_id(vdev_id);

View file

@ -416,6 +416,7 @@ static inline struct sk_buff *hdd_skb_orphan(struct hdd_adapter *adapter,
uint32_t hdd_txrx_get_tx_ack_count(struct hdd_adapter *adapter)
{
return cdp_get_tx_ack_stats(cds_get_context(QDF_MODULE_ID_SOC),
cds_get_context(QDF_MODULE_ID_TXRX),
adapter->vdev_id);
}