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
This commit is contained in:
Srinivas Pitla
2020-03-16 18:56:07 -07:00
کامیت شده توسط nshrivas
والد 623955bd83
کامیت cd32eed2af

مشاهده پرونده

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