diff options
| author | Samuel Ahn <sahn@codeaurora.org> | 2016-09-19 15:46:36 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-11-18 16:58:39 -0800 |
| commit | e55a2bf38eb604154a48f86c260755554fb53f5c (patch) | |
| tree | b1e2d6a513a5fd0d3852fba84eb6a6d7f802242a /uapi/linux | |
| parent | 46550680831a20a06725545d19282d9bd6942f6f (diff) | |
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/linux')
| -rw-r--r-- | uapi/linux/pktlog_ac_fmt.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/uapi/linux/pktlog_ac_fmt.h b/uapi/linux/pktlog_ac_fmt.h index c8782fd03f82..cb476f681b2e 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 |
