Procházet zdrojové kódy

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
Sourav Mohapatra před 7 roky
rodič
revize
eade62fc49
1 změnil soubory, kde provedl 1 přidání a 11 odebrání
  1. 1 11
      core/hdd/src/wlan_hdd_memdump.c

+ 1 - 11
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();