qca-wifi: 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, in case feature
is disabled

Change-Id: I71f102ba2f25f23bdcef63dddb525d5f7b0a692a
CRs-Fixed: 2643848
This commit is contained in:
Srinivas Pitla
2020-03-16 18:53:49 -07:00
committed by Gerrit - the friendly Code Review server
parent d0aafa3624
commit d11868e2c3

View File

@@ -418,6 +418,9 @@ void dp_deliver_mgmt_frm(struct dp_pdev *pdev, qdf_nbuf_t nbuf)
"dlvr mgmt frm(0x%08x): fc 0x%x %x, dur 0x%x%x\n",
ptr_mgmt_hdr->ppdu_id, wh->i_fc[1], wh->i_fc[0],
wh->i_dur[1], wh->i_dur[0]);
} else {
qdf_nbuf_free(nbuf);
return;
}
}