Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 1 | ifeq ($(CONFIG_CNSS_QCA6290), y) |
| 2 | ifeq ($(CONFIG_CNSS_EMULATION), y) |
| 3 | CONFIG_QCA_WIFI_NAPIER_EMULATION := y |
| 4 | endif |
| 5 | CONFIG_LITHIUM := y |
Yue Ma | 62c14ea | 2018-07-05 14:48:31 -0700 | [diff] [blame] | 6 | CONFIG_QCA6290_11AX := y |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 7 | CONFIG_WLAN_FEATURE_11AX := y |
| 8 | CONFIG_WLAN_FEATURE_DFS_OFFLOAD := y |
| 9 | CONFIG_IPA3 := n |
| 10 | endif |
| 11 | |
Venkata Sharath Chandra Manchala | 27a4296 | 2018-06-08 17:51:44 -0700 | [diff] [blame] | 12 | ifeq ($(CONFIG_CNSS_QCA6390), y) |
| 13 | ifeq ($(CONFIG_CNSS_EMULATION), y) |
| 14 | CONFIG_QCA_WIFI_NAPIER_EMULATION := y |
| 15 | endif |
| 16 | CONFIG_LITHIUM := y |
| 17 | CONFIG_WLAN_FEATURE_11AX := y |
| 18 | CONFIG_WLAN_FEATURE_DFS_OFFLOAD := y |
| 19 | CONFIG_IPA3 := n |
Venkata Sharath Chandra Manchala | 1619b73 | 2018-10-04 10:52:58 -0700 | [diff] [blame] | 20 | CONFIG_SCALE_INCLUDES := y |
Venkata Sharath Chandra Manchala | 27a4296 | 2018-06-08 17:51:44 -0700 | [diff] [blame] | 21 | endif |
| 22 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 23 | ifeq ($(CONFIG_CLD_HL_SDIO_CORE), y) |
| 24 | CONFIG_QCA_WIFI_SDIO := y |
Sriram Madhvapathi | 82ec8e3 | 2018-06-07 10:20:15 +0530 | [diff] [blame] | 25 | ifndef CONFIG_SDIO_TRANSFER |
| 26 | CONFIG_SDIO_TRANSFER = mailbox |
| 27 | endif |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 28 | endif |
| 29 | |
| 30 | ifeq ($(CONFIG_QCA_WIFI_SDIO), y) |
| 31 | CONFIG_ROME_IF = sdio |
| 32 | endif |
| 33 | |
| 34 | ifdef CONFIG_ICNSS |
| 35 | CONFIG_ROME_IF = snoc |
| 36 | endif |
| 37 | |
| 38 | ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2))) |
| 39 | ifndef CONFIG_ROME_IF |
| 40 | #use pci as default interface |
| 41 | CONFIG_ROME_IF = pci |
| 42 | endif |
| 43 | endif |
| 44 | |
| 45 | # Make WLAN as open-source driver by default |
| 46 | WLAN_OPEN_SOURCE := y |
| 47 | |
| 48 | ifeq ($(CONFIG_ICNSS), y) |
| 49 | CONFIG_HELIUMPLUS := y |
| 50 | CONFIG_64BIT_PADDR := y |
| 51 | CONFIG_FEATURE_TSO := y |
| 52 | CONFIG_FEATURE_TSO_DEBUG := y |
| 53 | ifeq ($(CONFIG_INET_LRO), y) |
| 54 | CONFIG_WLAN_LRO := y |
| 55 | else |
| 56 | CONFIG_WLAN_LRO := n |
| 57 | endif |
| 58 | endif |
| 59 | |
| 60 | ifneq ($(DEVELOPER_DISABLE_BUILD_TIMESTAMP), y) |
| 61 | ifneq ($(WLAN_DISABLE_BUILD_TAG), y) |
| 62 | CONFIG_BUILD_TAG := y |
| 63 | endif |
| 64 | endif |
| 65 | |
| 66 | ifeq ($(CONFIG_ARCH_MDM9630), y) |
| 67 | CONFIG_MOBILE_ROUTER := y |
| 68 | endif |
| 69 | |
| 70 | ifeq ($(CONFIG_ARCH_MDM9640), y) |
| 71 | CONFIG_MOBILE_ROUTER := y |
| 72 | endif |
| 73 | |
| 74 | ifeq ($(CONFIG_ARCH_SDX20), y) |
| 75 | CONFIG_MOBILE_ROUTER := y |
| 76 | endif |
| 77 | |
jiad | 6ee0ab1 | 2018-11-17 11:23:43 +0800 | [diff] [blame] | 78 | ifeq ($(CONFIG_ARCH_SDXPRAIRIE), y) |
| 79 | CONFIG_MOBILE_ROUTER := y |
| 80 | endif |
| 81 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 82 | ifeq ($(CONFIG_ARCH_MSM8917), y) |
| 83 | ifeq ($(CONFIG_ROME_IF), sdio) |
| 84 | CONFIG_WLAN_SYNC_TSF_PLUS := y |
| 85 | endif |
| 86 | endif |
| 87 | |
yuanl | 2746f07 | 2018-09-21 19:19:16 +0800 | [diff] [blame] | 88 | ifeq ($(CONFIG_ARCH_QCS405), y) |
| 89 | CONFIG_WLAN_SYNC_TSF_PLUS := y |
| 90 | CONFIG_WLAN_SYNC_TSF_PLUS_NOIRQ := y |
| 91 | endif |
| 92 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 93 | #Flag to enable Legacy Fast Roaming2(LFR2) |
| 94 | CONFIG_QCACLD_WLAN_LFR2 := y |
| 95 | #Flag to enable Legacy Fast Roaming3(LFR3) |
| 96 | ifneq ($(CONFIG_ARCH_SDX20), y) |
| 97 | CONFIG_QCACLD_WLAN_LFR3 := y |
| 98 | endif |
| 99 | |
| 100 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
| 101 | #Flag to enable TDLS feature |
| 102 | CONFIG_QCOM_TDLS := y |
Kai Liu | aa88d2f | 2018-08-13 11:30:11 +0800 | [diff] [blame] | 103 | |
| 104 | CONFIG_WLAN_SYSFS := y |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 105 | endif |
| 106 | |
| 107 | CONFIG_QCACLD_FEATURE_GREEN_AP := y |
Varun Reddy Yeturu | 29044cd | 2018-06-28 14:03:10 -0700 | [diff] [blame] | 108 | CONFIG_CRYPTO_COMPONENT := y |
Nachiket Kukade | d0dd62e | 2018-05-21 18:39:22 +0530 | [diff] [blame] | 109 | #Flag to enable Android Packet Filtering |
| 110 | CONFIG_QCACLD_FEATURE_APF := y |
| 111 | |
Jeff Johnson | fcc29d4 | 2018-07-17 20:36:45 -0700 | [diff] [blame] | 112 | #Flag to enable SARv1 -> SARv2 conversion |
| 113 | CONFIG_WLAN_FEATURE_SARV1_TO_SARV2 := n |
| 114 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 115 | ifeq ($(CONFIG_ARCH_MSM8998), y) |
| 116 | CONFIG_QCACLD_FEATURE_METERING := y |
| 117 | endif |
| 118 | |
| 119 | ifeq ($(CONFIG_ARCH_SDM660), y) |
| 120 | CONFIG_QCACLD_FEATURE_METERING := y |
| 121 | endif |
| 122 | |
| 123 | ifeq ($(CONFIG_ARCH_SDM630), y) |
| 124 | CONFIG_QCACLD_FEATURE_METERING := y |
| 125 | endif |
| 126 | |
| 127 | ifeq ($(CONFIG_ARCH_SDM845), y) |
| 128 | CONFIG_QCACLD_FEATURE_METERING := y |
| 129 | endif |
| 130 | |
| 131 | ifeq ($(CONFIG_ARCH_SM8150), y) |
| 132 | CONFIG_QCACLD_FEATURE_METERING := y |
| 133 | endif |
| 134 | |
| 135 | ifeq ($(CONFIG_ARCH_SDM670), y) |
| 136 | CONFIG_QCACLD_FEATURE_METERING := y |
| 137 | endif |
| 138 | |
Alok Kumar | a8331e0 | 2018-10-03 15:52:13 +0530 | [diff] [blame] | 139 | ifeq ($(CONFIG_ARCH_SM6150), y) |
| 140 | CONFIG_QCACLD_FEATURE_METERING := y |
| 141 | endif |
| 142 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 143 | #Flag to enable Fast Transition (11r) feature |
| 144 | CONFIG_QCOM_VOWIFI_11R := y |
| 145 | |
Rajeev Kumar Sirasanagandla | 4725ae4 | 2018-05-24 22:33:34 +0530 | [diff] [blame] | 146 | #Flag to enable disable ACTION OUI feature |
| 147 | CONFIG_WLAN_FEATURE_ACTION_OUI := y |
| 148 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 149 | #Flag to enable FILS Feature (11ai) |
| 150 | CONFIG_WLAN_FEATURE_FILS := y |
| 151 | ifneq ($(CONFIG_QCA_CLD_WLAN),) |
| 152 | ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2) $(CONFIG_ICNSS))) |
| 153 | #Flag to enable Protected Management Frames (11w) feature |
| 154 | CONFIG_WLAN_FEATURE_11W := y |
| 155 | #Flag to enable LTE CoEx feature |
| 156 | CONFIG_QCOM_LTE_COEX := y |
| 157 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
| 158 | #Flag to enable LPSS feature |
| 159 | CONFIG_WLAN_FEATURE_LPSS := y |
| 160 | endif |
| 161 | endif |
| 162 | endif |
| 163 | |
| 164 | #Flag to enable Protected Management Frames (11w) feature |
| 165 | ifeq ($(CONFIG_ROME_IF),usb) |
| 166 | CONFIG_WLAN_FEATURE_11W := y |
| 167 | endif |
| 168 | ifeq ($(CONFIG_ROME_IF),sdio) |
| 169 | CONFIG_WLAN_FEATURE_11W := y |
| 170 | endif |
| 171 | |
| 172 | #Flag to enable the tx desc sanity check |
| 173 | ifeq ($(CONFIG_ROME_IF),usb) |
| 174 | CONFIG_QCA_TXDESC_SANITY_CHECKS := y |
| 175 | endif |
| 176 | |
| 177 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
| 178 | #Flag to enable NAN |
| 179 | CONFIG_QCACLD_FEATURE_NAN := y |
| 180 | endif |
| 181 | |
| 182 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
| 183 | #Flag to enable NAN Data path |
| 184 | CONFIG_WLAN_FEATURE_NAN_DATAPATH := y |
| 185 | CONFIG_NAN_CONVERGENCE := y |
| 186 | endif |
| 187 | |
| 188 | #Flag to enable Linux QCMBR feature as default feature |
| 189 | ifeq ($(CONFIG_ROME_IF),usb) |
| 190 | CONFIG_LINUX_QCMBR :=y |
| 191 | endif |
| 192 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 193 | |
| 194 | CONFIG_FEATURE_EPPING := y |
| 195 | |
| 196 | #Flag to enable offload packets feature |
| 197 | CONFIG_WLAN_OFFLOAD_PACKETS := y |
| 198 | |
| 199 | #enable TSF get feature |
| 200 | CONFIG_WLAN_SYNC_TSF := y |
| 201 | #Enable DSRC feature |
| 202 | ifeq ($(CONFIG_QCA_WIFI_SDIO), y) |
| 203 | CONFIG_WLAN_FEATURE_DSRC := y |
| 204 | endif |
| 205 | |
| 206 | ifneq ($(CONFIG_ROME_IF),usb) |
| 207 | ifneq ($(CONFIG_ROME_IF),sdio) |
| 208 | #Flag to enable DISA |
| 209 | CONFIG_WLAN_FEATURE_DISA := y |
| 210 | |
| 211 | #Flag to enable FIPS |
| 212 | CONFIG_WLAN_FEATURE_FIPS := y |
| 213 | |
| 214 | #Flag to enable SAE |
| 215 | CONFIG_WLAN_FEATURE_SAE := y |
| 216 | |
| 217 | #Flag to enable Fast Path feature |
Jeff Johnson | a0b912c | 2018-10-30 13:37:49 -0700 | [diff] [blame] | 218 | ifneq ($(CONFIG_LITHIUM), y) |
Nirav Shah | 3422e03 | 2018-10-12 14:48:31 +0530 | [diff] [blame] | 219 | CONFIG_WLAN_FASTPATH := y |
| 220 | endif |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 221 | |
| 222 | # Flag to enable NAPI |
| 223 | CONFIG_WLAN_NAPI := y |
| 224 | CONFIG_WLAN_NAPI_DEBUG := n |
| 225 | |
| 226 | # Flag to enable FW based TX Flow control |
| 227 | ifeq ($(CONFIG_LITHIUM), y) |
| 228 | CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y |
| 229 | else |
| 230 | CONFIG_WLAN_TX_FLOW_CONTROL_V2 := n |
| 231 | endif |
| 232 | |
| 233 | endif |
| 234 | endif |
| 235 | |
| 236 | CONFIG_POWER_MANAGEMENT_OFFLOAD := y |
| 237 | |
| 238 | ifeq ($(CONFIG_ROME_IF), snoc) |
| 239 | CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y |
| 240 | endif |
| 241 | |
| 242 | # Flag to enable LFR Subnet Detection |
| 243 | CONFIG_LFR_SUBNET_DETECTION := y |
| 244 | |
| 245 | # Flag to enable MCC to SCC switch feature |
| 246 | CONFIG_MCC_TO_SCC_SWITCH := y |
| 247 | |
| 248 | ifeq ($(CONFIG_SLUB_DEBUG), y) |
| 249 | # Enable Obj Mgr Degug services if slub build |
| 250 | CONFIG_WLAN_OBJMGR_DEBUG:= y |
Krunal Soni | 3de6853 | 2018-09-05 12:16:58 -0700 | [diff] [blame] | 251 | CONFIG_MPC_UT_FRAMEWORK := y |
Rajeev Kumar | 4a8d264 | 2018-09-07 17:29:28 -0700 | [diff] [blame] | 252 | CONFIG_LOCK_STATS_ON:= y |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 253 | endif |
| 254 | |
Nirav Shah | 52d85aa | 2018-04-26 14:03:00 +0530 | [diff] [blame] | 255 | ifeq (y,$(findstring y,$(CONFIG_QCA_WIFI_SDIO) $(CONFIG_HIF_USB))) |
| 256 | CONFIG_HL_DP_SUPPORT := y |
| 257 | else |
| 258 | CONFIG_LL_DP_SUPPORT := y |
| 259 | endif |
| 260 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 261 | ifeq ($(CONFIG_HIF_PCI), y) |
| 262 | ifneq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y) |
| 263 | ifneq ($(CONFIG_LITHIUM), y) |
| 264 | CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY := y |
| 265 | endif |
| 266 | endif |
| 267 | endif |
| 268 | |
| 269 | #Whether have QMI support |
| 270 | CONFIG_QMI_SUPPORT := y |
| 271 | |
| 272 | ifeq ($(CONFIG_ICNSS), y) |
| 273 | CONFIG_WIFI_3_0_ADRASTEA := y |
| 274 | CONFIG_ADRASTEA_RRI_ON_DDR := y |
| 275 | # Enable athdiag procfs debug support for adrastea |
| 276 | CONFIG_ATH_PROCFS_DIAG_SUPPORT := y |
| 277 | # Enable 11AC TX compact feature for adrastea |
Nirav Shah | 91daea9 | 2018-06-06 17:01:52 +0530 | [diff] [blame] | 278 | CONFIG_ATH_11AC_TXCOMPACT := y |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 279 | ifeq ($(CONFIG_QMI_SUPPORT), y) |
| 280 | CONFIG_ADRASTEA_SHADOW_REGISTERS := y |
| 281 | endif |
| 282 | endif |
| 283 | |
| 284 | # NOTE: CONFIG_64BIT_PADDR requires CONFIG_HELIUMPLUS |
| 285 | ifeq ($(CONFIG_HELIUMPLUS), y) |
| 286 | CONFIG_AR900B := y |
| 287 | |
| 288 | ifeq ($(CONFIG_64BIT_PADDR), y) |
| 289 | CONFIG_HTT_PADDR64 := y |
| 290 | endif |
| 291 | |
| 292 | ifeq ($(CONFIG_SLUB_DEBUG_ON), y) |
| 293 | CONFIG_OL_RX_INDICATION_RECORD := y |
| 294 | CONFIG_TSOSEG_DEBUG := y |
| 295 | endif |
| 296 | |
| 297 | endif #CONFIG_HELIUMPLUS |
| 298 | |
| 299 | ifeq ($(CONFIG_LITHIUM), y) |
Krunal Soni | 457ec24 | 2018-11-01 16:09:39 -0700 | [diff] [blame] | 300 | # |
| 301 | # Enable Shadow V2 for all lithium platform |
| 302 | # |
| 303 | CONFIG_SHADOW_V2 := y |
| 304 | |
Venkata Sharath Chandra Manchala | 27a4296 | 2018-06-08 17:51:44 -0700 | [diff] [blame] | 305 | ifeq ($(CONFIG_CNSS_QCA6290), y) |
| 306 | CONFIG_QCA6290_HEADERS_DEF := y |
| 307 | CONFIG_QCA_WIFI_QCA6290 := y |
| 308 | endif |
| 309 | ifeq ($(CONFIG_CNSS_QCA6390), y) |
| 310 | CONFIG_QCA6390_HEADERS_DEF := y |
| 311 | CONFIG_QCA_WIFI_QCA6390 := y |
| 312 | endif |
| 313 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 314 | CONFIG_QCA_WIFI_QCA8074 := y |
| 315 | CONFIG_QCA_WIFI_QCA8074_VP := y |
| 316 | CONFIG_DP_INTR_POLL_BASED := y |
| 317 | CONFIG_TX_PER_PDEV_DESC_POOL := y |
| 318 | CONFIG_DP_TRACE := y |
| 319 | CONFIG_FEATURE_TSO := y |
| 320 | CONFIG_TSO_DEBUG_LOG_ENABLE := y |
| 321 | CONFIG_DP_LFR := y |
| 322 | CONFIG_HTT_PADDR64 := y |
| 323 | CONFIG_RX_OL := y |
| 324 | CONFIG_TX_TID_OVERRIDE := y |
| 325 | endif |
| 326 | |
| 327 | # As per target team, build is done as follows: |
| 328 | # Defconfig : build with default flags |
| 329 | # Slub : defconfig + CONFIG_SLUB_DEBUG=y + |
| 330 | # CONFIG_SLUB_DEBUG_ON=y + CONFIG_PAGE_POISONING=y |
| 331 | # Perf : Using appropriate msmXXXX-perf_defconfig |
| 332 | # |
| 333 | # Shipment builds (user variants) should not have any debug feature |
| 334 | # enabled. This is identified using 'TARGET_BUILD_VARIANT'. Slub builds |
| 335 | # are identified using the CONFIG_SLUB_DEBUG_ON configuration. Since |
| 336 | # there is no other way to identify defconfig builds, QCOMs internal |
| 337 | # representation of perf builds (identified using the string 'perf'), |
| 338 | # is used to identify if the build is a slub or defconfig one. This |
| 339 | # way no critical debug feature will be enabled for perf and shipment |
| 340 | # builds. Other OEMs are also protected using the TARGET_BUILD_VARIANT |
| 341 | # config. |
| 342 | ifneq ($(TARGET_BUILD_VARIANT),user) |
| 343 | ifeq ($(CONFIG_LITHIUM), y) |
| 344 | CONFIG_FEATURE_PKTLOG := n |
| 345 | else |
| 346 | CONFIG_FEATURE_PKTLOG := y |
| 347 | endif |
| 348 | CONFIG_WLAN_DEBUG_CRASH_INJECT := y |
| 349 | endif |
| 350 | |
| 351 | #Enable WLAN/Power debugfs feature only if debug_fs is enabled |
| 352 | ifeq ($(CONFIG_DEBUG_FS), y) |
| 353 | # Flag to enable debugfs. Depends on CONFIG_DEBUG_FS in kernel |
| 354 | # configuration. |
| 355 | CONFIG_WLAN_DEBUGFS := y |
| 356 | |
| 357 | CONFIG_WLAN_POWER_DEBUGFS := y |
| 358 | endif |
| 359 | |
| 360 | # Feature flags which are not (currently) configurable via Kconfig |
| 361 | |
| 362 | #Whether to build debug version |
| 363 | BUILD_DEBUG_VERSION := y |
| 364 | |
| 365 | #Enable this flag to build driver in diag version |
| 366 | BUILD_DIAG_VERSION := y |
| 367 | |
| 368 | ifeq ($(CONFIG_SLUB_DEBUG), y) |
| 369 | PANIC_ON_BUG := y |
| 370 | WLAN_WARN_ON_ASSERT := y |
| 371 | else ifeq ($(CONFIG_PERF_DEBUG), y) |
| 372 | PANIC_ON_BUG := y |
| 373 | WLAN_WARN_ON_ASSERT := y |
| 374 | else |
| 375 | PANIC_ON_BUG := n |
| 376 | WLAN_WARN_ON_ASSERT := n |
| 377 | endif |
| 378 | |
| 379 | # Compile all log levels by default |
| 380 | CONFIG_WLAN_LOG_FATAL := y |
| 381 | CONFIG_WLAN_LOG_ERROR := y |
| 382 | CONFIG_WLAN_LOG_WARN := y |
| 383 | CONFIG_WLAN_LOG_INFO := y |
| 384 | CONFIG_WLAN_LOG_DEBUG := y |
Nirav Shah | d6fa0f8 | 2018-07-06 15:52:25 +0530 | [diff] [blame] | 385 | CONFIG_WLAN_LOG_ENTER := y |
| 386 | CONFIG_WLAN_LOG_EXIT := y |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 387 | |
| 388 | #Enable OL debug and wmi unified functions |
| 389 | CONFIG_ATH_PERF_PWR_OFFLOAD := y |
| 390 | |
| 391 | #Disable packet log |
| 392 | CONFIG_REMOVE_PKT_LOG := n |
| 393 | |
| 394 | #Enable 11AC TX |
| 395 | ifeq ($(CONFIG_ROME_IF),pci) |
| 396 | CONFIG_ATH_11AC_TXCOMPACT := y |
| 397 | endif |
| 398 | |
| 399 | ifeq ($(CONFIG_ROME_IF),usb) |
| 400 | CONFIG_ATH_11AC_TXCOMPACT := n |
| 401 | endif |
| 402 | |
| 403 | #Enable PCI specific APIS (dma, etc) |
| 404 | ifeq ($(CONFIG_ROME_IF),pci) |
| 405 | CONFIG_HIF_PCI := y |
| 406 | endif |
| 407 | |
| 408 | #Enable USB specific APIS |
| 409 | ifeq ($(CONFIG_ROME_IF),usb) |
| 410 | CONFIG_HIF_USB := y |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 411 | endif |
| 412 | |
| 413 | #Enable SDIO specific APIS |
| 414 | ifeq ($(CONFIG_ROME_IF),sdio) |
| 415 | CONFIG_HIF_SDIO := y |
Ajit Pal Singh | cf33f96 | 2018-07-19 17:50:47 +0530 | [diff] [blame] | 416 | CONFIG_TX_DESC_HI_PRIO_RESERVE := y |
| 417 | CONFIG_PER_VDEV_TX_DESC_POOL := y |
| 418 | CONFIG_FEATURE_HL_GROUP_CREDIT_FLOW_CONTROL := y |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 419 | endif |
| 420 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 421 | ifeq ($(CONFIG_ROME_IF),snoc) |
| 422 | CONFIG_HIF_SNOC:= y |
| 423 | endif |
| 424 | |
| 425 | # enable/disable feature flags based upon mobile router profile |
| 426 | ifeq ($(CONFIG_MOBILE_ROUTER), y) |
| 427 | CONFIG_FEATURE_WLAN_MCC_TO_SCC_SWITCH := y |
| 428 | CONFIG_FEATURE_WLAN_AUTO_SHUTDOWN := y |
| 429 | CONFIG_FEATURE_WLAN_AP_AP_ACS_OPTIMIZE := y |
| 430 | CONFIG_FEATURE_WLAN_STA_4ADDR_SCHEME := y |
| 431 | CONFIG_MDM_PLATFORM := y |
| 432 | CONFIG_FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE := y |
| 433 | CONFIG_FEATURE_AP_MCC_CH_AVOIDANCE := y |
| 434 | else |
| 435 | CONFIG_QCOM_ESE := y |
| 436 | CONFIG_QCA_IBSS_SUPPORT := y |
Rachit Kankane | ee1735c | 2018-08-02 13:19:34 +0530 | [diff] [blame] | 437 | CONFIG_FEATURE_WLAN_RMC := y |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 438 | CONFIG_WLAN_OPEN_P2P_INTERFACE := y |
| 439 | CONFIG_WLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY := y |
| 440 | endif |
| 441 | |
gaolez | 9cb1c18 | 2018-08-08 16:50:56 +0800 | [diff] [blame] | 442 | #enable 4addr support for QCS405 |
| 443 | ifeq ($(CONFIG_ARCH_QCS405), y) |
| 444 | CONFIG_FEATURE_WLAN_STA_4ADDR_SCHEME := y |
| 445 | endif |
| 446 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 447 | #Enable power management suspend/resume functionality to PCI |
| 448 | CONFIG_ATH_BUS_PM := y |
| 449 | |
| 450 | #Enable FLOWMAC module support |
| 451 | CONFIG_ATH_SUPPORT_FLOWMAC_MODULE := n |
| 452 | |
| 453 | #Enable spectral support |
| 454 | CONFIG_ATH_SUPPORT_SPECTRAL := n |
| 455 | |
| 456 | #Enable WDI Event support |
Nirav Shah | bb8e47c | 2018-05-17 16:56:41 +0530 | [diff] [blame] | 457 | ifeq ($(CONFIG_REMOVE_PKT_LOG), y) |
| 458 | CONFIG_WDI_EVENT_ENABLE := n |
| 459 | else |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 460 | CONFIG_WDI_EVENT_ENABLE := y |
Nirav Shah | bb8e47c | 2018-05-17 16:56:41 +0530 | [diff] [blame] | 461 | endif |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 462 | |
| 463 | #Endianness selection |
| 464 | CONFIG_LITTLE_ENDIAN := y |
| 465 | |
| 466 | #Enable TX reclaim support |
| 467 | CONFIG_TX_CREDIT_RECLAIM_SUPPORT := n |
| 468 | |
| 469 | #Enable FTM support |
| 470 | CONFIG_QCA_WIFI_FTM := y |
| 471 | |
Ryan Hsu | 6e9db0b | 2018-06-01 10:45:51 -0700 | [diff] [blame] | 472 | ifeq ($(CONFIG_QCA_WIFI_FTM), y) |
| 473 | |
| 474 | ifeq ($(CONFIG_NL80211_TESTMODE), y) |
| 475 | QCA_WIFI_FTM_NL80211 :=y |
| 476 | else |
| 477 | QCA_WIFI_FTM_NL80211 :=n |
| 478 | endif |
| 479 | CONFIG_LINUX_QCMBR :=y |
| 480 | |
| 481 | else |
| 482 | QCA_WIFI_FTM_NL80211 :=n |
| 483 | CONFIG_LINUX_QCMBR :=n |
| 484 | endif |
| 485 | |
| 486 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 487 | #Enable Checksum Offload |
| 488 | CONFIG_CHECKSUM_OFFLOAD := y |
| 489 | |
| 490 | #Enable GTK offload |
| 491 | CONFIG_GTK_OFFLOAD := y |
| 492 | |
| 493 | #Enable EXT WOW |
| 494 | ifeq ($(CONFIG_HIF_PCI), y) |
| 495 | CONFIG_EXT_WOW := y |
| 496 | endif |
| 497 | |
| 498 | #Set this to 1 to catch erroneous Target accesses during debug. |
| 499 | CONFIG_ATH_PCIE_ACCESS_DEBUG := n |
| 500 | |
| 501 | #Enable IPA offload |
| 502 | ifeq ($(CONFIG_IPA), y) |
| 503 | CONFIG_IPA_OFFLOAD := y |
| 504 | endif |
| 505 | ifeq ($(CONFIG_IPA3), y) |
| 506 | CONFIG_IPA_OFFLOAD := y |
| 507 | endif |
| 508 | |
| 509 | #Flag to enable SMMU S1 support |
| 510 | ifeq ($(CONFIG_ARCH_SDM845), y) |
| 511 | ifeq ($(CONFIG_IPA_OFFLOAD), y) |
| 512 | CONFIG_ENABLE_SMMU_S1_TRANSLATION := y |
| 513 | endif |
| 514 | endif |
| 515 | |
Tushnim Bhattacharyya | 673735c | 2018-06-11 14:50:00 -0700 | [diff] [blame] | 516 | ifeq ($(CONFIG_ARCH_SM8150), y) |
| 517 | ifeq ($(CONFIG_IPA_OFFLOAD), y) |
| 518 | CONFIG_ENABLE_SMMU_S1_TRANSLATION := y |
| 519 | endif |
| 520 | endif |
| 521 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 522 | ifeq ($(CONFIG_ARCH_SDX20), y) |
| 523 | ifeq ($(CONFIG_QCA_WIFI_SDIO), y) |
| 524 | ifeq ($(CONFIG_WCNSS_SKB_PRE_ALLOC), y) |
| 525 | CONFIG_FEATURE_SKB_PRE_ALLOC := y |
| 526 | endif |
| 527 | endif |
| 528 | endif |
| 529 | |
| 530 | #Enable Signed firmware support for split binary format |
| 531 | CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT := n |
| 532 | |
| 533 | #Enable single firmware binary format |
| 534 | CONFIG_QCA_SINGLE_BINARY_SUPPORT := n |
| 535 | |
| 536 | #Enable collecting target RAM dump after kernel panic |
| 537 | CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC := y |
| 538 | |
| 539 | #Flag to enable/disable secure firmware feature |
| 540 | CONFIG_FEATURE_SECURE_FIRMWARE := n |
| 541 | |
| 542 | #Flag to enable Stats Ext implementation |
| 543 | CONFIG_FEATURE_STATS_EXT := y |
| 544 | |
Rachit Kankane | 0868f8f | 2018-06-22 18:52:03 +0530 | [diff] [blame] | 545 | #Flag to allocate memory dynamically for different buffers |
| 546 | CONFIG_WLAN_LOGGING_BUFFERS_DYNAMICALLY := n |
Rachit Kankane | b57ea61 | 2018-09-10 12:36:20 +0530 | [diff] [blame] | 547 | CONFIG_WLAN_DFS_STATIC_MEM_ALLOC := y |
Rachit Kankane | 0868f8f | 2018-06-22 18:52:03 +0530 | [diff] [blame] | 548 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 549 | #Flag to enable HTC credit history feature |
| 550 | CONFIG_FEATURE_HTC_CREDIT_HISTORY := y |
| 551 | |
| 552 | #Flag to enable MTRACE feature |
| 553 | CONFIG_TRACE_RECORD_FEATURE := y |
| 554 | |
| 555 | #Flag to enable p2p debug feature |
| 556 | CONFIG_WLAN_FEATURE_P2P_DEBUG := y |
| 557 | |
Qiwei Cai | d96c021 | 2018-06-15 11:12:49 +0800 | [diff] [blame] | 558 | #Flag to enable roam debug log |
| 559 | CONFIG_FEATURE_ROAM_DEBUG := y |
| 560 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 561 | #Flag to enable DFS Master feature |
| 562 | CONFIG_WLAN_DFS_MASTER_ENABLE := y |
| 563 | |
Rachit Kankane | 0dc3e85 | 2018-05-07 17:33:42 +0530 | [diff] [blame] | 564 | #Flag to enable WEXT support for STA/AP/P2P interfaces |
| 565 | CONFIG_WLAN_WEXT_SUPPORT_ENABLE := y |
| 566 | |
Ashish Kumar Dhanotiya | 2af7f56 | 2018-07-24 15:52:46 +0530 | [diff] [blame] | 567 | #Flag to enable/disable MTRACE feature |
| 568 | CONFIG_ENABLE_MTRACE_LOG := y |
| 569 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 570 | #Flag to enable nud tracking feature |
| 571 | CONFIG_WLAN_NUD_TRACKING := y |
| 572 | |
Rakshith Suresh Patkar | d9f4e61 | 2018-09-12 12:10:38 +0530 | [diff] [blame] | 573 | #Flag to enable wbuff feature |
| 574 | CONFIG_WLAN_WBUFF := y |
| 575 | |
Ashish Kumar Dhanotiya | 3f78e68 | 2018-03-14 11:19:27 +0530 | [diff] [blame] | 576 | #Flag to enable set and get disable channel list feature |
| 577 | CONFIG_DISABLE_CHANNEL_LIST :=y |
| 578 | |
Rachit Kankane | f6834c4 | 2018-08-02 18:47:50 +0530 | [diff] [blame] | 579 | #Flag to enable Dynamic Voltage WDCVS (Config Voltage Mode) |
| 580 | CONFIG_WLAN_DYNAMIC_CVM := y |
| 581 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 582 | CONFIG_WIFI_POS_CONVERGED := y |
| 583 | ifneq ($(CONFIG_WIFI_POS_CONVERGED), y) |
| 584 | CONFIG_WIFI_POS_LEGACY := y |
| 585 | endif |
| 586 | |
Naveen Rawat | c9fab3e | 2018-06-04 10:46:11 -0700 | [diff] [blame] | 587 | CONFIG_CP_STATS := y |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 588 | |
| 589 | CONFIG_FEATURE_WLAN_WAPI := y |
| 590 | |
| 591 | CONFIG_AGEIE_ON_SCAN_RESULTS := y |
| 592 | |
| 593 | #Flag to enable FW log parsing support feature |
| 594 | CONFIG_FEATURE_FW_LOG_PARSING := y |
| 595 | |
| 596 | CONFIG_PTT_SOCK_SVC_ENABLE := y |
| 597 | CONFIG_SOFTAP_CHANNEL_RANGE := y |
| 598 | CONFIG_FEATURE_WLAN_SCAN_PNO := y |
| 599 | CONFIG_WLAN_FEATURE_PACKET_FILTERING := y |
| 600 | CONFIG_WLAN_NS_OFFLOAD := y |
| 601 | CONFIG_FEATURE_WLAN_RA_FILTERING:= y |
| 602 | CONFIG_FEATURE_WLAN_LPHB := y |
| 603 | CONFIG_QCA_SUPPORT_TX_THROTTLE := y |
| 604 | CONFIG_WMI_INTERFACE_EVENT_LOGGING := y |
| 605 | CONFIG_WLAN_FEATURE_LINK_LAYER_STATS := y |
| 606 | CONFIG_FEATURE_WLAN_EXTSCAN := y |
Harprit Chhabada | 253e36a | 2018-12-11 15:29:55 -0800 | [diff] [blame] | 607 | CONFIG_WMI_BCN_OFFLOAD := y |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 608 | CONFIG_160MHZ_SUPPORT := y |
| 609 | CONFIG_MCL := y |
| 610 | CONFIG_MCL_REGDB := y |
| 611 | CONFIG_LEGACY_CHAN_ENUM := y |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 612 | CONFIG_WLAN_PMO_ENABLE := y |
| 613 | CONFIG_CONVERGED_P2P_ENABLE := y |
| 614 | CONFIG_WLAN_POLICY_MGR_ENABLE := y |
| 615 | CONFIG_SUPPORT_11AX := y |
| 616 | CONFIG_HDD_INIT_WITH_RTNL_LOCK := y |
| 617 | CONFIG_CONVERGED_TDLS_ENABLE := y |
| 618 | CONFIG_WLAN_CONV_SPECTRAL_ENABLE := y |
| 619 | CONFIG_WLAN_SPECTRAL_ENABLE := y |
| 620 | CONFIG_WMI_CMD_STRINGS := y |
Nirav Shah | 73713f7 | 2018-05-17 14:50:41 +0530 | [diff] [blame] | 621 | CONFIG_FEATURE_MONITOR_MODE_SUPPORT := y |
Qiwei Cai | 50a2108 | 2018-08-07 14:30:09 +0800 | [diff] [blame] | 622 | CONFIG_WLAN_ALLOCATE_GLOBAL_BUFFERS_DYNAMICALLY := n |
Varun Reddy Yeturu | d33033f | 2018-06-11 10:58:30 -0700 | [diff] [blame] | 623 | CONFIG_WLAN_FEATURE_TWT := y |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 624 | CONFIG_WLAN_FEATURE_BMI := y |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 625 | |
Qiwei Cai | e689a26 | 2018-07-26 15:50:22 +0800 | [diff] [blame] | 626 | #Flags to enable/disable vendor commands |
| 627 | CONFIG_FEATURE_RSSI_MONITOR := y |
| 628 | CONFIG_FEATURE_BSS_TRANSITION := y |
| 629 | CONFIG_FEATURE_STATION_INFO := y |
| 630 | CONFIG_FEATURE_TX_POWER := y |
| 631 | CONFIG_FEATURE_OTA_TEST := y |
| 632 | CONFIG_FEATURE_ACTIVE_TOS := y |
| 633 | CONFIG_FEATURE_SAR_LIMITS := y |
| 634 | CONFIG_FEATURE_CONCURRENCY_MATRIX := y |
| 635 | CONFIG_FEATURE_SAP_COND_CHAN_SWITCH := y |
| 636 | CONFIG_FEATURE_P2P_LISTEN_OFFLOAD := y |
| 637 | |
Qiwei Cai | dcb73b0 | 2018-09-17 19:58:29 +0800 | [diff] [blame] | 638 | #Flags to enable/disable WMI APIs |
| 639 | CONFIG_WMI_ROAM_SUPPORT := y |
| 640 | CONFIG_WMI_CONCURRENCY_SUPPORT := y |
| 641 | CONFIG_WMI_STA_SUPPORT := y |
| 642 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 643 | ifeq ($(CONFIG_HELIUMPLUS), y) |
| 644 | ifneq ($(CONFIG_FORCE_ALLOC_FROM_DMA_ZONE), y) |
| 645 | CONFIG_ENABLE_DEBUG_ADDRESS_MARKING := y |
| 646 | endif |
| 647 | CONFIG_RX_OL := y |
| 648 | endif |
| 649 | |
| 650 | ifeq ($(CONFIG_SLUB_DEBUG_ON), y) |
Dustin Brown | 6099ddc | 2018-07-06 14:32:53 -0700 | [diff] [blame] | 651 | CONFIG_DSC_DEBUG := y |
Dustin Brown | ebb16d1 | 2018-11-29 17:52:07 -0800 | [diff] [blame] | 652 | CONFIG_DESC_TIMESTAMP_DEBUG_INFO := y |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 653 | CONFIG_FEATURE_UNIT_TEST_SUSPEND := y |
| 654 | CONFIG_LEAK_DETECTION := y |
Dustin Brown | 93abc2c | 2018-10-22 13:56:01 -0700 | [diff] [blame] | 655 | CONFIG_MAX_LOGS_PER_SEC := 500 |
Dustin Brown | 099048b | 2018-08-30 15:04:29 -0700 | [diff] [blame] | 656 | CONFIG_SCHED_HISTORY_SIZE := 256 |
Dustin Brown | d315c45 | 2018-11-27 11:28:48 -0800 | [diff] [blame] | 657 | CONFIG_TALLOC_DEBUG := y |
Dustin Brown | 0ea8d3b | 2018-07-06 13:58:49 -0700 | [diff] [blame] | 658 | CONFIG_UNIT_TEST := y |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 659 | endif |
| 660 | |
Dustin Brown | 6099ddc | 2018-07-06 14:32:53 -0700 | [diff] [blame] | 661 | ifeq ($(CONFIG_UNIT_TEST), y) |
| 662 | CONFIG_DSC_TEST := y |
Dustin Brown | ebb16d1 | 2018-11-29 17:52:07 -0800 | [diff] [blame] | 663 | CONFIG_QDF_TEST := y |
Dustin Brown | 6099ddc | 2018-07-06 14:32:53 -0700 | [diff] [blame] | 664 | endif |
| 665 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 666 | # enable unit-test suspend for napier builds |
| 667 | ifeq ($(CONFIG_LITHIUM), y) |
| 668 | CONFIG_FEATURE_UNIT_TEST_SUSPEND := y |
| 669 | endif |
| 670 | |
| 671 | #Flag to enable hdd memory dump feature |
| 672 | CONFIG_FEATURE_MEMDUMP_ENABLE := y |
| 673 | |
| 674 | #Flag to enable/disable WLAN D0-WOW |
| 675 | ifeq ($(CONFIG_PCI_MSM), y) |
| 676 | ifeq ($(CONFIG_HIF_PCI), y) |
| 677 | CONFIG_FEATURE_WLAN_D0WOW := y |
| 678 | endif |
| 679 | endif |
| 680 | |
| 681 | #Enable Channel Matrix restriction for all Rome only targets |
| 682 | ifneq ($(CONFIG_ICNSS), y) |
| 683 | CONFIG_CHNL_MATRIX_RESTRICTION := y |
| 684 | endif |
| 685 | |
| 686 | ifeq ($(CONFIG_ARCH_MDM9607), y) |
| 687 | CONFIG_TUFELLO_DUAL_FW_SUPPORT := y |
| 688 | endif |
| 689 | |
| 690 | ifeq ($(CONFIG_ARCH_MSM8996), y) |
| 691 | CONFIG_CHANNEL_HOPPING_ALL_BANDS := y |
| 692 | endif |
| 693 | |
| 694 | ifneq ($(CONFIG_HIF_USB), y) |
| 695 | CONFIG_WLAN_LOGGING_SOCK_SVC := y |
| 696 | endif |
Nirav Shah | a72db1d | 2018-06-06 17:11:07 +0530 | [diff] [blame] | 697 | |
| 698 | ifneq ($(TARGET_BUILD_VARIANT),user) |
| 699 | CONFIG_DESC_DUP_DETECT_DEBUG := y |
| 700 | CONFIG_DEBUG_RX_RING_BUFFER := y |
| 701 | endif |
| 702 | |
| 703 | CONFIG_DP_TRACE := y |
Nirav Shah | 1575dd7 | 2018-06-24 13:46:39 +0530 | [diff] [blame] | 704 | |
| 705 | ifeq ($(CONFIG_CNSS), y) |
| 706 | ifeq ($(CONFIG_CNSS_SDIO), y) |
| 707 | CONFIG_PLD_SDIO_CNSS_FLAG := y |
| 708 | endif |
| 709 | ifeq ($(CONFIG_HIF_PCI), y) |
| 710 | CONFIG_PLD_PCIE_CNSS_FLAG := y |
| 711 | endif |
| 712 | endif |
| 713 | |
| 714 | ifeq ($(CONFIG_CNSS2), y) |
| 715 | ifeq ($(CONFIG_HIF_PCI), y) |
| 716 | CONFIG_PLD_PCIE_CNSS_FLAG := y |
| 717 | CONFIG_PLD_PCIE_INIT_FLAG := y |
| 718 | endif |
| 719 | endif |
Abhishek Singh | ed19748 | 2018-09-05 13:22:02 +0530 | [diff] [blame] | 720 | |
Abhishek Singh | ed19748 | 2018-09-05 13:22:02 +0530 | [diff] [blame] | 721 | #Enable VDEV STATE MACHINE |
Sandeep Puligilla | 3a1e42a | 2018-11-02 12:33:15 -0700 | [diff] [blame] | 722 | CONFIG_CMN_VDEV_MLME_SM := n |
Abhishek Singh | 5d92154 | 2018-12-05 15:04:07 +0530 | [diff] [blame] | 723 | ifeq ($(CONFIG_CMN_VDEV_MLME_SM), y) |
| 724 | #Enable STATE MACHINE HISTORY |
| 725 | CONFIG_SM_ENG_HIST := n |
| 726 | endif |
Arunk Khandavalli | ca56d4b | 2018-11-29 15:46:00 +0530 | [diff] [blame] | 727 | #Enable Beacon Reception Stats |
| 728 | CONFIG_FEATURE_BECN_STATS := y |