From eade62fc4904f71d25193bb777d2544d337b9246 Mon Sep 17 00:00:00 2001 From: Sourav Mohapatra Date: Fri, 12 Jan 2018 11:31:45 +0530 Subject: [PATCH] qcacld-3.0: Remove check to disable memdump for FTM mode During init and deinit, the driver performs memdymp_init and memdump_deinit. These are not done for the case when driver is in FTM mode. In the present scenario, unloading the driver while in FTM mode and then reloading causes problem. Allow memdump_init and memdump_deinit to occur while the driver is in FTM mode. Change-Id: I4bed1bf76ee19612da9c27fe6cebb586ef7e542b CRs-Fixed: 2170695 --- core/hdd/src/wlan_hdd_memdump.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/core/hdd/src/wlan_hdd_memdump.c b/core/hdd/src/wlan_hdd_memdump.c index 0ece88d7cd3b..46f426c46404 100644 --- a/core/hdd/src/wlan_hdd_memdump.c +++ b/core/hdd/src/wlan_hdd_memdump.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -260,11 +260,6 @@ int hdd_driver_memdump_init(void) int status; struct hdd_context *hdd_ctx; - if (hdd_get_conparam() == QDF_GLOBAL_FTM_MODE) { - hdd_err("Not initializing memdump in FTM mode"); - return -EINVAL; - } - hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD); if (!hdd_ctx) { hdd_err("Invalid HDD context"); @@ -291,11 +286,6 @@ int hdd_driver_memdump_init(void) */ void hdd_driver_memdump_deinit(void) { - if (hdd_get_conparam() == QDF_GLOBAL_FTM_MODE) { - hdd_err("Not deinitializing memdump in FTM mode"); - return; - } - hdd_driver_memdump_procfs_remove(); hdd_driver_mem_cleanup();