default_defconfig 19 KB

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