diff options
| author | Samuel Ahn <sahn@codeaurora.org> | 2016-09-20 12:51:28 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-11-18 17:25:35 -0800 |
| commit | 0bfed134862fc128eef842a287f8f8becedbae9f (patch) | |
| tree | ce13de2db1bdad2326f1218ad20482e4fd3f6923 /hif/src | |
| parent | 5a34f15fd0628e7c4a6c0caa9b1e18a6bc02e8c7 (diff) | |
qcacmn: Add support for multiple instances of the host driver
Propagation from qcacld-2.0 to qca-wifi-host-cmn.
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 'hif/src')
| -rw-r--r-- | hif/src/ath_procfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hif/src/ath_procfs.c b/hif/src/ath_procfs.c index d1f720286633..0a19c65eaa58 100644 --- a/hif/src/ath_procfs.c +++ b/hif/src/ath_procfs.c @@ -43,7 +43,11 @@ #include "pld_common.h" #define PROCFS_NAME "athdiagpfs" +#ifdef MULTI_IF_NAME +#define PROCFS_DIR "cld" MULTI_IF_NAME +#else #define PROCFS_DIR "cld" +#endif /** * This structure hold information about the /proc file |
