From b8db1bd02b952eb9f6660da8c7f028a0ea360be5 Mon Sep 17 00:00:00 2001 From: Chaithanya Garrepalli Date: Mon, 15 Jul 2019 16:03:57 +0530 Subject: [PATCH] qcacmn: populate actual framelength for MGMTCTRL TLV for HTT_PPDU_STATS_TX_MGMTCTRL_PAYLOAD_TLV get the length from TLV data Change-Id: I84526a36ebac5a267530d697a4fe51646d0c9cbd --- dp/wifi3.0/dp_htt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_htt.c b/dp/wifi3.0/dp_htt.c index d09529c897..d4b02174ad 100644 --- a/dp/wifi3.0/dp_htt.c +++ b/dp/wifi3.0/dp_htt.c @@ -2938,8 +2938,10 @@ static struct ppdu_info *dp_htt_process_tlv(struct dp_pdev *pdev, */ 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);