From 4771edbadcfb72da20292d44962c09620cea5633 Mon Sep 17 00:00:00 2001 From: nobelj Date: Mon, 9 Dec 2019 12:47:41 -0800 Subject: [PATCH] qcacmn: support for tx capture stats added support to print debug stats for tx capture Change-Id: Id5533e076f9b5d3f15a392f61b4af5fdffa9efb0 --- dp/wifi3.0/dp_htt.c | 2 ++ dp/wifi3.0/dp_internal.h | 25 +++++++++++++++++++++++++ dp/wifi3.0/dp_stats.c | 2 ++ 3 files changed, 29 insertions(+) diff --git a/dp/wifi3.0/dp_htt.c b/dp/wifi3.0/dp_htt.c index ccb4f3aead73..c85d62ac7524 100644 --- a/dp/wifi3.0/dp_htt.c +++ b/dp/wifi3.0/dp_htt.c @@ -2108,6 +2108,8 @@ static void dp_process_ppdu_stats_common_tlv(struct dp_pdev *pdev, } ppdu_desc->phy_mode = HTT_PPDU_STATS_COMMON_TLV_PHY_MODE_GET(*tag_buf); + + dp_tx_capture_htt_frame_counter(pdev, frame_type); } /* diff --git a/dp/wifi3.0/dp_internal.h b/dp/wifi3.0/dp_internal.h index dd1b2229b97d..a1f9c9ecc215 100644 --- a/dp/wifi3.0/dp_internal.h +++ b/dp/wifi3.0/dp_internal.h @@ -1476,6 +1476,31 @@ QDF_STATUS dp_tx_add_to_comp_queue(struct dp_soc *soc, { return QDF_STATUS_E_FAILURE; } + +/* + * dp_tx_capture_htt_frame_counter: increment counter for htt_frame_type + * pdev: DP pdev handle + * htt_frame_type: htt frame type received from fw + * + * return: void + */ +static inline +void dp_tx_capture_htt_frame_counter(struct dp_pdev *pdev, + uint32_t htt_frame_type) +{ +} + +/* + * dp_tx_cature_stats: print tx capture stats + * @pdev: DP PDEV handle + * + * return: void + */ +static inline +void dp_print_pdev_tx_capture_stats(struct dp_pdev *pdev) +{ +} + #endif #ifdef FEATURE_PERPKT_INFO diff --git a/dp/wifi3.0/dp_stats.c b/dp/wifi3.0/dp_stats.c index 0c0ad3c33b46..794d2654da9f 100644 --- a/dp/wifi3.0/dp_stats.c +++ b/dp/wifi3.0/dp_stats.c @@ -5648,6 +5648,8 @@ dp_print_pdev_tx_stats(struct dp_pdev *pdev) DP_PRINT_STATS("Wdi msgs received from fw[%d]:%d", i, pdev->stats.wdi_event[i]); } + + dp_print_pdev_tx_capture_stats(pdev); } void