Fix a memory leak in the cnss layer, where the packet used to send the disable command never gets freed. CRs-Fixed: 2185830 Change-Id: I8118baf2397bf6440177d3fe92d34a537c29df8b
@@ -3418,6 +3418,9 @@ void hif_wlan_disable(struct hif_softc *scn)
enum pld_driver_mode mode;
uint32_t con_mode = hif_get_conparam(scn);
+ if (scn->target_status == TARGET_STATUS_RESET)
+ return;
+
if (QDF_GLOBAL_FTM_MODE == con_mode)
mode = PLD_FTM;
else if (QDF_IS_EPPING_ENABLED(con_mode))