From c9c48ca4083fb01ec092e64d20a4c9151f3eb28c Mon Sep 17 00:00:00 2001 From: Samuel Ahn Date: Mon, 19 Sep 2016 15:46:36 +0530 Subject: 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 --- uapi/linux/pktlog_ac_fmt.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'uapi') 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 -- cgit v1.2.3