Parcourir la source

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
Sravan Kumar Kairam il y a 6 ans
Parent
commit
53b43e15f0
2 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 3 1
      core/dp/txrx/ol_txrx.c
  2. 1 0
      core/hdd/src/wlan_hdd_tx_rx.c

+ 3 - 1
core/dp/txrx/ol_txrx.c

@@ -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);

+ 1 - 0
core/hdd/src/wlan_hdd_tx_rx.c

@@ -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);
 }