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