default_defconfig 41 KB

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