qcacmn: Populate RU tones in TX PPDU stats

Populate per user RU tones for TX PPDU

Change-Id: I5725c0500d8a22247913d3656047e25eaaa8c6d3
CRs-Fixed: 2147797
This commit is contained in:
Soumya Bhat 2017-11-22 16:58:29 +05:30 • committed by snandini
commit 28541119a5
2 changed files with 7 additions and 1 deletions

View file

@ -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;
};

View file

@ -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);