Преглед изворни кода

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
Srinivas Pitla пре 5 година
родитељ
комит
cd32eed2af
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      dp/wifi3.0/dp_htt.c

+ 2 - 0
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