blob: d988b581139f7700d860db1ed9296133a477fd8b [file] [log] [blame]
Nirav Shahe8ac3402017-12-31 15:36:32 +05301
2# Make WLAN as open-source driver by default
3WLAN_OPEN_SOURCE := 1
4
5#Whether to build debug version
6BUILD_DEBUG_VERSION := 1
7
8#Enable this flag to build driver in diag version
9BUILD_DIAG_VERSION := 1
10
11#Enable OL debug and wmi unified functions
12CONFIG_ATH_PERF_PWR_OFFLOAD := 1
13
14#Disable packet log
15CONFIG_REMOVE_PKT_LOG := 0
16
17#Enable power management suspend/resume functionality to PCI
18CONFIG_ATH_BUS_PM := 1
19
20#Enable FLOWMAC module support
21CONFIG_ATH_SUPPORT_FLOWMAC_MODULE := 0
22
23#Enable spectral support
24CONFIG_ATH_SUPPORT_SPECTRAL := 0
25
26#Enable HOST statistics support
27CONFIG_SUPPORT_HOST_STATISTICS := 0
28
29#Enable WDI Event support
30CONFIG_WDI_EVENT_ENABLE := 1
31
32#Endianess selection
33CONFIG_LITTLE_ENDIAN := 1
34
35#Enable TX reclaim support
36CONFIG_TX_CREDIT_RECLAIM_SUPPORT := 0
37
38#Enable FTM support
39CONFIG_QCA_WIFI_FTM := 1
40
41#Enable Checksum Offload
42CONFIG_CHECKSUM_OFFLOAD := 1
43
44#Enable GTK offload
45CONFIG_GTK_OFFLOAD := 1
46
47#Enable Signed firmware support for split binary format
48CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT := 0
49
50#Enable single firmware binary format
51CONFIG_QCA_SINGLE_BINARY_SUPPORT := 0
52
53#Enable collecting target RAM dump after kernel panic
54CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC := 1
55
56#Flag to enable/disable secure firmware feature
57CONFIG_FEATURE_SECURE_FIRMWARE := 0
58
59#Flag to enable Stats Ext implementation
60CONFIG_FEATURE_STATS_EXT := 1
61
62#Enable OS specific IRQ abstraction
63CONFIG_ATH_SUPPORT_SHARED_IRQ := 1
64
65#Whether have QMI support
66CONFIG_QMI_SUPPORT := 1
67
68#Set this to 1 to catch erroneous Target accesses during debug.
69CONFIG_ATH_PCIE_ACCESS_DEBUG := 0
70
71CONFIG_QCACLD_FEATURE_GREEN_AP := y
72
73CONFIG_FEATURE_EPPING := y
74
75#Flag to enable Legacy Fast Roaming2(LFR2)
76CONFIG_QCACLD_WLAN_LFR2 := y
77
78CONFIG_MPC_UT_FRAMEWORK := y
79
80#Flag to enable offload packets feature
81CONFIG_WLAN_OFFLOAD_PACKETS := y
82
83#enable TSF get feature
84CONFIG_WLAN_SYNC_TSF := y
85
86# Flag to enable LFR Subnet Detection
87CONFIG_LFR_SUBNET_DETECTION := y
88
89# Flag to enable MCC to SCC switch feature
90CONFIG_MCC_TO_SCC_SWITCH := y
91
92#Flag to enable Fast Transition (11r) feature
93CONFIG_QCOM_VOWIFI_11R := y
94
95#Flag to enable FILS Feature (11ai)
96CONFIG_WLAN_FEATURE_FILS := y
97
98#Flag to enable Protected Managment Frames (11w) feature
99CONFIG_WLAN_FEATURE_11W := y
100
101CONFIG_FEATURE_HTC_CREDIT_HISTORY := 1
102
103ifneq ($(DEVELOPER_DISABLE_BUILD_TIMESTAMP),y)
104ifneq ($(WLAN_DISABLE_BUILD_TAG),y)
105 CONFIG_BUILD_TAG := y
106endif
107endif
108
109#Flag to enable Legacy Fast Roaming3(LFR3)
110ifneq ($(CONFIG_ARCH_SDX20), y)
111CONFIG_QCACLD_WLAN_LFR3 := y
112endif
113
114ifeq ($(CONFIG_ARCH_MSM8998), y)
115CONFIG_QCACLD_FEATURE_METERING := y
116endif
117
118ifeq ($(CONFIG_ARCH_SDM660), y)
119CONFIG_QCACLD_FEATURE_METERING := y
120endif
121
122ifeq ($(CONFIG_ARCH_SDM630), y)
123CONFIG_QCACLD_FEATURE_METERING := y
124endif
125
126ifeq ($(CONFIG_ARCH_SDM845), y)
127CONFIG_QCACLD_FEATURE_METERING := y
128endif
129
130ifeq ($(CONFIG_ARCH_SDM670), y)
131CONFIG_QCACLD_FEATURE_METERING := y
132endif
133
134# As per target team, build is done as follows:
135# Defconfig : build with default flags
136# Slub : defconfig + CONFIG_SLUB_DEBUG=y +
137# CONFIG_SLUB_DEBUG_ON=y + CONFIG_PAGE_POISONING=y
138# Perf : Using appropriate msmXXXX-perf_defconfig
139#
140# Shipment builds (user variants) should not have any debug feature
141# enabled. This is identified using 'TARGET_BUILD_VARIANT'. Slub builds
142# are identified using the CONFIG_SLUB_DEBUG_ON configuration. Since
143# there is no other way to identify defconfig builds, QCOMs internal
144# representation of perf builds (identified using the string 'perf'),
145# is used to identify if the build is a slub or defconfig one. This
146# way no critical debug feature will be enabled for perf and shipment
147# builds. Other OEMs are also protected using the TARGET_BUILD_VARIANT
148# config.
149ifneq ($(TARGET_BUILD_VARIANT),user)
150 ifeq ($(CONFIG_ARCH),lithium)
151 CONFIG_FEATURE_PKTLOG := n
152 else
153 CONFIG_FEATURE_PKTLOG := y
154 endif
155endif
156
157#Enable IPA offload
158ifeq ($(CONFIG_IPA), y)
159 CONFIG_IPA_OFFLOAD := 1
160endif
161
162ifeq ($(CONFIG_IPA3), y)
163 CONFIG_IPA_OFFLOAD := 1
164endif
165
166ifeq ($(CONFIG_CFG80211),y)
167 HAVE_CFG80211 := 1
168else
169 ifeq ($(CONFIG_CFG80211),m)
170 HAVE_CFG80211 := 1
171 else
172 HAVE_CFG80211 := 0
173 endif
174endif
175
176#### Data Path Features ###
177ifeq ($(WLAN_FEATURE_LL_DATA_PATH), 1)
178
179 ifneq ($(CONFIG_ARCH), rome)
180 CONFIG_FEATURE_TSO := y
181 CONFIG_FEATURE_TSO_DEBUG := y
182 # Flag to enable LRO (Large Receive Offload)
183 ifeq ($(CONFIG_INET_LRO), y)
184 CONFIG_WLAN_LRO := y
185 else
186 CONFIG_WLAN_LRO := n
187 endif
188 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
189 endif
190
191 #Flag to enable Fast Path feature
192 CONFIG_WLAN_FASTPATH := y
193
194 # Flag to enable NAPI
195 CONFIG_WLAN_NAPI := y
196 CONFIG_WLAN_NAPI_DEBUG := n
197
198endif
199
200ifeq ($(CONFIG_PROFILE),auto)
201 ifeq ($(CONFIG_INTF),sdio)
202 CONFIG_WLAN_FEATURE_DSRC := y
203 endif
204endif