qcacld-3.0: Enable connection manager LFR2 code path

Enable connection manager LFR2 code path, then all targets which are
using LFR2 will switch to connection manager code path.

Change-Id: I37f831596699d39e635d88ee88faf841f3a36063
CRs-Fixed: 2968850
このコミットが含まれているのは:
Huashan Qu
2021-04-09 15:45:56 +05:30
committed by Madan Koyyalamudi
コミット 1d647269cd

27
Kbuild
ファイルの表示

@@ -40,14 +40,6 @@ $(foreach cfg, $(WLAN_CFG_OVERRIDE), \
$(eval $(cfg)) \
$(warning "Overriding WLAN config with: $(cfg)"))
# This is temp change until connection manager changes for LFR2 are done.
# Once LFR2 changes are done, CONFIG_CM_ENABLE will be removed and all
# connection manager files would compile by default.
# For now enable Connection manager only for platforms supporting LFR3
ifeq ($(CONFIG_QCACLD_WLAN_LFR3), y)
CONFIG_CM_ENABLE := y
endif
# KERNEL_SUPPORTS_NESTED_COMPOSITES := y is used to enable nested
# composite support. The nested composite support is available in some
# MSM kernels, and is available in all GKI kernels beginning with
@@ -985,14 +977,11 @@ OS_IF_INC += -I$(WLAN_COMMON_INC)/os_if/linux \
OS_IF_OBJ += $(OS_IF_DIR)/linux/wlan_osif_request_manager.o \
$(OS_IF_DIR)/linux/crypto/src/wlan_nl_to_crypto_params.o \
$(OS_IF_DIR)/linux/mlme/src/osif_cm_util.o
ifeq ($(CONFIG_CM_ENABLE), y)
OS_IF_OBJ += $(OS_IF_DIR)/linux/mlme/src/osif_cm_connect_rsp.o \
$(OS_IF_DIR)/linux/mlme/src/osif_cm_util.o \
$(OS_IF_DIR)/linux/mlme/src/osif_cm_connect_rsp.o \
$(OS_IF_DIR)/linux/mlme/src/osif_cm_disconnect_rsp.o \
$(OS_IF_DIR)/linux/mlme/src/osif_cm_req.o \
$(OS_IF_DIR)/linux/mlme/src/osif_cm_roam_rsp.o
endif
CONFIG_CRYPTO_COMPONENT := y
@@ -1416,10 +1405,8 @@ UMAC_MLME_OBJS := $(WLAN_COMMON_ROOT)/umac/mlme/mlme_objmgr/dispatcher/src/wlan_
$(WLAN_COMMON_ROOT)/umac/mlme/pdev_mgr/dispatcher/src/wlan_pdev_mlme_api.o \
$(WLAN_COMMON_ROOT)/umac/mlme/mlme_objmgr/dispatcher/src/wlan_psoc_mlme_main.o \
$(WLAN_COMMON_ROOT)/umac/mlme/psoc_mgr/dispatcher/src/wlan_psoc_mlme_api.o \
$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_bss_scoring.o
ifeq ($(CONFIG_CM_ENABLE), y)
UMAC_MLME_OBJS += $(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_main.o \
$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_bss_scoring.o \
$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_main.o \
$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_sm.o \
$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_roam_sm.o \
$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_connect.o \
@@ -1439,7 +1426,6 @@ ifeq ($(CONFIG_QCACLD_WLAN_LFR2), y)
UMAC_MLME_OBJS += $(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_roam_util.o \
$(WLAN_COMMON_ROOT)/umac/mlme/connection_mgr/core/src/wlan_cm_host_roam.o
endif
endif
$(call add-wlan-objs,umac_mlme,$(UMAC_MLME_OBJS))
@@ -1481,13 +1467,11 @@ MLME_OBJS += $(CM_TGT_IF_DIR)/src/target_if_cm_roam_event.o \
$(CM_DIR)/core/src/wlan_cm_roam_offload_event.o
endif
ifeq ($(CONFIG_CM_ENABLE), y)
ifeq ($(CONFIG_QCACLD_WLAN_LFR2), y)
# Add LFR2/host roam specific connection manager files here
MLME_OBJS += $(CM_DIR)/core/src/wlan_cm_host_roam_preauth.o \
$(CM_DIR)/core/src/wlan_cm_host_util.o
endif
endif
####### WFA_CONFIG ########
@@ -3050,11 +3034,8 @@ endif
cppflags-$(CONFIG_WLAN_SYSFS_TDLS_PEERS) += -DWLAN_SYSFS_TDLS_PEERS
cppflags-$(CONFIG_WLAN_SYSFS_RANGE_EXT) += -DWLAN_SYSFS_RANGE_EXT
ifeq ($(CONFIG_CM_ENABLE), y)
cppflags-y += -DFEATURE_CM_ENABLE
cppflags-$(CONFIG_QCACLD_WLAN_LFR2) += -DWLAN_FEATURE_PREAUTH_ENABLE
endif
cppflags-y += -DCONN_MGR_ADV_FEATURE
cppflags-$(CONFIG_QCACLD_WLAN_LFR3) += -DWLAN_FEATURE_ROAM_OFFLOAD