qca6390_defconfig 18 KB

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