default_defconfig 20 KB

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