qcacmn: populate actual framelength for MGMTCTRL TLV
for HTT_PPDU_STATS_TX_MGMTCTRL_PAYLOAD_TLV get the length
from TLV data
Change-Id: I84526a36ebac5a267530d697a4fe51646d0c9cbd
diff --git a/dp/wifi3.0/dp_htt.c b/dp/wifi3.0/dp_htt.c
index d09529c..d4b0217 100644
--- a/dp/wifi3.0/dp_htt.c
+++ b/dp/wifi3.0/dp_htt.c
@@ -2938,8 +2938,10 @@
*/
if (tlv_type == HTT_PPDU_STATS_TX_MGMTCTRL_PAYLOAD_TLV) {
pdev->mgmtctrl_frm_info.mgmt_buf = tlv_buf;
- pdev->mgmtctrl_frm_info.mgmt_buf_len = tlv_length;
pdev->mgmtctrl_frm_info.ppdu_id = ppdu_id;
+ pdev->mgmtctrl_frm_info.mgmt_buf_len =
+ HTT_PPDU_STATS_TX_MGMTCTRL_TLV_FRAME_LENGTH_GET
+ (*(msg_word + 1));
msg_word =
(uint32_t *)((uint8_t *)tlv_buf + tlv_length);
length -= (tlv_length);