summaryrefslogtreecommitdiff
path: root/uapi
diff options
context:
space:
mode:
authorSamuel Ahn <sahn@codeaurora.org>2016-09-19 15:46:36 +0530
committerqcabuildsw <qcabuildsw@localhost>2016-12-14 14:08:37 -0800
commitc9c48ca4083fb01ec092e64d20a4c9151f3eb28c (patch)
treecd44d5947dcb39cf06522bf689ddf6b5a2af65d7 /uapi
parent42234d808e5715420eb07a5e2ef58760c477dae9 (diff)
downloadqcacld-c9c48ca4083fb01ec092e64d20a4c9151f3eb28c.tar.gz
qcacld-3.0: Add support for multiple instances of the host driver
Propagation from qcacld-2.0 to qcacld-3.0. If the module name is changed to something other than wlan in Makefile or Kbuild, then MULTI_IF_NAME is defined to be the module name. When MULTI_IF_NAME is defined, the names for the config files, log files, and firmware files are prepended or appended with MULTI_IF_NAME. This prevents file name collisions allowing multiple instances of this driver to be loaded with different module names. Change-Id: Id880c5fe423eb0b2a2c01677d8fa7c4a784c74df CRs-Fixed: 946520
Diffstat (limited to 'uapi')
-rw-r--r--uapi/linux/pktlog_ac_fmt.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/uapi/linux/pktlog_ac_fmt.h b/uapi/linux/pktlog_ac_fmt.h
index ff736478a0..ee5b4abb40 100644
--- a/uapi/linux/pktlog_ac_fmt.h
+++ b/uapi/linux/pktlog_ac_fmt.h
@@ -33,11 +33,15 @@
#define PKTLOG_MAGIC_NUM 7735225
#ifdef __linux__
+#ifdef MULTI_IF_NAME
+#define PKTLOG_PROC_DIR "ath_pktlog" MULTI_IF_NAME
+#define WLANDEV_BASENAME "cld" MULTI_IF_NAME
+#else
#define PKTLOG_PROC_DIR "ath_pktlog"
-#define PKTLOG_PROC_SYSTEM "system"
#define WLANDEV_BASENAME "cld"
#endif
-
+#endif
+#define PKTLOG_PROC_SYSTEM "system"
#ifdef WIN32
#pragma pack(push, pktlog_fmt, 1)
#define __ATTRIB_PACK