From cd32eed2aff5269635fdaea1267bc02c5c9f26b9 Mon Sep 17 00:00:00 2001 From: Srinivas Pitla Date: Mon, 16 Mar 2020 18:56:07 -0700 Subject: [PATCH] qcacmn: Drop mgmt nbuf in tx_capture disabled case If tx_capture is disabled, the frames notified to tx_capture module needs to be freed. This change frees mgmt frames in tx capture module, if the feature is disabled Change-Id: I5f9ced69246c2b712d76f2f3cc61b5c386b703ec CRs-Fixed: 2644025 --- dp/wifi3.0/dp_htt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dp/wifi3.0/dp_htt.c b/dp/wifi3.0/dp_htt.c index 887a6353f1..72940219cb 100644 --- a/dp/wifi3.0/dp_htt.c +++ b/dp/wifi3.0/dp_htt.c @@ -2898,6 +2898,8 @@ void dp_deliver_mgmt_frm(struct dp_pdev *pdev, qdf_nbuf_t nbuf) dp_wdi_event_handler(WDI_EVENT_TX_MGMT_CTRL, pdev->soc, nbuf, HTT_INVALID_PEER, WDI_NO_VAL, pdev->pdev_id); + } else { + qdf_nbuf_free(nbuf); } } #endif