mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
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
This commit is contained in:
parent
42234d808e
commit
c9c48ca408
9 changed files with 134 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue