瀏覽代碼

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
Srinivas Pitla 5 年之前
父節點
當前提交
d11868e2c3
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      dp/wifi3.0/dp_tx_capture.c

+ 3 - 0
dp/wifi3.0/dp_tx_capture.c

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