qcacld-2.0: fix proc_mkdir() fail on multiple wifi modules case
The proc_mkdir() fail in hdd_driver_memdump_procfs_init() on multiple
wifi modules case if the first wifi module load successfully. Because
the debug memdump directory which proc_mkdir() created have the same
name and cause proc_mkdir() fail. Then change to use different debug
memdump directory name for different multiple wifi modules.
Change-Id: I272ba5c543ba8d0f964ea66ba0e3eb747c1d306a
CRs-Fixed: 2109727
diff --git a/CORE/HDD/src/wlan_hdd_memdump.c b/CORE/HDD/src/wlan_hdd_memdump.c
index cb69472..09deb2e 100644
--- a/CORE/HDD/src/wlan_hdd_memdump.c
+++ b/CORE/HDD/src/wlan_hdd_memdump.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2015-2018 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -42,14 +42,14 @@
#include <linux/proc_fs.h> /* Necessary because we use the proc fs */
#include <linux/uaccess.h> /* for copy_to_user */
-#define PROCFS_DRIVER_DUMP_DIR "debugdriver"
-
#ifdef MULTI_IF_NAME
-#define PROCFS_DRIVER_DUMP_NAME "driverdump" MULTI_IF_NAME
+#define PROCFS_DRIVER_DUMP_DIR "debugdriver" MULTI_IF_NAME
#else
-#define PROCFS_DRIVER_DUMP_NAME "driverdump"
+#define PROCFS_DRIVER_DUMP_DIR "debugdriver"
#endif
+#define PROCFS_DRIVER_DUMP_NAME "driverdump"
+
#define PROCFS_DRIVER_DUMP_PERM 0444
static struct proc_dir_entry *proc_file_driver, *proc_dir_driver;