From 28541119a52dc571146c54dde8a2364694c62354 Mon Sep 17 00:00:00 2001 From: Soumya Bhat Date: Wed, 22 Nov 2017 16:58:29 +0530 Subject: [PATCH] qcacmn: Populate RU tones in TX PPDU stats Populate per user RU tones for TX PPDU Change-Id: I5725c0500d8a22247913d3656047e25eaaa8c6d3 CRs-Fixed: 2147797 --- dp/inc/cdp_txrx_cmn_struct.h | 1 + dp/wifi3.0/dp_htt.c | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/dp/inc/cdp_txrx_cmn_struct.h b/dp/inc/cdp_txrx_cmn_struct.h index 10448fa8fbd1..3d0e707482a9 100644 --- a/dp/inc/cdp_txrx_cmn_struct.h +++ b/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; }; diff --git a/dp/wifi3.0/dp_htt.c b/dp/wifi3.0/dp_htt.c index 4f0cc4277dd9..5fe93875e200 100644 --- a/dp/wifi3.0/dp_htt.c +++ b/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);