default_defconfig 22 KB

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