qcacmn: Don't send message to FW when in reset state

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
このコミットが含まれているのは:
Vinay Adella
2018-02-07 20:07:37 +05:30
committed by nshrivas
コミット 2a6bd8a5f9

ファイルの表示

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