default_defconfig 19 KB

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