staging: qcacld-3.0: Import from previous project

Signed-off-by: rsuntk <rissu.ntk@gmail.com>
This commit is contained in:
rsuntk 2025-03-20 14:18:01 +00:00
parent 1b2610e01a
commit c809eaebb8
4 changed files with 7 additions and 20 deletions

View file

@ -9,13 +9,16 @@ ifeq ($(KERNEL_BUILD), y)
# These are provided in external module based builds # These are provided in external module based builds
# Need to explicitly define for Kernel-based builds # Need to explicitly define for Kernel-based builds
MODNAME := wlan MODNAME := wlan
WLAN_ROOT := drivers/staging/qcacld-3.0 WLAN_ROOT := $(srctree)/$(src)
WLAN_COMMON_ROOT := ../qca-wifi-host-cmn WLAN_COMMON_ROOT := ../qca-wifi-host-cmn
WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT) WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
WLAN_FW_API := $(WLAN_ROOT)/../fw-api/ WLAN_FW_API := $(WLAN_ROOT)/../fw-api/
WLAN_PROFILE := default WLAN_PROFILE := default
endif endif
# Force user build
export TARGET_BUILD_VARIANT := user
WLAN_COMMON_ROOT ?= ../qca-wifi-host-cmn WLAN_COMMON_ROOT ?= ../qca-wifi-host-cmn
WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT) WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
WLAN_FW_API ?= $(WLAN_ROOT)/../fw-api/ WLAN_FW_API ?= $(WLAN_ROOT)/../fw-api/

View file

@ -1,7 +1,7 @@
comment "Qualcomm Atheros CLD WLAN module" comment "Qualcomm Atheros CLD WLAN module"
config QCA_CLD_WLAN config QCA_CLD_WLAN
tristate "Qualcomm Atheros CLD WLAN module" bool "Qualcomm Atheros CLD WLAN module"
default n default n
help help
Add support for the Qualcomm Atheros CLD WLAN module Add support for the Qualcomm Atheros CLD WLAN module

View file

@ -47,11 +47,8 @@
#include <qdf_notifier.h> #include <qdf_notifier.h>
#include <qdf_hang_event_notifier.h> #include <qdf_hang_event_notifier.h>
#ifdef MODULE // Rissu: force init wlan without sysfs!
#define WLAN_MODULE_NAME module_name(THIS_MODULE)
#else
#define WLAN_MODULE_NAME "wlan" #define WLAN_MODULE_NAME "wlan"
#endif
#define DISABLE_KRAIT_IDLE_PS_VAL 1 #define DISABLE_KRAIT_IDLE_PS_VAL 1
@ -463,19 +460,10 @@ static int hdd_init_qdf_ctx(struct device *dev, void *bdev,
* Return: return -EPROBE_DEFER to platform driver if return value * Return: return -EPROBE_DEFER to platform driver if return value
* is -ENOMEM. Platform driver will try to re-probe. * is -ENOMEM. Platform driver will try to re-probe.
*/ */
#ifdef MODULE
static int check_for_probe_defer(int ret) static int check_for_probe_defer(int ret)
{ {
return ret; return ret;
} }
#else
static int check_for_probe_defer(int ret)
{
if (ret == -ENOMEM)
return -EPROBE_DEFER;
return ret;
}
#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0))
static void hdd_abort_system_suspend(struct device *dev) static void hdd_abort_system_suspend(struct device *dev)

View file

@ -196,11 +196,8 @@
#include <cdp_txrx_ctrl.h> #include <cdp_txrx_ctrl.h>
#include "wlan_global_lmac_if_api.h" #include "wlan_global_lmac_if_api.h"
#ifdef MODULE // Rissu: force init wlan without sysfs!
#define WLAN_MODULE_NAME module_name(THIS_MODULE)
#else
#define WLAN_MODULE_NAME "wlan" #define WLAN_MODULE_NAME "wlan"
#endif
#ifdef TIMER_MANAGER #ifdef TIMER_MANAGER
#define TIMER_MANAGER_STR " +TIMER_MANAGER" #define TIMER_MANAGER_STR " +TIMER_MANAGER"
@ -16644,7 +16641,6 @@ static void hdd_driver_unload(void)
osif_sync_deinit(); osif_sync_deinit();
hdd_qdf_deinit(); hdd_qdf_deinit();
} }
#if defined (SEC_CONFIG_PSM_SYSFS) #if defined (SEC_CONFIG_PSM_SYSFS)