default_defconfig 22 KB

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