Browse Source

qcacmn: Populate RU tones in TX PPDU stats

Populate per user RU tones for TX PPDU

Change-Id: I5725c0500d8a22247913d3656047e25eaaa8c6d3
CRs-Fixed: 2147797
Soumya Bhat 7 years ago
parent
commit
28541119a5
2 changed files with 7 additions and 1 deletions
  1. 1 0
      dp/inc/cdp_txrx_cmn_struct.h
  2. 6 1
      dp/wifi3.0/dp_htt.c

+ 1 - 0
dp/inc/cdp_txrx_cmn_struct.h

@@ -1111,6 +1111,7 @@ struct cdp_tx_completion_ppdu_user {
 	uint32_t num_mpdu:9,
 		 num_msdu:16;
 	uint32_t tx_duration;
+	uint16_t ru_tones;
 	bool is_mcast;
 };
 

+ 6 - 1
dp/wifi3.0/dp_htt.c

@@ -1482,7 +1482,12 @@ static void dp_process_ppdu_stats_user_rate_tlv(struct dp_pdev *pdev,
 	qdf_mem_copy(ppdu_user_desc->mac_addr, peer->mac_addr.raw,
 			DP_MAC_ADDR_LEN);
 
-	tag_buf += 4;
+	tag_buf += 2;
+
+	ppdu_user_desc->ru_tones = (HTT_PPDU_STATS_USER_RATE_TLV_RU_END_GET(*tag_buf) -
+			HTT_PPDU_STATS_USER_RATE_TLV_RU_START_GET(*tag_buf)) + 1;
+
+	tag_buf += 2;
 
 	ppdu_user_desc->ppdu_type =
 		HTT_PPDU_STATS_USER_RATE_TLV_PPDU_TYPE_GET(*tag_buf);