-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwlan.mk
115 lines (97 loc) · 4.08 KB
/
wlan.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#
# TARGET_WLAN_CHIP directs QCACLD driver to be built for that particular
# chipset(s). It can take multiple supported chipsets. Please refer QCACLD
# driver code for supported chipsets.
#
# Default behaviour is invoked if TARGET_WLAN_CHIP is not defined.
#
# It also installs chip specific INI files.
#
# e.g. TARGET_WLAN_CHIP := qca6490 qca6390
# builds qca_cld3_qca6490.ko and qca_cld3_qca6390.ko
#
# Copies configuration files from device/qcom/wlan/kalama/ to
# $(TARGET_COPY_OUT_VENDOR)/etc/wifi/ like,
#
# WCNSS_qcom_cfg_qca6490.ini -> qca6490/WCNSS_qcom_cfg.ini
# WCNSS_qcom_cfg_qca6390.ini -> qca6390/WCNSS_qcom_cfg.ini
#
#
TARGET_WLAN_CHIP := kiwi kiwi_v2 qca6490
WLAN_CHIPSET := qca_cld3
# Force chip-specific DLKM name
TARGET_MULTI_WLAN := true
#WPA
WPA := wpa_cli
# Package chip specific ko files if TARGET_WLAN_CHIP is defined.
ifneq ($(TARGET_WLAN_CHIP),)
PRODUCT_PACKAGES += $(foreach chip, $(TARGET_WLAN_CHIP), $(WLAN_CHIPSET)_$(chip).ko)
else
PRODUCT_PACKAGES += $(WLAN_CHIPSET)_wlan.ko
endif
PRODUCT_PACKAGES += wifilearner
PRODUCT_PACKAGES += $(WPA)
PRODUCT_PACKAGES += qsh_wifi_test
PRODUCT_PACKAGES += init.vendor.wlan.rc
PRODUCT_PACKAGES += wificfrtool
PRODUCT_PACKAGES += ctrlapp_dut
PRODUCT_PACKAGES += libwpa_drv_oem_hmd
PRODUCT_PACKAGES += wifimyftm
#Enable WIFI AWARE FEATURE
WIFI_HIDL_FEATURE_AWARE := true
# Copy chip specific INI files if TARGET_WLAN_CHIP is defined
ifneq ($(TARGET_WLAN_CHIP),)
PRODUCT_COPY_FILES += \
$(foreach chip, $(TARGET_WLAN_CHIP), \
device/qcom/wlan/kalama/WCNSS_qcom_cfg_$(chip).ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/$(chip)/WCNSS_qcom_cfg.ini)
else
PRODUCT_COPY_FILES += \
device/qcom/wlan/kalama/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini
endif
PRODUCT_COPY_FILES += \
device/qcom/wlan/kalama/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
device/qcom/wlan/kalama/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
device/qcom/wlan/kalama/icm.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/icm.conf \
device/qcom/wlan/kalama/vendor_cmd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/vendor_cmd.xml \
frameworks/native/data/etc/android.hardware.wifi.aware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.aware.xml \
frameworks/native/data/etc/android.hardware.wifi.rtt.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.rtt.xml \
frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml
# Enable STA + SAP Concurrency.
WIFI_HIDL_FEATURE_DUAL_INTERFACE := true
# Enable SAP + SAP Feature.
QC_WIFI_HIDL_FEATURE_DUAL_AP := true
# Enable vendor properties.
PRODUCT_PROPERTY_OVERRIDES += \
wifi.aware.interface=wifi-aware0
# Enable STA + STA Feature.
QC_WIFI_HIDL_FEATURE_DUAL_STA := true
#Disable cnss-daemon QMI communication with FW
TARGET_USES_NO_FW_QMI_CLIENT := true
#Disable DMS MAC address feature in cnss-daemon
TARGET_USES_NO_DMS_QMI_CLIENT := true
WLAN_PLATFORM_KBUILD_OPTIONS := CONFIG_CNSS_OUT_OF_TREE=y CONFIG_CNSS2=m \
CONFIG_CNSS2_QMI=y CONFIG_CNSS_QMI_SVC=m \
CONFIG_CNSS_PLAT_IPC_QMI_SVC=m \
CONFIG_CNSS_GENL=m CONFIG_WCNSS_MEM_PRE_ALLOC=m \
CONFIG_CNSS_UTILS=m CONFIG_BUS_AUTO_SUSPEND=y \
CONFIG_CNSS_HW_SECURE_DISABLE=y \
KERNEL_SUPPORTS_NESTED_COMPOSITES=n
PRODUCT_PACKAGES += cnss2.ko
PRODUCT_PACKAGES += cnss_plat_ipc_qmi_svc.ko
PRODUCT_PACKAGES += wlan_firmware_service.ko
PRODUCT_PACKAGES += cnss_nl.ko
PRODUCT_PACKAGES += cnss_prealloc.ko
PRODUCT_PACKAGES += cnss_utils.ko
ifneq ($(TARGET_WLAN_CHIP),)
# Inject Kbuild options per chip
#
# Select proper chip configuration for building WLAN driver
# module. Currently driver supports only one chip
# configuration per build.
#
# e.g WLAN_KBUILD_OPTIONS_qca6490 := CONFIG_CNSS_QCA6490=y
#
# Note: Idealy, device specific flags should be enabled from
# device specific config file from driver itself instead of
# here.
endif