default_defconfig 38 KB

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