qcacmn: Reset variables appropriately

In existing code, variable used to track mgmt. and control
TLV is getting reset only in success case.

Add change to reset it appropriately.
CRs-Fixed: 2248313

Change-Id: Ieac5dc215f441b0530013ea1e36abcba19294754
This commit is contained in:
Soumya Bhat
2018-06-25 12:34:32 +05:30
committed by nshrivas
parent 62f2bb9136
commit 1dfef0346b

View File

@@ -2209,10 +2209,6 @@ dp_process_ppdu_stats_tx_mgmtctrl_payload_tlv(struct dp_pdev *pdev,
WDI_NO_VAL, pdev->pdev_id);
}
pdev->mgmtctrl_frm_info.mgmt_buf = NULL;
pdev->mgmtctrl_frm_info.mgmt_buf_len = 0;
pdev->mgmtctrl_frm_info.ppdu_id = 0;
return QDF_STATUS_E_ALREADY;
}
@@ -2594,6 +2590,10 @@ static bool dp_txrx_ppdu_stats_handler(struct dp_soc *soc,
(pdev, htt_t2h_msg, pdev->mgmtctrl_frm_info.ppdu_id) !=
QDF_STATUS_SUCCESS)
free_buf = false;
pdev->mgmtctrl_frm_info.mgmt_buf = NULL;
pdev->mgmtctrl_frm_info.mgmt_buf_len = 0;
pdev->mgmtctrl_frm_info.ppdu_id = 0;
}
if (ppdu_info)