From db0c68806a4855bed6b98be2fd8b921ca11d87b9 Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Wed, 20 Dec 2017 15:09:58 -0800 Subject: [PATCH] qcacld-3.0: Remove FTM checks from memdump init/deinit The transition to/from FTM happens after the memdump feature is initialized. However, the memdump init/deinit functions bail out if the driver is currently in FTM. This leads to situations were memdump is initialized, but skips deinitialization when the driver is in FTM at the time of unload. Since memdump is always initialized during driver probe (the driver is never in FTM at that time), always deinitialize on driver unload. Change-Id: Ib3555a89f64912403d8858877086ab070ce24e35 CRs-Fixed: 2162241 --- core/hdd/src/wlan_hdd_memdump.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/hdd/src/wlan_hdd_memdump.c b/core/hdd/src/wlan_hdd_memdump.c index d3e374497ec4..956fa506ed96 100644 --- a/core/hdd/src/wlan_hdd_memdump.c +++ b/core/hdd/src/wlan_hdd_memdump.c @@ -553,11 +553,6 @@ int memdump_init(void) return -EINVAL; } - if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) { - hdd_err("Not initializing memdump in FTM mode"); - return -EINVAL; - } - status = memdump_procfs_init(); if (status) { hdd_err("Failed to create proc file"); @@ -601,11 +596,6 @@ void memdump_deinit(void) return; } - if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) { - hdd_err("Not deinitializing memdump in FTM mode"); - return; - } - if (!hdd_ctx->memdump_init_done) { hdd_warn("MemDump not initialized"); return;