Browse Source

qcacmn: Add support for PPDU END TSF in ppdu stats

Add support for PPDU END TSF by adding START TSF and Duration.

Change-Id: Ida04a793876f2a5b029726cc85f2715b71a30834
nobelj 7 years ago
parent
commit
8c07d61785
1 changed files with 4 additions and 1 deletions
  1. 4 1
      dp/wifi3.0/dp_htt.c

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

@@ -1612,7 +1612,10 @@ static void dp_process_ppdu_stats_common_tlv(struct dp_pdev *pdev,
 	ppdu_desc->tx_duration = *tag_buf;
 	tag_buf += 3;
 	ppdu_desc->ppdu_start_timestamp = *tag_buf;
-	ppdu_desc->ppdu_end_timestamp = 0; /*TODO: value to be provided by FW */
+
+	ppdu_desc->ppdu_end_timestamp = ppdu_desc->ppdu_start_timestamp +
+					ppdu_desc->tx_duration;
+
 	tag_buf++;
 
 	freq = HTT_PPDU_STATS_COMMON_TLV_CHAN_MHZ_GET(*tag_buf);