فهرست منبع

qcacmn: support for tx capture stats

added support to print debug stats for tx capture

Change-Id: Id5533e076f9b5d3f15a392f61b4af5fdffa9efb0
nobelj 5 سال پیش
والد
کامیت
4771edbadc
3فایلهای تغییر یافته به همراه29 افزوده شده و 0 حذف شده
  1. 2 0
      dp/wifi3.0/dp_htt.c
  2. 25 0
      dp/wifi3.0/dp_internal.h
  3. 2 0
      dp/wifi3.0/dp_stats.c

+ 2 - 0
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);
 }
 
 /*

+ 25 - 0
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

+ 2 - 0
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