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