default_defconfig 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426
  1. CONFIG_HANDLE_RX_REROUTE_ERR := y
  2. ifeq ($(CONFIG_CNSS_QCA6290), y)
  3. ifeq ($(CONFIG_CNSS_EMULATION), y)
  4. CONFIG_QCA_WIFI_EMULATION := y
  5. endif
  6. CONFIG_LITHIUM := y
  7. CONFIG_QCA6290_11AX := y
  8. CONFIG_WLAN_FEATURE_11AX := y
  9. CONFIG_WLAN_FEATURE_DFS_OFFLOAD := y
  10. CONFIG_IPA3 := n
  11. CONFIG_WLAN_FEATURE_LRO_CTX_IN_CB := y
  12. endif
  13. ifeq ($(CONFIG_CNSS_QCA6390), y)
  14. ifeq ($(CONFIG_CNSS_EMULATION), y)
  15. CONFIG_QCA_WIFI_EMULATION := y
  16. endif
  17. CONFIG_LITHIUM := y
  18. CONFIG_WLAN_FEATURE_11AX := y
  19. CONFIG_WLAN_FEATURE_DFS_OFFLOAD := y
  20. ifeq ($(CONFIG_ARCH_SDM845), y)
  21. CONFIG_IPA3 := n
  22. endif
  23. CONFIG_SCALE_INCLUDES := y
  24. CONFIG_HASTINGS_BT_WAR := y
  25. CONFIG_WDI3_IPA_OVER_GSI :=y
  26. CONFIG_DIRECT_BUF_RX_ENABLE := y
  27. CONFIG_WMI_DBR_SUPPORT := y
  28. CONFIG_MORE_TX_DESC := y
  29. CONFIG_WLAN_FEATURE_LRO_CTX_IN_CB := y
  30. endif
  31. ifeq ($(CONFIG_CNSS_QCA6490), y)
  32. CONFIG_DIRECT_BUF_RX_ENABLE := y
  33. CONFIG_WMI_DBR_SUPPORT := y
  34. CONFIG_WLAN_CFR_ENABLE := y
  35. CONFIG_WLAN_ENH_CFR_ENABLE := y
  36. ifeq ($(CONFIG_CNSS_EMULATION), y)
  37. CONFIG_QCA_WIFI_EMULATION := y
  38. endif
  39. CONFIG_LITHIUM := y
  40. CONFIG_WLAN_FEATURE_11AX := y
  41. CONFIG_WLAN_FEATURE_DFS_OFFLOAD := y
  42. ifeq ($(CONFIG_ARCH_SDM845), y)
  43. CONFIG_IPA3 := n
  44. endif
  45. CONFIG_SCALE_INCLUDES := y
  46. CONFIG_HASTINGS_BT_WAR := y
  47. CONFIG_WDI3_IPA_OVER_GSI :=y
  48. CONFIG_PCIE_GEN_SWITCH := y
  49. CONFIG_WLAN_TWT_SAP_STA_COUNT := y
  50. CONFIG_WLAN_TWT_SAP_PDEV_COUNT := y
  51. CONFIG_DEVICE_FORCE_WAKE_ENABLE :=y
  52. CONFIG_HIF_REG_WINDOW_SUPPORT :=y
  53. CONFIG_DUMP_REO_QUEUE_INFO_IN_DDR :=y
  54. CONFIG_WLAN_FEATURE_LRO_CTX_IN_CB := y
  55. CONFIG_DCS := y
  56. endif
  57. ifeq ($(CONFIG_CNSS_QCA6750), y)
  58. ifeq ($(CONFIG_CNSS_EMULATION), y)
  59. CONFIG_QCA_WIFI_EMULATION := y
  60. endif
  61. CONFIG_LITHIUM := y
  62. CONFIG_WLAN_FEATURE_11AX := y
  63. CONFIG_WLAN_FEATURE_DFS_OFFLOAD := y
  64. CONFIG_DIRECT_BUF_RX_ENABLE := y
  65. CONFIG_WLAN_CFR_ENABLE := y
  66. CONFIG_WMI_DBR_SUPPORT := y
  67. CONFIG_WLAN_ENH_CFR_ENABLE := y
  68. ifeq ($(CONFIG_ARCH_SDM845), y)
  69. CONFIG_IPA3 := n
  70. endif
  71. CONFIG_SCALE_INCLUDES := y
  72. CONFIG_HASTINGS_BT_WAR := y
  73. CONFIG_WDI3_IPA_OVER_GSI :=y
  74. CONFIG_HOST_WAKEUP_OVER_QMI := y
  75. CONFIG_WLAN_FEATURE_WMI_DIAG_OVER_CE7 := y
  76. CONFIG_WLAN_DP_FEATURE_DEFERRED_REO_QDESC_DESTROY := y
  77. CONFIG_WLAN_FEATURE_LRO_CTX_IN_CB := y
  78. endif
  79. ifeq ($(CONFIG_CNSS_WCN7850), y)
  80. ifeq ($(CONFIG_CNSS_EMULATION), y)
  81. CONFIG_QCA_WIFI_EMULATION := y
  82. endif
  83. CONFIG_EMULATION_2_0 := y
  84. CONFIG_DIRECT_BUF_RX_ENABLE := y
  85. CONFIG_WMI_DBR_SUPPORT := y
  86. CONFIG_WLAN_CFR_ENABLE := n
  87. CONFIG_WLAN_ENH_CFR_ENABLE := n
  88. CONFIG_BERYLLIUM := y
  89. CONFIG_WLAN_FEATURE_11AX := y
  90. CONFIG_WLAN_FEATURE_DFS_OFFLOAD := y
  91. CONFIG_IPA3 := n
  92. CONFIG_DP_BE_WAR := y
  93. CONFIG_SCALE_INCLUDES := y
  94. CONFIG_HASTINGS_BT_WAR := y
  95. CONFIG_WDI3_IPA_OVER_GSI := y
  96. CONFIG_WLAN_FEATURE_LRO_CTX_IN_CB := y
  97. CONFIG_PCIE_GEN_SWITCH := y
  98. CONFIG_ATH_SUPPORT_SPECTRAL := n
  99. CONFIG_DP_FEATURE_HW_COOKIE_CONVERSION := y
  100. CONFIG_DP_HW_COOKIE_CONVERT_EXCEPTION := y
  101. CONFIG_WLAN_FEATURE_NEAR_FULL_IRQ := y
  102. endif
  103. ifeq (y,$(findstring y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  104. CONFIG_FIX_TXDMA_LIMITATION := y
  105. CONFIG_FEATURE_AST := y
  106. CONFIG_PEER_PROTECTED_ACCESS := y
  107. CONFIG_SERIALIZE_QUEUE_SETUP := y
  108. CONFIG_DP_RX_PKT_NO_PEER_DELIVER := y
  109. CONFIG_DP_RX_DROP_RAW_FRM := y
  110. CONFIG_FEATURE_ALIGN_STATS_FROM_DP := y
  111. CONFIG_DP_RX_SPECIAL_FRAME_NEED := y
  112. CONFIG_FEATURE_STATS_EXT_V2 := y
  113. CONFIG_WLAN_FEATURE_DP_RX_THREADS := y
  114. CONFIG_WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT := y
  115. CONFIG_FEATURE_NO_DBS_INTRABAND_MCC_SUPPORT := y
  116. CONFIG_HAL_DISABLE_NON_BA_2K_JUMP_ERROR := y
  117. CONFIG_ENABLE_HAL_SOC_STATS := y
  118. CONFIG_ENABLE_HAL_REG_WR_HISTORY := y
  119. CONFIG_MON_ENABLE_DROP_FOR_MAC := y
  120. CONFIG_PCI_LINK_STATUS_SANITY := y
  121. CONFIG_DDP_MON_RSSI_IN_DBM := y
  122. CONFIG_SYSTEM_PM_CHECK := y
  123. CONFIG_DISABLE_EAPOL_INTRABSS_FWD := y
  124. endif
  125. ifeq ($(CONFIG_CLD_HL_SDIO_CORE), y)
  126. CONFIG_QCA_WIFI_SDIO := y
  127. ifndef CONFIG_SDIO_TRANSFER
  128. CONFIG_SDIO_TRANSFER = mailbox
  129. endif
  130. endif
  131. ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
  132. CONFIG_ROME_IF = sdio
  133. endif
  134. ifeq ($(CONFIG_ICNSS), m)
  135. CONFIG_ICNSS_MODULE := y
  136. endif
  137. ifeq ($(CONFIG_CNSS), m)
  138. CONFIG_CNSS_MODULE := y
  139. endif
  140. ifeq ($(CONFIG_CNSS2), m)
  141. CONFIG_CNSS2_MODULE := y
  142. endif
  143. ifeq ($(CONFIG_ICNSS2), m)
  144. CONFIG_ICNSS2_MODULE := y
  145. endif
  146. ifeq ($(CONFIG_CNSS_GENL), m)
  147. CONFIG_CNSS_GENL_MODULE := y
  148. endif
  149. ifeq (y,$(findstring y,$(CONFIG_ICNSS) $(CONFIG_ICNSS_MODULE)))
  150. CONFIG_ROME_IF = snoc
  151. CONFIG_QCA_WIFI_SDIO := n
  152. CONFIG_PLD_SNOC_ICNSS_FLAG := y
  153. endif
  154. ifeq (y,$(findstring y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  155. ifeq ($(CONFIG_CNSS_QCA6750), y)
  156. CONFIG_ROME_IF = ipci
  157. CONFIG_PLD_IPCI_ICNSS_FLAG := y
  158. endif
  159. else ifeq (y,$(findstring y,$(CONFIG_ICNSS2) $(CONFIG_ICNSS2_MODULE)))
  160. CONFIG_ROME_IF = snoc
  161. CONFIG_QCA_WIFI_SDIO := n
  162. CONFIG_ICNSS2_HELIUM := y
  163. CONFIG_PLD_SNOC_ICNSS_FLAG := y
  164. endif
  165. ifdef CONFIG_IPCIE_FW_SIM
  166. CONFIG_ROME_IF = ipci
  167. CONFIG_PLD_IPCI_ICNSS_FLAG := n
  168. endif
  169. ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS_MODULE) $(CONFIG_CNSS2) $(CONFIG_CNSS2_MODULE)))
  170. ifndef CONFIG_ROME_IF
  171. #use pci as default interface
  172. ifndef CONFIG_IPCIE_FW_SIM
  173. CONFIG_ROME_IF = pci
  174. endif
  175. endif
  176. endif
  177. # Make WLAN as open-source driver by default
  178. WLAN_OPEN_SOURCE := y
  179. ifeq (y,$(findstring y,$(CONFIG_ICNSS) $(CONFIG_ICNSS_MODULE) $(CONFIG_ICNSS2_HELIUM)))
  180. CONFIG_HELIUMPLUS := y
  181. CONFIG_64BIT_PADDR := y
  182. CONFIG_FEATURE_TSO := y
  183. CONFIG_FEATURE_TSO_DEBUG := y
  184. ifeq ($(CONFIG_INET_LRO), y)
  185. CONFIG_WLAN_LRO := y
  186. else
  187. CONFIG_WLAN_LRO := n
  188. endif
  189. endif
  190. ifneq ($(DEVELOPER_DISABLE_BUILD_TIMESTAMP), y)
  191. ifneq ($(WLAN_DISABLE_BUILD_TAG), y)
  192. CONFIG_BUILD_TAG := y
  193. endif
  194. endif
  195. ifeq ($(CONFIG_ARCH_SDXLEMUR), y)
  196. CONFIG_MOBILE_ROUTER := y
  197. endif
  198. ifeq ($(CONFIG_ARCH_MDM9630), y)
  199. CONFIG_MOBILE_ROUTER := y
  200. endif
  201. ifeq ($(CONFIG_ARCH_MDM9640), y)
  202. CONFIG_MOBILE_ROUTER := y
  203. endif
  204. ifeq ($(CONFIG_ARCH_SDX20), y)
  205. CONFIG_MOBILE_ROUTER := y
  206. endif
  207. ifeq (y, $(filter y, $(CONFIG_ARCH_SDXPRAIRIE), $(CONFIG_ARCH_SA515), $(CONFIG_ARCH_SDXPOORWILLS)))
  208. CONFIG_MOBILE_ROUTER := y
  209. endif
  210. ifeq ($(CONFIG_ARCH_MSM8917), y)
  211. ifeq ($(CONFIG_ROME_IF), sdio)
  212. CONFIG_WLAN_SYNC_TSF_PLUS := y
  213. endif
  214. endif
  215. ifeq (y,$(findstring y,$(CONFIG_ARCH_QCS405) $(CONFIG_ARCH_QCS403)))
  216. CONFIG_ARCH_QCS40X := y
  217. endif
  218. ifeq ($(CONFIG_ARCH_QCS40X), y)
  219. CONFIG_WLAN_SYNC_TSF_PLUS := y
  220. CONFIG_WLAN_SYNC_TSF_PLUS_NOIRQ := y
  221. CONFIG_RX_PERFORMANCE := y
  222. CONFIG_TGT_NUM_MSDU_DESC := 900
  223. CONFIG_MULTI_IF_LOG := y
  224. CONFIG_DFS_PRI_MULTIPLIER := y
  225. CONFIG_DFS_OVERRIDE_RF_THRESHOLD := y
  226. CONFIG_WLAN_FEATURE_LL_MODE := y
  227. CONFIG_WLAN_CLD_PM_QOS := y
  228. endif
  229. CONFIG_WLAN_FEATURE_MBSSID := y
  230. CONFIG_WLAN_FEATURE_P2P_P2P_STA := y
  231. #Flag to enable Legacy Fast Roaming3(LFR3)
  232. ifeq (y,$(findstring y,$(CONFIG_HELIUMPLUS) $(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  233. CONFIG_QCACLD_WLAN_LFR3 := y
  234. else
  235. CONFIG_QCACLD_WLAN_LFR2 := y
  236. endif
  237. ifeq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  238. CONFIG_WIFI_MONITOR_SUPPORT := y
  239. CONFIG_QCA_MONITOR_PKT_SUPPORT := y
  240. CONFIG_MONITOR_MODULARIZED_ENABLE := n
  241. endif
  242. #SDX65 attach HSP but enable LFR2
  243. ifeq ($(CONFIG_ARCH_SDXLEMUR), y)
  244. CONFIG_QCACLD_WLAN_LFR3 := n
  245. CONFIG_QCACLD_WLAN_LFR2 := y
  246. endif
  247. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  248. #Flag to enable TDLS feature
  249. CONFIG_QCOM_TDLS := y
  250. CONFIG_WLAN_SYSFS := y
  251. ifeq ($(CONFIG_WLAN_SYSFS), y)
  252. CONFIG_WLAN_SYSFS_STA_INFO := y
  253. CONFIG_WLAN_SYSFS_CHANNEL := y
  254. CONFIG_WLAN_SYSFS_FW_MODE_CFG := y
  255. CONFIG_WLAN_SYSFS_MEM_STATS := y
  256. CONFIG_WLAN_REASSOC := y
  257. CONFIG_WLAN_SYSFS_CONNECT_INFO := y
  258. CONFIG_WLAN_SCAN_DISABLE := y
  259. CONFIG_WLAN_SYSFS_DCM := y
  260. CONFIG_WLAN_WOW_ITO := y
  261. CONFIG_WLAN_WOWL_ADD_PTRN := y
  262. CONFIG_WLAN_WOWL_DEL_PTRN := y
  263. CONFIG_WLAN_SYSFS_TX_STBC := y
  264. CONFIG_WLAN_SYSFS_WLAN_DBG := y
  265. CONFIG_WLAN_TXRX_FW_ST_RST := y
  266. CONFIG_WLAN_GTX_BW_MASK := y
  267. CONFIG_WLAN_SYSFS_SCAN_CFG := y
  268. CONFIG_WLAN_SYSFS_MONITOR_MODE_CHANNEL := y
  269. CONFIG_WLAN_SYSFS_RADAR := y
  270. CONFIG_WLAN_SYSFS_RTS_CTS := y
  271. CONFIG_WLAN_SYSFS_HE_BSS_COLOR := y
  272. CONFIG_WLAN_TXRX_FW_STATS := y
  273. CONFIG_WLAN_TXRX_STATS := y
  274. CONFIG_WLAN_SYSFS_DP_TRACE := y
  275. CONFIG_WLAN_SYSFS_STATS := y
  276. ifeq ($(CONFIG_QCOM_TDLS), y)
  277. CONFIG_WLAN_SYSFS_TDLS_PEERS := y
  278. endif
  279. CONFIG_WLAN_SYSFS_TEMPERATURE := y
  280. CONFIG_WLAN_THERMAL_CFG := y
  281. CONFIG_WLAN_DL_MODES := y
  282. CONFIG_WLAN_DUMP_IN_PROGRESS := y
  283. endif
  284. CONFIG_WLAN_POWER_DEBUG := y
  285. #Enable Beacon Reception Stats
  286. CONFIG_FEATURE_BECN_STATS := y
  287. endif
  288. CONFIG_WLAN_FEATURE_MEDIUM_ASSESS := y
  289. #Disable the Export Symbol config
  290. CONFIG_WLAN_DISABLE_EXPORT_SYMBOL := y
  291. CONFIG_QCACLD_FEATURE_GREEN_AP := y
  292. #Flag to enable Android Packet Filtering
  293. CONFIG_QCACLD_FEATURE_APF := y
  294. #Flag to enable SARv1 -> SARv2 conversion
  295. CONFIG_WLAN_FEATURE_SARV1_TO_SARV2 := n
  296. #Flag to enable get firmware state
  297. CONFIG_QCACLD_FEATURE_FW_STATE := y
  298. #Flag to enable set coex configuration
  299. CONFIG_QCACLD_FEATURE_COEX_CONFIG := n
  300. #Flag to enable get hw capability
  301. ifeq ($(CONFIG_ARCH_QCS40X), y)
  302. CONFIG_QCACLD_FEATURE_HW_CAPABILITY := y
  303. endif
  304. ifeq ($(CONFIG_ARCH_MSM8998), y)
  305. CONFIG_QCACLD_FEATURE_METERING := y
  306. endif
  307. ifeq ($(CONFIG_ARCH_SDM845), y)
  308. CONFIG_QCACLD_FEATURE_METERING := y
  309. endif
  310. ifeq ($(CONFIG_ARCH_SM8150), y)
  311. CONFIG_QCACLD_FEATURE_METERING := y
  312. endif
  313. ifeq ($(CONFIG_HELIUMPLUS), y)
  314. CONFIG_QCACLD_FEATURE_METERING := y
  315. endif
  316. ifeq ($(CONFIG_ARCH_KONA), y)
  317. CONFIG_QCACLD_FEATURE_METERING := y
  318. CONFIG_WDI3_STATS_UPDATE := y
  319. ifeq ($(CONFIG_WDI3_STATS_UPDATE), y)
  320. CONFIG_WDI3_STATS_BW_MONITOR := y
  321. endif
  322. CONFIG_WLAN_SYNC_TSF_TIMER := y
  323. endif
  324. ifeq ($(CONFIG_ARCH_LAHAINA), y)
  325. CONFIG_QCACLD_FEATURE_METERING := y
  326. CONFIG_WDI3_STATS_UPDATE := y
  327. ifeq ($(CONFIG_CNSS_QCA6490), y)
  328. CONFIG_WBM_IDLE_LSB_WR_CNF_WAR := y
  329. CONFIG_WLAN_FEATURE_RX_BUFFER_POOL := y
  330. CONFIG_DP_RX_BUFFER_POOL_SIZE := 128
  331. CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES := 5
  332. ifeq ($(CONFIG_WDI3_STATS_UPDATE), y)
  333. CONFIG_WDI3_STATS_BW_MONITOR := y
  334. endif
  335. endif
  336. endif
  337. #Flag to enable Fast Transition (11r) feature
  338. CONFIG_QCOM_VOWIFI_11R := y
  339. #Flag to enable disable ACTION OUI feature
  340. CONFIG_WLAN_FEATURE_ACTION_OUI := y
  341. #Flag to enable Adaptive 11r feature
  342. CONFIG_ADAPTIVE_11R := y
  343. #Flag to enable sae single pmk feature
  344. CONFIG_SAE_SINGLE_PMK := y
  345. #Flag to enable mscs feature
  346. CONFIG_FEATURE_MSCS := y
  347. #Flag to enable FILS Feature (11ai)
  348. CONFIG_WLAN_FEATURE_FILS := y
  349. ifneq ($(CONFIG_QCA_CLD_WLAN),)
  350. ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS_MODULE) $(CONFIG_CNSS2) \
  351. $(CONFIG_CNSS2_MODULE) $(CONFIG_ICNSS) $(CONFIG_ICNSS_MODULE) \
  352. $(CONFIG_ICNSS2) $(CONFIG_ICNSS2_MODULE)))
  353. #Flag to enable Protected Management Frames (11w) feature
  354. CONFIG_WLAN_FEATURE_11W := y
  355. #Flag to enable LTE CoEx feature
  356. CONFIG_QCOM_LTE_COEX := y
  357. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  358. CONFIG_WLAN_FEATURE_LPSS := y
  359. endif
  360. ifeq ($(CONFIG_ARCH_SDXLEMUR), y)
  361. CONFIG_WLAN_FEATURE_LPSS := y
  362. endif
  363. endif
  364. endif
  365. #Flag to enable the tx desc sanity check
  366. ifeq ($(CONFIG_ROME_IF),usb)
  367. CONFIG_QCA_TXDESC_SANITY_CHECKS := y
  368. endif
  369. ifneq ($(CONFIG_MOBILE_ROUTER), y)
  370. #Flag to enable NAN
  371. CONFIG_QCACLD_FEATURE_NAN := y
  372. endif
  373. #Flag to enable Linux QCMBR feature as default feature
  374. ifeq ($(CONFIG_ROME_IF),usb)
  375. CONFIG_LINUX_QCMBR :=y
  376. endif
  377. CONFIG_FEATURE_EPPING := y
  378. #Flag to enable offload packets feature
  379. CONFIG_WLAN_OFFLOAD_PACKETS := y
  380. #enable TSF get feature
  381. CONFIG_WLAN_SYNC_TSF := y
  382. #Enable DSRC feature
  383. ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
  384. CONFIG_WLAN_FEATURE_DSRC := y
  385. endif
  386. ifneq ($(CONFIG_ROME_IF),usb)
  387. #Flag to enable SAE
  388. CONFIG_WLAN_FEATURE_SAE := y
  389. ifneq ($(CONFIG_ROME_IF),sdio)
  390. #Flag to enable DISA
  391. CONFIG_WLAN_FEATURE_DISA := y
  392. #Flag to enable FIPS
  393. CONFIG_WLAN_FEATURE_FIPS := y
  394. #Flag to enable Fast Path feature
  395. ifneq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  396. CONFIG_WLAN_FASTPATH := y
  397. endif
  398. # Flag to enable NAPI
  399. CONFIG_WLAN_NAPI := y
  400. CONFIG_WLAN_NAPI_DEBUG := n
  401. # Flag to enable FW based TX Flow control
  402. ifeq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  403. CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
  404. else
  405. CONFIG_WLAN_TX_FLOW_CONTROL_V2 := n
  406. endif
  407. endif
  408. endif
  409. CONFIG_POWER_MANAGEMENT_OFFLOAD := y
  410. ifeq ($(CONFIG_ROME_IF), snoc)
  411. CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
  412. endif
  413. ifeq ($(CONFIG_ARCH_QCS40X), y)
  414. CONFIG_WLAN_TX_FLOW_CONTROL_V2 := n
  415. # Flag to improve TCP TX throughput for both
  416. # CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY and CONFIG_WLAN_TX_FLOW_CONTROL_V2
  417. # disabled platform, avoid frame drop in driver
  418. CONFIG_WLAN_PDEV_TX_FLOW_CONTROL := y
  419. endif
  420. # Flag to enable LFR Subnet Detection
  421. CONFIG_LFR_SUBNET_DETECTION := y
  422. # Flag to enable MCC to SCC switch feature
  423. CONFIG_MCC_TO_SCC_SWITCH := y
  424. ifeq ($(CONFIG_SLUB_DEBUG), y)
  425. # Enable Obj Mgr Degug services if slub build
  426. CONFIG_WLAN_OBJMGR_DEBUG:= y
  427. CONFIG_MPC_UT_FRAMEWORK := y
  428. CONFIG_LOCK_STATS_ON:= y
  429. CONFIG_WLAN_OBJMGR_REF_ID_TRACE := y
  430. endif
  431. ifeq ($(CONFIG_WLAN_SYSFS), y)
  432. ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
  433. CONFIG_WLAN_SYSFS_RANGE_EXT := y
  434. endif
  435. endif
  436. ifeq (y,$(findstring y,$(CONFIG_QCA_WIFI_SDIO) $(CONFIG_HIF_USB)))
  437. CONFIG_HL_DP_SUPPORT := y
  438. else
  439. CONFIG_LL_DP_SUPPORT := y
  440. endif
  441. ifeq ($(CONFIG_ROME_IF),pci)
  442. ifneq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
  443. ifneq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  444. CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY := y
  445. endif
  446. endif
  447. endif
  448. #CE4 completion on HTT HTC packet instead of misc list free
  449. ifeq ($(CONFIG_CNSS_QCA6490), y)
  450. ENABLE_CE4_COMP_DISABLE_HTT_HTC_MISC_LIST = y
  451. endif
  452. #Whether have QMI support
  453. CONFIG_QMI_SUPPORT := y
  454. ifeq (y,$(findstring y,$(CONFIG_ICNSS) $(CONFIG_ICNSS_MODULE) $(CONFIG_ICNSS2_HELIUM)))
  455. CONFIG_WIFI_3_0_ADRASTEA := y
  456. CONFIG_ADRASTEA_RRI_ON_DDR := y
  457. # Enable athdiag procfs debug support for adrastea
  458. CONFIG_ATH_PROCFS_DIAG_SUPPORT := y
  459. # Enable 11AC TX compact feature for adrastea
  460. CONFIG_ATH_11AC_TXCOMPACT := y
  461. ifeq ($(CONFIG_QMI_SUPPORT), y)
  462. CONFIG_ADRASTEA_SHADOW_REGISTERS := y
  463. endif
  464. endif
  465. # Enable fw stats version 2
  466. ifeq (y,$(findstring y,$(CONFIG_HELIUMPLUS) $(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  467. CONFIG_AR900B := y
  468. endif
  469. # NOTE: CONFIG_64BIT_PADDR requires CONFIG_HELIUMPLUS
  470. ifeq ($(CONFIG_HELIUMPLUS), y)
  471. ifeq ($(CONFIG_64BIT_PADDR), y)
  472. CONFIG_HTT_PADDR64 := y
  473. endif
  474. ifeq ($(CONFIG_SLUB_DEBUG_ON), y)
  475. CONFIG_OL_RX_INDICATION_RECORD := y
  476. CONFIG_TSOSEG_DEBUG := y
  477. CONFIG_HIF_LARGE_CE_RING_HISTORY := 8192
  478. endif
  479. ifeq ($(CONFIG_CNSS2_DEBUG), y)
  480. CONFIG_OL_RX_INDICATION_RECORD := y
  481. CONFIG_TSOSEG_DEBUG := y
  482. CONFIG_HIF_LARGE_CE_RING_HISTORY := 8192
  483. endif
  484. endif #CONFIG_HELIUMPLUS
  485. ifeq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  486. CONFIG_RX_DEFRAG_DO_NOT_REINJECT := y
  487. CONFIG_MARK_ICMP_REQ_TO_FW := y
  488. CONFIG_IPA_SET_RESET_TX_DB_PA := y
  489. #
  490. # Enable VERBOSE debug INI mechanism
  491. #
  492. CONFIG_VERBOSE_DEBUG := y
  493. CONFIG_RX_DESC_SANITY_WAR := y
  494. ifeq ($(CONFIG_PCI_MSM), y)
  495. CONFIG_FEATURE_HAL_DELAYED_REG_WRITE := y
  496. ifeq ($(CONFIG_CNSS_QCA6390), y)
  497. CONFIG_SHADOW_WRITE_DELAY := y
  498. endif
  499. endif
  500. #
  501. # Enable Shadow V2 for all lithium platform
  502. #
  503. CONFIG_SHADOW_V2 := y
  504. ifeq ($(CONFIG_CNSS_QCA6290), y)
  505. CONFIG_QCA6290_HEADERS_DEF := y
  506. CONFIG_QCA_WIFI_QCA6290 := y
  507. endif
  508. ifeq ($(CONFIG_CNSS_QCA6390), y)
  509. CONFIG_QCA6390_HEADERS_DEF := y
  510. CONFIG_QCA_WIFI_QCA6390 := y
  511. endif
  512. ifeq ($(CONFIG_CNSS_QCA6490), y)
  513. CONFIG_QCA6490_HEADERS_DEF := y
  514. CONFIG_QCA_WIFI_QCA6490 := y
  515. endif
  516. ifeq ($(CONFIG_CNSS_QCA6750), y)
  517. CONFIG_QCA6750_HEADERS_DEF := y
  518. CONFIG_QCA_WIFI_QCA6750 := y
  519. CONFIG_FEATURE_HAL_DELAYED_REG_WRITE := y
  520. CONFIG_IPA_SET_RESET_TX_DB_PA := y
  521. ifeq ($(CONFIG_WDI3_STATS_UPDATE), y)
  522. CONFIG_WDI3_STATS_BW_MONITOR := y
  523. endif
  524. endif
  525. ifeq ($(CONFIG_CNSS_QCA6750), y)
  526. CONFIG_BUS_AUTO_SUSPEND := y
  527. endif
  528. ifeq ($(CONFIG_CNSS_WCN7850), y)
  529. CONFIG_WCN7850_HEADERS_DEF := y
  530. CONFIG_QCA_WIFI_WCN7850 := y
  531. endif
  532. CONFIG_QCA_WIFI_QCA8074 := y
  533. CONFIG_QCA_WIFI_QCA8074_VP := y
  534. CONFIG_DP_INTR_POLL_BASED := y
  535. CONFIG_TX_PER_PDEV_DESC_POOL := y
  536. CONFIG_DP_TRACE := y
  537. CONFIG_FEATURE_TSO := y
  538. CONFIG_FEATURE_FORCE_WAKE := y
  539. CONFIG_DP_LFR := y
  540. CONFIG_DUP_RX_DESC_WAR := y
  541. CONFIG_HTT_PADDR64 := y
  542. CONFIG_RX_OL := y
  543. CONFIG_TX_TID_OVERRIDE := y
  544. CONFIG_DP_TXRX_SOC_ATTACH := y
  545. CONFIG_WLAN_CLD_PM_QOS := y
  546. CONFIG_WLAN_CLD_DEV_PM_QOS := y
  547. CONFIG_DISABLE_DP_STATS := n
  548. CONFIG_MAX_ALLOC_PAGE_SIZE := y
  549. CONFIG_REO_DESC_DEFER_FREE := y
  550. CONFIG_RXDMA_ERR_PKT_DROP := y
  551. CONFIG_DELIVERY_TO_STACK_STATUS_CHECK := y
  552. CONFIG_WLAN_TRACE_HIDE_MAC_ADDRESS := n
  553. CONFIG_DP_MEM_PRE_ALLOC := y
  554. CONFIG_FEATURE_GPIO_CFG := y
  555. ifeq ($(CONFIG_FEATURE_TSO), y)
  556. CONFIG_FEATURE_TSO_STATS := y
  557. CONFIG_TSO_DEBUG_LOG_ENABLE := y
  558. endif
  559. ifeq ($(CONFIG_DISABLE_DP_STATS), y)
  560. CONFIG_FEATURE_TSO_STATS := n
  561. endif
  562. endif
  563. # As per target team, build is done as follows:
  564. # Defconfig : build with default flags
  565. # Slub : defconfig + CONFIG_SLUB_DEBUG=y +
  566. # CONFIG_SLUB_DEBUG_ON=y + CONFIG_PAGE_POISONING=y
  567. # Perf : Using appropriate msmXXXX-perf_defconfig
  568. #
  569. # Shipment builds (user variants) should not have any debug feature
  570. # enabled. This is identified using 'TARGET_BUILD_VARIANT'. Slub builds
  571. # are identified using the CONFIG_SLUB_DEBUG_ON configuration. Since
  572. # there is no other way to identify defconfig builds, QCOMs internal
  573. # representation of perf builds (identified using the string 'perf'),
  574. # is used to identify if the build is a slub or defconfig one. This
  575. # way no critical debug feature will be enabled for perf and shipment
  576. # builds. Other OEMs are also protected using the TARGET_BUILD_VARIANT
  577. # config.
  578. ifneq ($(TARGET_BUILD_VARIANT),user)
  579. CONFIG_FEATURE_PKTLOG := y
  580. CONFIG_WLAN_DEBUG_CRASH_INJECT := y
  581. endif
  582. #Disable pktlog feature for lithium based target
  583. ifeq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  584. CONFIG_FEATURE_PKTLOG := n
  585. endif
  586. #Enable WLAN/Power debugfs feature only if debug_fs is enabled
  587. ifeq ($(CONFIG_DEBUG_FS), y)
  588. # Flag to enable debugfs. Depends on CONFIG_DEBUG_FS in kernel
  589. # configuration.
  590. CONFIG_WLAN_DEBUGFS := y
  591. # Flag to enable streamfs. Depends on CONFIG_DEBUG_FS and
  592. # CONFIG_RELAY in kernel configuration.
  593. ifeq ($(CONFIG_RELAY), y)
  594. CONFIG_WLAN_STREAMFS := y
  595. endif
  596. endif
  597. ifeq ($(CONFIG_WLAN_DEBUGFS), y)
  598. CONFIG_WLAN_MWS_INFO_DEBUGFS := y
  599. CONFIG_WLAN_FEATURE_MIB_STATS := y
  600. endif
  601. # Feature flags which are not (currently) configurable via Kconfig
  602. #Whether to build debug version
  603. BUILD_DEBUG_VERSION := y
  604. #Enable this flag to build driver in diag version
  605. BUILD_DIAG_VERSION := y
  606. ifeq ($(CONFIG_SLUB_DEBUG), y)
  607. PANIC_ON_BUG := y
  608. WLAN_WARN_ON_ASSERT := y
  609. else ifeq ($(CONFIG_PERF_DEBUG), y)
  610. PANIC_ON_BUG := y
  611. WLAN_WARN_ON_ASSERT := y
  612. else
  613. PANIC_ON_BUG := n
  614. WLAN_WARN_ON_ASSERT := n
  615. endif
  616. # Compile all log levels by default
  617. CONFIG_WLAN_LOG_FATAL := y
  618. CONFIG_WLAN_LOG_ERROR := y
  619. CONFIG_WLAN_LOG_WARN := y
  620. CONFIG_WLAN_LOG_INFO := y
  621. CONFIG_WLAN_LOG_DEBUG := y
  622. CONFIG_WLAN_LOG_ENTER := y
  623. CONFIG_WLAN_LOG_EXIT := y
  624. #Enable OL debug and wmi unified functions
  625. CONFIG_ATH_PERF_PWR_OFFLOAD := y
  626. #Disable packet log
  627. CONFIG_REMOVE_PKT_LOG := n
  628. #Enable 11AC TX
  629. ifeq ($(CONFIG_ROME_IF),pci)
  630. CONFIG_ATH_11AC_TXCOMPACT := y
  631. endif
  632. ifeq ($(CONFIG_ROME_IF),ipci)
  633. CONFIG_ATH_11AC_TXCOMPACT := y
  634. endif
  635. ifeq ($(CONFIG_ROME_IF),usb)
  636. CONFIG_ATH_11AC_TXCOMPACT := n
  637. endif
  638. #Enable PCI specific APIS (dma, etc)
  639. ifeq ($(CONFIG_ROME_IF),pci)
  640. CONFIG_HIF_PCI := y
  641. endif
  642. ifeq ($(CONFIG_ROME_IF),ipci)
  643. CONFIG_HIF_IPCI := y
  644. endif
  645. #Enable USB specific APIS
  646. ifeq ($(CONFIG_ROME_IF),usb)
  647. CONFIG_HIF_USB := y
  648. endif
  649. #Enable SDIO specific APIS
  650. ifeq ($(CONFIG_ROME_IF),sdio)
  651. CONFIG_HIF_SDIO := y
  652. CONFIG_TX_DESC_HI_PRIO_RESERVE := y
  653. CONFIG_FEATURE_HL_GROUP_CREDIT_FLOW_CONTROL := y
  654. CONFIG_TGT_NUM_MSDU_DESC := 0
  655. endif
  656. ifeq ($(CONFIG_ROME_IF),snoc)
  657. CONFIG_HIF_SNOC:= y
  658. endif
  659. # enable/disable feature flags based upon mobile router profile
  660. ifeq ($(CONFIG_MOBILE_ROUTER), y)
  661. CONFIG_FEATURE_WLAN_MCC_TO_SCC_SWITCH := y
  662. CONFIG_FEATURE_WLAN_AUTO_SHUTDOWN := y
  663. CONFIG_FEATURE_WLAN_AP_AP_ACS_OPTIMIZE := y
  664. CONFIG_FEATURE_WLAN_STA_4ADDR_SCHEME := y
  665. CONFIG_MDM_PLATFORM := y
  666. ifneq ($(CONFIG_ARCH_SDXPRAIRIE), y)
  667. ifneq ($(CONFIG_ARCH_SA515), y)
  668. ifneq ($(CONFIG_ARCH_SDXLEMUR), y)
  669. CONFIG_FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE := y
  670. endif
  671. endif
  672. endif
  673. CONFIG_FEATURE_AP_MCC_CH_AVOIDANCE := y
  674. CONFIG_FEATURE_STA_MODE_VOTE_LINK := y
  675. else
  676. CONFIG_QCOM_ESE := y
  677. CONFIG_WLAN_OPEN_P2P_INTERFACE := y
  678. CONFIG_WLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY := y
  679. endif
  680. #enable 4addr support for QCS40X
  681. ifeq ($(CONFIG_ARCH_QCS40X), y)
  682. CONFIG_FEATURE_WLAN_STA_4ADDR_SCHEME := y
  683. endif
  684. #Enable power management suspend/resume functionality to PCI
  685. CONFIG_ATH_BUS_PM := y
  686. #Enable FLOWMAC module support
  687. CONFIG_ATH_SUPPORT_FLOWMAC_MODULE := n
  688. #Enable spectral support
  689. CONFIG_ATH_SUPPORT_SPECTRAL := n
  690. #Define the legacy pktlog
  691. ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
  692. ifeq ($(CONFIG_HELIUMPLUS), y)
  693. CONFIG_PKTLOG_LEGACY := y
  694. endif
  695. #Customize DSCP_to-UP map based on RFC8325
  696. ifeq ($(CONFIG_HELIUMPLUS), y)
  697. CONFIG_WLAN_CUSTOM_DSCP_UP_MAP := y
  698. CONFIG_WLAN_SEND_DSCP_UP_MAP_TO_FW := y
  699. endif
  700. ifeq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  701. CONFIG_WLAN_CUSTOM_DSCP_UP_MAP := y
  702. endif
  703. ifeq ($(CONFIG_ARCH_BENGAL), y)
  704. CONFIG_SMMU_S1_UNMAP := y
  705. endif
  706. ifeq ($(CONFIG_ICNSS2_HELIUM), y)
  707. CONFIG_SMMU_S1_UNMAP := y
  708. endif
  709. ifeq ($(CONFIG_ROME_IF), sdio)
  710. CONFIG_PKTLOG_LEGACY := y
  711. endif
  712. ifeq ($(CONFIG_ROME_IF), pci)
  713. CONFIG_PKTLOG_LEGACY := y
  714. endif
  715. ifeq ($(CONFIG_ROME_IF), usb)
  716. CONFIG_PKTLOG_LEGACY := y
  717. endif
  718. ifeq ($(CONFIG_ROME_IF), snoc)
  719. CONFIG_PKTLOG_LEGACY := y
  720. endif
  721. endif
  722. ifeq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  723. CONFIG_PKTLOG_LEGACY := n
  724. endif
  725. ifeq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  726. CONFIG_WAPI_BIG_ENDIAN := y
  727. else
  728. CONFIG_WAPI_BIG_ENDIAN := n
  729. endif
  730. #Enable WDI Event support
  731. ifeq ($(CONFIG_REMOVE_PKT_LOG), y)
  732. CONFIG_WDI_EVENT_ENABLE := n
  733. else
  734. CONFIG_WDI_EVENT_ENABLE := y
  735. endif
  736. #Enable the type_specific_data in the ath_pktlog_arg
  737. ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
  738. ifeq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  739. CONFIG_PKTLOG_HAS_SPECIFIC_DATA := y
  740. endif
  741. ifeq ($(CONFIG_HELIUMPLUS), y)
  742. CONFIG_PKTLOG_HAS_SPECIFIC_DATA := y
  743. endif
  744. endif
  745. #Endianness selection
  746. CONFIG_LITTLE_ENDIAN := y
  747. #Enable TX reclaim support
  748. CONFIG_TX_CREDIT_RECLAIM_SUPPORT := n
  749. #Enable FTM support
  750. CONFIG_QCA_WIFI_FTM := y
  751. ifeq ($(CONFIG_QCA_WIFI_FTM), y)
  752. ifeq ($(CONFIG_NL80211_TESTMODE), y)
  753. QCA_WIFI_FTM_NL80211 :=y
  754. else
  755. QCA_WIFI_FTM_NL80211 :=n
  756. endif
  757. CONFIG_LINUX_QCMBR :=y
  758. else
  759. QCA_WIFI_FTM_NL80211 :=n
  760. CONFIG_LINUX_QCMBR :=n
  761. endif
  762. #Enable Checksum Offload
  763. CONFIG_CHECKSUM_OFFLOAD := y
  764. #Enable GTK offload
  765. CONFIG_GTK_OFFLOAD := y
  766. #Set this to 1 to catch erroneous Target accesses during debug.
  767. CONFIG_ATH_PCIE_ACCESS_DEBUG := n
  768. #Enable IPA offload
  769. ifeq ($(CONFIG_IPA), y)
  770. CONFIG_IPA_OFFLOAD := y
  771. endif
  772. ifeq ($(CONFIG_IPA3), y)
  773. CONFIG_IPA_OFFLOAD := y
  774. endif
  775. ifeq ($(CONFIG_IPA3), m)
  776. CONFIG_IPA_OFFLOAD := y
  777. endif
  778. #Flag to enable SMMU S1 support
  779. ifeq ($(CONFIG_ARCH_SDM845), y)
  780. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  781. CONFIG_ENABLE_SMMU_S1_TRANSLATION := y
  782. endif
  783. endif
  784. ifeq ($(CONFIG_ARCH_SM8150), y)
  785. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  786. ifneq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  787. CONFIG_ENABLE_SMMU_S1_TRANSLATION := y
  788. endif
  789. endif
  790. endif
  791. ifeq (y, $(filter y, $(CONFIG_ARCH_SDXPRAIRIE), $(CONFIG_ARCH_SA515)))
  792. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  793. CONFIG_ENABLE_SMMU_S1_TRANSLATION := y
  794. CONFIG_SMMU_S1_UNMAP := y
  795. CONFIG_IPA_WDI3_TX_TWO_PIPES := y
  796. endif
  797. endif
  798. ifeq ($(CONFIG_ARCH_KONA), y)
  799. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  800. CONFIG_ENABLE_SMMU_S1_TRANSLATION := y
  801. CONFIG_SMMU_S1_UNMAP := y
  802. endif
  803. endif
  804. ifeq ($(CONFIG_ARCH_LAHAINA), y)
  805. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  806. CONFIG_ENABLE_SMMU_S1_TRANSLATION := y
  807. CONFIG_SMMU_S1_UNMAP := y
  808. endif
  809. endif
  810. ifeq ($(CONFIG_ARCH_SDXLEMUR), y)
  811. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  812. CONFIG_ENABLE_SMMU_S1_TRANSLATION := y
  813. CONFIG_SMMU_S1_UNMAP := y
  814. CONFIG_IPA_WDI3_TX_TWO_PIPES := y
  815. endif
  816. endif
  817. ifeq ($(CONFIG_HELIUMPLUS), y)
  818. ifneq ($(CONFIG_ARCH_SDM630), y)
  819. ifneq ($(CONFIG_ARCH_SDM660), y)
  820. ifneq ($(CONFIG_ARCH_MSM8998), y)
  821. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  822. CONFIG_ENABLE_SMMU_S1_TRANSLATION := y
  823. endif
  824. endif
  825. endif
  826. endif
  827. endif
  828. ifeq ($(CONFIG_ARCH_WAIPIO), y)
  829. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  830. CONFIG_ENABLE_SMMU_S1_TRANSLATION := y
  831. CONFIG_SMMU_S1_UNMAP := y
  832. endif
  833. CONFIG_WLAN_TSF_UPLINK_DELAY := y
  834. endif
  835. ifeq ($(CONFIG_ARCH_SDX20), y)
  836. ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
  837. ifeq ($(CONFIG_WCNSS_SKB_PRE_ALLOC), y)
  838. CONFIG_FEATURE_SKB_PRE_ALLOC := y
  839. endif
  840. endif
  841. endif
  842. ifeq ($(CONFIG_CNSS_QCA6490), y)
  843. ifeq ($(CONFIG_IPA_OFFLOAD), y)
  844. ifneq ($(CONFIG_SLUB_DEBUG_ON), y)
  845. CONFIG_HIF_CPU_CLEAR_AFFINITY := y
  846. endif
  847. endif
  848. endif
  849. #Enable Signed firmware support for split binary format
  850. CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT := n
  851. #Enable single firmware binary format
  852. CONFIG_QCA_SINGLE_BINARY_SUPPORT := n
  853. #Enable collecting target RAM dump after kernel panic
  854. CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC := y
  855. #Flag to enable/disable secure firmware feature
  856. CONFIG_FEATURE_SECURE_FIRMWARE := n
  857. #Flag to enable Stats Ext implementation
  858. CONFIG_FEATURE_STATS_EXT := y
  859. #Flag to allocate memory dynamically for different buffers
  860. CONFIG_WLAN_LOGGING_BUFFERS_DYNAMICALLY := n
  861. CONFIG_WLAN_DFS_STATIC_MEM_ALLOC := y
  862. #Flag to enable HTC credit history feature
  863. CONFIG_FEATURE_HTC_CREDIT_HISTORY := y
  864. #Flag to enable MTRACE feature
  865. CONFIG_TRACE_RECORD_FEATURE := y
  866. #Flag to enable p2p debug feature
  867. CONFIG_WLAN_FEATURE_P2P_DEBUG := y
  868. #Flag to enable roam debug log
  869. CONFIG_FEATURE_ROAM_DEBUG := y
  870. #Flag to enable DFS Master feature
  871. CONFIG_WLAN_DFS_MASTER_ENABLE := y
  872. #Flag to enable WEXT support for STA/AP/P2P interfaces
  873. ifeq ($(CONFIG_WIRELESS_EXT), y)
  874. CONFIG_WLAN_WEXT_SUPPORT_ENABLE := y
  875. endif
  876. #Flag to enable/disable MTRACE feature
  877. CONFIG_ENABLE_MTRACE_LOG := y
  878. #Flag to enable nud tracking feature
  879. CONFIG_WLAN_NUD_TRACKING := y
  880. #Flag to enable/Disable Function call trace
  881. CONFIG_FUNC_CALL_MAP := n
  882. #Flag to enable wbuff feature
  883. CONFIG_WLAN_WBUFF := y
  884. #Flag to enable set and get disable channel list feature
  885. CONFIG_DISABLE_CHANNEL_LIST :=y
  886. #Flag to enable beacon receive feature
  887. CONFIG_WLAN_BCN_RECV_FEATURE := y
  888. #Flag to enable LTE COEX feature
  889. CONFIG_LTE_COEX := y
  890. #Flag to enable/disable TARGET 11d scan
  891. CONFIG_TARGET_11D_SCAN := y
  892. #Flag to enable/disable Avoid acs freq feature
  893. CONFIG_SAP_AVOID_ACS_FREQ_LIST := y
  894. #Flag to enable HOST OPCLASS feature
  895. CONFIG_HOST_OPCLASS := y
  896. #Flag to enable Dynamic Voltage WDCVS (Config Voltage Mode)
  897. CONFIG_WLAN_DYNAMIC_CVM := y
  898. #Flag to enable SAR Safety Feature
  899. CONFIG_SAR_SAFETY_FEATURE := y
  900. CONFIG_WIFI_POS_CONVERGED := y
  901. ifneq ($(CONFIG_WIFI_POS_CONVERGED), y)
  902. CONFIG_WIFI_POS_LEGACY := y
  903. endif
  904. CONFIG_CP_STATS := y
  905. CONFIG_FEATURE_INTEROP_ISSUES_AP := y
  906. CONFIG_FEATURE_WLAN_WAPI := y
  907. CONFIG_AGEIE_ON_SCAN_RESULTS := y
  908. #Flag to enable FW log parsing support feature
  909. CONFIG_FEATURE_FW_LOG_PARSING := y
  910. CONFIG_PTT_SOCK_SVC_ENABLE := y
  911. CONFIG_SOFTAP_CHANNEL_RANGE := y
  912. CONFIG_FEATURE_WLAN_SCAN_PNO := y
  913. CONFIG_WLAN_FEATURE_PACKET_FILTERING := y
  914. CONFIG_WLAN_NS_OFFLOAD := y
  915. CONFIG_FEATURE_WLAN_RA_FILTERING:= y
  916. CONFIG_FEATURE_WLAN_LPHB := y
  917. CONFIG_QCA_SUPPORT_TX_THROTTLE := y
  918. CONFIG_WMI_INTERFACE_EVENT_LOGGING := y
  919. CONFIG_WLAN_FEATURE_LINK_LAYER_STATS := y
  920. CONFIG_FEATURE_CLUB_LL_STATS_AND_GET_STATION := y
  921. CONFIG_FEATURE_WLAN_EXTSCAN := n
  922. CONFIG_WMI_BCN_OFFLOAD := y
  923. CONFIG_160MHZ_SUPPORT := y
  924. CONFIG_MCL := y
  925. CONFIG_REG_CLIENT := y
  926. CONFIG_WLAN_PMO_ENABLE := y
  927. CONFIG_CONVERGED_P2P_ENABLE := y
  928. CONFIG_WLAN_POLICY_MGR_ENABLE := y
  929. CONFIG_FEATURE_BLACKLIST_MGR := y
  930. CONFIG_FOURTH_CONNECTION := y
  931. CONFIG_SUPPORT_11AX := y
  932. CONFIG_HDD_INIT_WITH_RTNL_LOCK := y
  933. CONFIG_WLAN_CONV_SPECTRAL_ENABLE := y
  934. CONFIG_WLAN_SPECTRAL_ENABLE := y
  935. CONFIG_WMI_CMD_STRINGS := y
  936. ifneq ($(CONFIG_CNSS_WCN7850), y)
  937. CONFIG_FEATURE_MONITOR_MODE_SUPPORT := y
  938. endif
  939. CONFIG_WLAN_ALLOCATE_GLOBAL_BUFFERS_DYNAMICALLY := n
  940. CONFIG_WLAN_FEATURE_TWT := y
  941. CONFIG_FW_THERMAL_THROTTLE := y
  942. CONFIG_WLAN_FEATURE_BIG_DATA_STATS := y
  943. CONFIG_WLAN_FEATURE_IGMP_OFFLOAD := y
  944. CONFIG_WLAN_FEATURE_GET_USABLE_CHAN_LIST := y
  945. CONFIG_FEATURE_RADAR_HISTORY := y
  946. ifeq (y,$(findstring y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM) $(CONFIG_ICNSS) $(CONFIG_ICNSS_MODULE) $(CONFIG_ICNSS2_HELIUM)))
  947. CONFIG_WLAN_FEATURE_BMI := n
  948. else
  949. CONFIG_WLAN_FEATURE_BMI := y
  950. endif
  951. #Flags to enable/disable vendor commands
  952. CONFIG_FEATURE_RSSI_MONITOR := y
  953. CONFIG_FEATURE_BSS_TRANSITION := y
  954. CONFIG_FEATURE_STATION_INFO := y
  955. CONFIG_FEATURE_TX_POWER := y
  956. CONFIG_FEATURE_OTA_TEST := y
  957. CONFIG_FEATURE_ACTIVE_TOS := y
  958. CONFIG_FEATURE_SAR_LIMITS := y
  959. CONFIG_FEATURE_CONCURRENCY_MATRIX := y
  960. CONFIG_FEATURE_SAP_COND_CHAN_SWITCH := y
  961. CONFIG_FEATURE_P2P_LISTEN_OFFLOAD := y
  962. CONFIG_QCACLD_FEATURE_MPTA_HELPER := n
  963. CONFIG_QCACLD_RX_DESC_MULTI_PAGE_ALLOC := y
  964. #Flags to enable/disable WMI APIs
  965. CONFIG_WMI_ROAM_SUPPORT := y
  966. CONFIG_WMI_CONCURRENCY_SUPPORT := y
  967. CONFIG_WMI_STA_SUPPORT := y
  968. CONFIG_DP_TRACE := y
  969. ifeq ($(CONFIG_HELIUMPLUS), y)
  970. ifneq ($(CONFIG_FORCE_ALLOC_FROM_DMA_ZONE), y)
  971. CONFIG_ENABLE_DEBUG_ADDRESS_MARKING := y
  972. endif
  973. CONFIG_RX_OL := y
  974. endif
  975. ifeq ($(CONFIG_CNSS_EMULATION), y)
  976. #on emulation platform, increase host timeouts by 1000 times
  977. CONFIG_QDF_TIMER_MULTIPLIER_FRAC := 1000
  978. endif
  979. ifeq ($(CONFIG_SLUB_DEBUG_ON), y)
  980. CONFIG_DSC_DEBUG := y
  981. CONFIG_DESC_TIMESTAMP_DEBUG_INFO := y
  982. CONFIG_FEATURE_UNIT_TEST_SUSPEND := y
  983. CONFIG_LEAK_DETECTION := y
  984. ifndef CONFIG_MAX_LOGS_PER_SEC
  985. CONFIG_MAX_LOGS_PER_SEC := 500
  986. endif
  987. CONFIG_SCHED_HISTORY_SIZE := 256
  988. CONFIG_TALLOC_DEBUG := y
  989. CONFIG_UNIT_TEST := y
  990. CONFIG_REGISTER_OP_DEBUG := y
  991. CONFIG_ENABLE_QDF_PTR_HASH_DEBUG := y
  992. CONFIG_HIF_DEBUG := y
  993. CONFIG_HAL_DEBUG := y
  994. ifneq ($(CONFIG_ARCH_HOLI), y)
  995. CONFIG_HIF_DETECTION_LATENCY_ENABLE := y
  996. endif
  997. ifneq ($(CONFIG_CNSS_EMULATION), y)
  998. CONFIG_HIF_DETECTION_LATENCY_ENABLE := y
  999. endif
  1000. endif
  1001. ifeq ($(CONFIG_CNSS2_DEBUG), y)
  1002. CONFIG_DSC_DEBUG := y
  1003. CONFIG_DESC_TIMESTAMP_DEBUG_INFO := y
  1004. CONFIG_FEATURE_UNIT_TEST_SUSPEND := y
  1005. CONFIG_LEAK_DETECTION := y
  1006. CONFIG_MAX_LOGS_PER_SEC := 500
  1007. CONFIG_SCHED_HISTORY_SIZE := 256
  1008. CONFIG_TALLOC_DEBUG := y
  1009. CONFIG_UNIT_TEST := y
  1010. CONFIG_REGISTER_OP_DEBUG := y
  1011. CONFIG_ENABLE_QDF_PTR_HASH_DEBUG := y
  1012. CONFIG_HIF_DEBUG := y
  1013. CONFIG_HAL_DEBUG := y
  1014. CONFIG_ATH_DIAG_EXT_DIRECT := y
  1015. endif
  1016. ifeq ($(CONFIG_UNIT_TEST), y)
  1017. CONFIG_DSC_TEST := y
  1018. CONFIG_QDF_TEST := y
  1019. CONFIG_FEATURE_WLM_STATS := y
  1020. endif
  1021. ifeq (y,$(filter y,$(CONFIG_LITHIUM) $(CONFIG_BERYLLIUM)))
  1022. ifeq ($(CONFIG_SLUB_DEBUG_ON), y)
  1023. CONFIG_HIF_CE_DEBUG_DATA_BUF := y
  1024. CONFIG_WLAN_RECORD_RX_PADDR := y
  1025. CONFIG_HIF_CPU_PERF_AFFINE_MASK := y
  1026. CONFIG_WLAN_FEATURE_DP_RX_RING_HISTORY := y
  1027. CONFIG_WLAN_FEATURE_DP_TX_DESC_HISTORY := y
  1028. CONFIG_ALLOW_PKT_DROPPING := y
  1029. CONFIG_REO_QDESC_HISTORY := y
  1030. CONFIG_DP_TX_HW_DESC_HISTORY := y
  1031. CONFIG_QDF_NBUF_HISTORY_SIZE := 8192
  1032. endif
  1033. ifeq ($(CONFIG_CNSS2_DEBUG), y)
  1034. CONFIG_HIF_CE_DEBUG_DATA_BUF := y
  1035. CONFIG_WLAN_RECORD_RX_PADDR := y
  1036. CONFIG_HIF_CPU_PERF_AFFINE_MASK := y
  1037. CONFIG_WLAN_FEATURE_DP_RX_RING_HISTORY := y
  1038. CONFIG_WLAN_FEATURE_DP_TX_DESC_HISTORY := y
  1039. CONFIG_REO_QDESC_HISTORY := y
  1040. CONFIG_DP_TX_HW_DESC_HISTORY := y
  1041. CONFIG_QDF_NBUF_HISTORY_SIZE := 8192
  1042. endif
  1043. CONFIG_WLAN_FEATURE_DP_EVENT_HISTORY := y
  1044. CONFIG_ALLOW_PKT_DROPPING := y
  1045. CONFIG_DYNAMIC_RX_AGGREGATION := y
  1046. CONFIG_RX_DESC_DEBUG_CHECK:= y
  1047. CONFIG_WLAN_SUPPORT_DATA_STALL := y
  1048. CONFIG_WLAN_DP_PER_RING_TYPE_CONFIG := y
  1049. CONFIG_WLAN_CE_INTERRUPT_THRESHOLD_CONFIG := y
  1050. #Enable WMI TX/RX over QMI
  1051. CONFIG_WMI_SEND_RECV_QMI := y
  1052. CONFIG_WLAN_DP_PENDING_MEM_FLUSH := y
  1053. endif
  1054. #Flag to enable hdd memory dump feature
  1055. CONFIG_FEATURE_MEMDUMP_ENABLE := y
  1056. #Flag to enable/disable WLAN D0-WOW
  1057. ifeq ($(CONFIG_PCI_MSM), y)
  1058. ifeq ($(CONFIG_HIF_PCI), y)
  1059. CONFIG_FEATURE_WLAN_D0WOW := y
  1060. endif
  1061. endif
  1062. ifeq ($(CONFIG_ARCH_MDM9607), y)
  1063. CONFIG_TUFELLO_DUAL_FW_SUPPORT := y
  1064. endif
  1065. ifeq ($(CONFIG_ARCH_MSM8996), y)
  1066. CONFIG_CHANNEL_HOPPING_ALL_BANDS := y
  1067. endif
  1068. ifeq (y, $(filter y, $(CONFIG_ARCH_SDXPRAIRIE), $(CONFIG_ARCH_SA515)))
  1069. ifneq ($(CONFIG_SLUB_DEBUG), y)
  1070. CONFIG_DP_TRACE := n
  1071. endif
  1072. CONFIG_DIRECT_BUF_RX_ENABLE := n
  1073. CONFIG_WMI_DBR_SUPPORT := n
  1074. CONFIG_MAX_CLIENTS_ALLOWED := 64
  1075. endif
  1076. ifneq ($(CONFIG_HIF_USB), y)
  1077. CONFIG_WLAN_LOGGING_SOCK_SVC := y
  1078. endif
  1079. ifneq ($(TARGET_BUILD_VARIANT),user)
  1080. CONFIG_DESC_DUP_DETECT_DEBUG := y
  1081. endif
  1082. ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS_MODULE)))
  1083. ifeq ($(CONFIG_CNSS_SDIO), y)
  1084. CONFIG_PLD_SDIO_CNSS_FLAG := y
  1085. endif
  1086. ifeq ($(CONFIG_HIF_PCI), y)
  1087. CONFIG_PLD_PCIE_CNSS_FLAG := y
  1088. CONFIG_FEATURE_BUS_BANDWIDTH_MGR := y
  1089. endif
  1090. endif
  1091. ifeq (y,$(findstring y,$(CONFIG_CNSS2) $(CONFIG_CNSS2_MODULE)))
  1092. ifeq ($(CONFIG_HIF_PCI), y)
  1093. CONFIG_FEATURE_BUS_BANDWIDTH_MGR := y
  1094. CONFIG_PLD_PCIE_CNSS_FLAG := y
  1095. CONFIG_PLD_PCIE_INIT_FLAG := y
  1096. endif
  1097. endif
  1098. #Enable STATE MACHINE HISTORY
  1099. CONFIG_SM_ENG_HIST := n
  1100. #Enable OEM DATA feature
  1101. CONFIG_FEATURE_OEM_DATA := y
  1102. #Enable FW Offload
  1103. CONFIG_WLAN_FW_OFFLOAD := y
  1104. #Enable eLNA bypass feature
  1105. ifeq ($(CONFIG_WLAN_FW_OFFLOAD), y)
  1106. CONFIG_WLAN_FEATURE_ELNA := y
  1107. endif
  1108. #Enable DP Bus Vote
  1109. CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH := y
  1110. ifeq ($(CONFIG_CNSS_QCA6750), y)
  1111. #Enable 6 GHz Band
  1112. CONFIG_BAND_6GHZ := y
  1113. ifneq ($(CONFIG_IPCIE_FW_SIM), y)
  1114. CONFIG_RX_FISA := y
  1115. endif
  1116. CONFIG_MORE_TX_DESC := y
  1117. ifeq ($(CONFIG_SLUB_DEBUG_ON), y)
  1118. CONFIG_DP_FT_LOCK_HISTORY := y
  1119. endif
  1120. endif
  1121. ifeq ($(CONFIG_CNSS_QCA6490), y)
  1122. #Enable 6 GHz Band
  1123. CONFIG_BAND_6GHZ := y
  1124. CONFIG_RX_FISA := y
  1125. CONFIG_MORE_TX_DESC := y
  1126. endif
  1127. ifeq ($(CONFIG_CNSS_WCN7850), y)
  1128. #Enable 6 GHz Band
  1129. CONFIG_BAND_6GHZ := y
  1130. CONFIG_RX_FISA := n
  1131. CONFIG_MORE_TX_DESC := y
  1132. endif
  1133. CONFIG_HANDLE_BC_EAP_TX_FRM := y
  1134. ifeq ($(CONFIG_BAND_6GHZ), y)
  1135. CONFIG_6G_SCAN_CHAN_SORT_ALGO := y
  1136. endif
  1137. CONFIG_SAP_DHCP_FW_IND := y
  1138. #Enable support to get ANI level
  1139. CONFIG_ANI_LEVEL_REQUEST := y
  1140. ifeq ($(CONFIG_ARCH_QCS405), y)
  1141. CONFIG_FEATURE_WLAN_TIME_SYNC_FTM := y
  1142. endif
  1143. ifeq ($(CONFIG_ARCH_SDM660), y)
  1144. CONFIG_WLAN_FEATURE_PKT_CAPTURE := y
  1145. endif
  1146. ifeq ($(CONFIG_CNSS_QCA6490), y)
  1147. ifeq ($(CONFIG_ARCH_LAHAINA), y)
  1148. CONFIG_WLAN_FEATURE_PKT_CAPTURE := y
  1149. CONFIG_WLAN_FEATURE_PKT_CAPTURE_V2 := y
  1150. endif
  1151. endif
  1152. #Enable RX RING buffers debug
  1153. CONFIG_DEBUG_RX_RING_BUFFER := y
  1154. #Enable Hash debug
  1155. CONFIG_RX_HASH_DEBUG := y
  1156. #Enable VDEV OPS wakelock feature
  1157. CONFIG_FEATURE_VDEV_OPS_WAKELOCK := y
  1158. # Enable RX buffer pool support
  1159. ifeq ($(CONFIG_CNSS_QCA6750), y)
  1160. CONFIG_WLAN_FEATURE_RX_BUFFER_POOL := y
  1161. CONFIG_DP_RX_BUFFER_POOL_SIZE := 128
  1162. CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES := 5
  1163. CONFIG_DP_SWLM := y
  1164. endif
  1165. # Enable RX buffer pool support
  1166. ifeq ($(CONFIG_ARCH_SDXLEMUR), y)
  1167. CONFIG_WLAN_FEATURE_RX_BUFFER_POOL := y
  1168. CONFIG_DP_RX_BUFFER_POOL_SIZE := 128
  1169. CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES := 5
  1170. ifneq ($(CONFIG_SLUB_DEBUG), y)
  1171. CONFIG_DP_TRACE := n
  1172. endif
  1173. endif
  1174. #Enable Hang Event
  1175. CONFIG_WLAN_HANG_EVENT := y
  1176. ifeq ($(CONFIG_CNSS_QCA6750), y)
  1177. ifeq ($(CONFIG_FW_THERMAL_THROTTLE), y)
  1178. CONFIG_WLAN_THERMAL_MULTI_CLIENT_SUPPORT := y
  1179. endif
  1180. ifeq ($(CONFIG_LITHIUM), y)
  1181. CONFIG_DP_LEGACY_MODE_CSM_DEFAULT_DISABLE := 1
  1182. CONFIG_DP_RX_DESC_COOKIE_INVALIDATE := y
  1183. else
  1184. CONFIG_DP_LEGACY_MODE_CSM_DEFAULT_DISABLE := 0
  1185. endif
  1186. endif
  1187. #Enable 11BE EHT
  1188. CONFIG_WLAN_FEATURE_11BE := n
  1189. #Enable 11BE MLO
  1190. CONFIG_WLAN_FEATURE_11BE_MLO := n
  1191. CONFIG_WLAN_DEBUG_LINK_VOTE := y