summaryrefslogtreecommitdiff
path: root/hif
diff options
context:
space:
mode:
authorVinay Adella <vadella@codeaurora.org>2018-02-07 20:07:37 +0530
committernshrivas <nshrivas@codeaurora.org>2018-03-05 04:28:22 -0800
commit2a6bd8a5f9f33595be4a2c092c6d401c56d1cb53 (patch)
treec5fc2993c7346d3ef446d9efb90c2acc7d4e72c3 /hif
parent8b2a535e7a7b48879fb5697ff9ffd8a5b619b8fc (diff)
downloadqca-wfi-host-cmn-2a6bd8a5f9f33595be4a2c092c6d401c56d1cb53.tar.gz
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
Diffstat (limited to 'hif')
-rw-r--r--hif/src/ce/ce_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hif/src/ce/ce_main.c b/hif/src/ce/ce_main.c
index 6381902df..01e69554b 100644
--- a/hif/src/ce/ce_main.c
+++ b/hif/src/ce/ce_main.c
@@ -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))