diff --git a/Kbuild b/Kbuild index 10446e04efe5..ce8eacf39576 100644 --- a/Kbuild +++ b/Kbuild @@ -74,6 +74,10 @@ UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux COMMON_DIR := core/common COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR) +ifeq (qca_cld3, $(WLAN_WEAR_CHIPSET)) + cppflags-y += -DWLAN_WEAR_CHIPSET +endif + ############ HDD ############ HDD_DIR := core/hdd HDD_INC_DIR := $(HDD_DIR)/inc diff --git a/Makefile b/Makefile index 253513749548..e0f6ff2f3154 100644 --- a/Makefile +++ b/Makefile @@ -14,9 +14,9 @@ M ?= $(shell pwd) # WLAN_ROOT must contain an absolute path (i.e. not a relative path) KBUILD_OPTIONS := WLAN_ROOT=$(shell cd $(KERNEL_SRC); readlink -e $(M)) -# MODNAME should be qca_cld3_wlan for helium based platform -ifeq (qca_cld3, $(WLAN_CHIPSET)) -KBUILD_OPTIONS += MODNAME?=$(WLAN_CHIPSET)_wlan +# MODNAME should be qca_cld3_wlan for helium based wear target +ifeq (qca_cld3, $(WLAN_WEAR_CHIPSET)) +KBUILD_OPTIONS += MODNAME?=$(WLAN_WEAR_CHIPSET)_wlan else KBUILD_OPTIONS += MODNAME?=wlan endif diff --git a/core/hdd/src/wlan_hdd_driver_ops.c b/core/hdd/src/wlan_hdd_driver_ops.c index 8d1f532868d1..6a0822a8c41b 100644 --- a/core/hdd/src/wlan_hdd_driver_ops.c +++ b/core/hdd/src/wlan_hdd_driver_ops.c @@ -50,7 +50,11 @@ #include "wlan_hdd_thermal.h" #ifdef MODULE +#ifdef WLAN_WEAR_CHIPSET +#define WLAN_MODULE_NAME "wlan" +#else #define WLAN_MODULE_NAME module_name(THIS_MODULE) +#endif #else #define WLAN_MODULE_NAME "wlan" #endif diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 5169ef3a4ada..10824450579b 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -200,7 +200,11 @@ #include "wlan_hdd_thermal.h" #ifdef MODULE +#ifdef WLAN_WEAR_CHIPSET +#define WLAN_MODULE_NAME "wlan" +#else #define WLAN_MODULE_NAME module_name(THIS_MODULE) +#endif #else #define WLAN_MODULE_NAME "wlan" #endif