From 0bfed134862fc128eef842a287f8f8becedbae9f Mon Sep 17 00:00:00 2001 From: Samuel Ahn Date: Tue, 20 Sep 2016 12:51:28 +0530 Subject: 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 --- hif/src/ath_procfs.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hif/src') 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 -- cgit v1.2.3