cfg_mlme_generic.h 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: This file contains centralized definitions of converged configuration.
  21. */
  22. #ifndef __CFG_MLME_GENERIC_H
  23. #define __CFG_MLME_GENERIC_H
  24. #define CFG_PMF_SA_QUERY_MAX_RETRIES_TYPE CFG_INI_UINT
  25. #define CFG_PMF_SA_QUERY_RETRY_INTERVAL_TYPE CFG_INI_UINT
  26. /**
  27. * enum monitor_mode_concurrency - Monitor mode concurrency
  28. * @MONITOR_MODE_CONC_NO_SUPPORT: No concurrency supported with monitor mode
  29. * @MONITOR_MODE_CONC_STA_SCAN_MON: STA + monitor mode concurrency is supported
  30. * @MONITOR_MODE_CONC_AFTER_LAST: last value in enum
  31. * @MONITOR_MODE_CONC_MAX: max value supported
  32. */
  33. enum monitor_mode_concurrency {
  34. MONITOR_MODE_CONC_NO_SUPPORT,
  35. MONITOR_MODE_CONC_STA_SCAN_MON,
  36. MONITOR_MODE_CONC_AFTER_LAST,
  37. MONITOR_MODE_CONC_MAX = MONITOR_MODE_CONC_AFTER_LAST - 1,
  38. };
  39. /**
  40. * enum wlan_wds_mode - wds mode
  41. * @WLAN_WDS_MODE_DISABLED: WDS is disabled
  42. * @WLAN_WDS_MODE_REPEATER: WDS repeater mode
  43. * @WLAN_WDS_MODE_LAST: last value in enum
  44. * @WLAN_WDS_MODE_MAX: max value supported
  45. * This is used for 'type' values in wds_mode
  46. */
  47. enum wlan_wds_mode {
  48. WLAN_WDS_MODE_DISABLED = 0,
  49. WLAN_WDS_MODE_REPEATER = 1,
  50. /* keep this last */
  51. WLAN_WDS_MODE_LAST,
  52. WLAN_WDS_MODE_MAX = WLAN_WDS_MODE_LAST - 1,
  53. };
  54. /**
  55. * enum wlan_eht_mode - EHT mode of operation
  56. * @WLAN_EHT_MODE_DISABLED: EHT is disabled
  57. * @WLAN_EHT_MODE_SLO: Single-link operation mode
  58. * @WLAN_EHT_MODE_MLSR: Multi-link Single-Radio mode
  59. * @WLAN_EHT_MODE_MLMR: Multi-link Multi-Radio mode
  60. * @WLAN_EHT_MODE_EMLSR: Enhanced Multi-link Single-Radio mode
  61. * @WLAN_EHT_MODE_LAST: last value in enum
  62. * @WLAN_EHT_MODE_MAX: max value supported
  63. *
  64. * This is used for 'type' values in eht_mode
  65. */
  66. enum wlan_eht_mode {
  67. WLAN_EHT_MODE_DISABLED = 0,
  68. WLAN_EHT_MODE_SLO = 1,
  69. WLAN_EHT_MODE_MLSR = 2,
  70. WLAN_EHT_MODE_MLMR = 3,
  71. WLAN_EHT_MODE_EMLSR = 4,
  72. /* keep this last */
  73. WLAN_EHT_MODE_LAST,
  74. WLAN_EHT_MODE_MAX = WLAN_EHT_MODE_LAST - 1,
  75. };
  76. /**
  77. * enum wlan_emlsr_action_mode - EMLSR action mode
  78. * @WLAN_EMLSR_MODE_DISABLED: EMLSR is disabled
  79. * @WLAN_EMLSR_MODE_ENTER: Enter EMLSR operation mode
  80. * @WLAN_EMLSR_MODE_EXIT: Exit EMLSR operation mode
  81. * @WLAN_EMLSR_MODE_LAST: last value in enum
  82. * @WLAN_EMLSR_MODE_MAX: max value supported
  83. *
  84. * This is used for 'type' values in emlsr_mode
  85. */
  86. enum wlan_emlsr_action_mode {
  87. WLAN_EMLSR_MODE_DISABLED = 0,
  88. WLAN_EMLSR_MODE_ENTER = 1,
  89. WLAN_EMLSR_MODE_EXIT = 2,
  90. /* keep this last */
  91. WLAN_EMLSR_MODE_LAST,
  92. WLAN_EMLSR_MODE_MAX = WLAN_EMLSR_MODE_LAST - 1,
  93. };
  94. /**
  95. * enum wlan_t2lm_negotiation_support - TID-to-link mapping negotiation support
  96. * @WLAN_T2LM_DISABLE: T2LM support is disabled
  97. * @WLAN_T2LM_SAME_LINK_SET: Mapping of all TIDs to the same link set, both DL
  98. * and UL
  99. * @WLAN_T2LM_RESERVED: This value is Reserved
  100. * @WLAN_T2LM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or different
  101. * link set
  102. * @WLAN_T2LM_SUPPORT_LAST: last value in enum
  103. * @WLAN_T2LM_SUPPORT_MAX: max value supported
  104. *
  105. * This is used for 'type' values in T2LM support
  106. */
  107. enum wlan_t2lm_negotiation_support {
  108. WLAN_T2LM_DISABLE = 0,
  109. WLAN_T2LM_SAME_LINK_SET = 1,
  110. WLAN_T2LM_RESERVED = 2,
  111. WLAN_T2LM_SAME_DIFF_LINK_SET = 3,
  112. /* keep this last */
  113. WLAN_T2LM_SUPPORT_LAST,
  114. WLAN_T2LM_SUPPORT_MAX = WLAN_T2LM_SUPPORT_LAST - 1,
  115. };
  116. /**
  117. * enum debug_packet_log_type - Debug packet log type
  118. * @DEBUG_PKTLOG_TYPE_NONE: Debug packet log is disabled
  119. * @DEBUG_PKTLOG_TYPE_MGMT: Management frames logging is enabled.
  120. * @DEBUG_PKTLOG_TYPE_EAPOL: EAPOL packets logging is enabled.
  121. * @DEBUG_PKTLOG_TYPE_DHCP: DHCP packets logging is enabled.
  122. * @DEBUG_PKTLOG_TYPE_ACTION: Action frames logging is enabled.
  123. * @DEBUG_PKTLOG_TYPE_ARP: ARP packets logging is enabled.
  124. */
  125. enum debug_packet_log_type {
  126. DEBUG_PKTLOG_TYPE_NONE = 0x0,
  127. DEBUG_PKTLOG_TYPE_MGMT = 0x1,
  128. DEBUG_PKTLOG_TYPE_EAPOL = 0x2,
  129. DEBUG_PKTLOG_TYPE_DHCP = 0x4,
  130. DEBUG_PKTLOG_TYPE_ACTION = 0x8,
  131. DEBUG_PKTLOG_TYPE_ARP = 0x10,
  132. };
  133. /**
  134. * enum t2lm_negotiation_support: t2lm negotiation supported
  135. * @T2LM_NEGOTIATION_DISABLED: T2LM is disabled
  136. * @T2LM_NEGOTIATION_ALL_TIDS_TO_SUBSET_OF_LINKS: supports the mapping
  137. * of all TIDs to the same link set both DL and UL.
  138. * @T2LM_NEGOTIATION_RESERVED:
  139. * this mapping value is reserved.
  140. * @T2LM_NEGOTIATION_DISJOINT_MAPPING: supports the mapping of
  141. * each TID to the same or different link set.
  142. * @T2LM_NEGOTIATION_LAST: last value in enum
  143. * @T2LM_NEGOTIATION_MAX: max value supported
  144. */
  145. enum t2lm_negotiation_support {
  146. T2LM_NEGOTIATION_DISABLED = 0,
  147. T2LM_NEGOTIATION_ALL_TIDS_TO_SUBSET_OF_LINKS = 1,
  148. T2LM_NEGOTIATION_RESERVED = 2,
  149. T2LM_NEGOTIATION_DISJOINT_MAPPING = 3,
  150. T2LM_NEGOTIATION_LAST,
  151. /* keep this last */
  152. T2LM_NEGOTIATION_MAX = T2LM_NEGOTIATION_LAST - 1,
  153. };
  154. /**
  155. * enum wlan_epcs_capability - EPCS capability
  156. * @WLAN_EPCS_CAP_DISABLED: EPCS capability disable
  157. * @WLAN_EPCS_CAP_ENABLE: EPCS capability enable
  158. * @WLAN_EPCS_CAP_LAST: last value in enum
  159. * @WLAN_EPCS_CAP_MAX: max value supported
  160. */
  161. enum wlan_epcs_capability {
  162. WLAN_EPCS_CAP_DISABLED = 0,
  163. WLAN_EPCS_CAP_ENABLE = 1,
  164. /* keep this last */
  165. WLAN_EPCS_CAP_LAST,
  166. WLAN_EPCS_CAP_MAX = WLAN_EPCS_CAP_LAST - 1,
  167. };
  168. /**
  169. * enum wlan_epcs_frame - EPCS frame type
  170. * @WLAN_EPCS_FRAME_TEARDOWN: EPCS teardown frame
  171. * @WLAN_EPCS_FRAME_REQUEST: EPCS request frame
  172. * @WLAN_EPCS_FRAME_LAST: last value in enum
  173. * @WLAN_EPCS_FRAME_MAX: max value supported
  174. */
  175. enum wlan_epcs_frame {
  176. WLAN_EPCS_FRAME_TEARDOWN = 0,
  177. WLAN_EPCS_FRAME_REQUEST = 1,
  178. /* keep this last */
  179. WLAN_EPCS_FRAME_LAST,
  180. WLAN_EPCS_FRAME_MAX = WLAN_EPCS_FRAME_LAST - 1,
  181. };
  182. /*
  183. * pmfSaQueryMaxRetries - Control PMF SA query retries for SAP
  184. * @Min: 0
  185. * @Max: 20
  186. * @Default: 5
  187. *
  188. * This ini to set the number of PMF SA query retries for SAP
  189. *
  190. * Related: None.
  191. *
  192. * Supported Feature: PMF(11W)
  193. *
  194. */
  195. #define CFG_PMF_SA_QUERY_MAX_RETRIES CFG_PMF_SA_QUERY_MAX_RETRIES_TYPE( \
  196. "pmfSaQueryMaxRetries", \
  197. 0, \
  198. 20, \
  199. 5, \
  200. CFG_VALUE_OR_DEFAULT, \
  201. "PMF SA query retries for SAP")
  202. /*
  203. * pmfSaQueryRetryInterval - Control PMF SA query retry interval
  204. * for SAP in ms
  205. * @Min: 10
  206. * @Max: 2000
  207. * @Default: 200
  208. *
  209. * This ini to set the PMF SA query retry interval for SAP in ms
  210. *
  211. * Related: None.
  212. *
  213. * Supported Feature: PMF(11W)
  214. *
  215. */
  216. #define CFG_PMF_SA_QUERY_RETRY_INTERVAL CFG_PMF_SA_QUERY_RETRY_INTERVAL_TYPE( \
  217. "pmfSaQueryRetryInterval", \
  218. 10, \
  219. 2000, \
  220. 200, \
  221. CFG_VALUE_OR_DEFAULT, \
  222. "PMF SA query retry interval for SAP")
  223. #ifdef WLAN_FEATURE_11BE
  224. /*
  225. * oem_eht_mlo_crypto_bitmap - OEM control to allow various EHT connection
  226. * options using bitmap based on following ENUM (Name of ENUM to be added)
  227. * @Min: 0x0
  228. * @Max: 0xFFFFFFFF
  229. * @Default: 0x20008 - To allow MLO WPA2-PMF cap APs and WPA3-SAE w/o H2E cap
  230. *
  231. * This INI is used to control the driver candidate selection and EHT
  232. * connection choice based on OEM configuration. The bitmap follows the
  233. * implementation from wlan_crypto_oem_eht_mlo_config enum
  234. */
  235. #define CFG_OEM_EHT_MLO_CRYPTO_BITMAP CFG_INI_UINT( \
  236. "oem_eht_mlo_crypto_bitmap", \
  237. 0x0, \
  238. 0xFFFFFFFF, \
  239. 0x20008, \
  240. CFG_VALUE_OR_DEFAULT, \
  241. "OEM control to allow/disallow crypto to EHT configuration")
  242. #define CFG_OEM_EHT_MLO_CRYPTO_BITMAP_SUPPORTED \
  243. CFG(CFG_OEM_EHT_MLO_CRYPTO_BITMAP)
  244. #else
  245. #define CFG_OEM_EHT_MLO_CRYPTO_BITMAP_SUPPORTED
  246. #endif
  247. /*
  248. * <ini>
  249. * enable_rtt_mac_randomization - Enable/Disable rtt mac randomization
  250. * @Min: 0
  251. * @Max: 1
  252. * @Default: 1
  253. *
  254. * Usage: External
  255. *
  256. * </ini>
  257. */
  258. #define CFG_ENABLE_RTT_MAC_RANDOMIZATION CFG_INI_BOOL( \
  259. "enable_rtt_mac_randomization", \
  260. 1, \
  261. "Enable RTT MAC randomization")
  262. #define CFG_RTT3_ENABLE CFG_BOOL( \
  263. "rtt3_enabled", \
  264. 1, \
  265. "RTT3 enable/disable info")
  266. /*
  267. * <ini>
  268. * g11hSupportEnabled - Enable 11h support
  269. * @Min: 0
  270. * @Max: 1
  271. * @Default: 1
  272. *
  273. * This ini is used to set 11h support flag
  274. *
  275. * Related: None
  276. *
  277. * Supported Feature: STA
  278. *
  279. * Usage: External
  280. *
  281. * </ini>
  282. */
  283. #define CFG_11H_SUPPORT_ENABLED CFG_INI_BOOL( \
  284. "g11hSupportEnabled", \
  285. 1, \
  286. "11h Enable Flag")
  287. /*
  288. * <ini>
  289. * g11dSupportEnabled - Enable 11d support
  290. * @Min: 0
  291. * @Max: 1
  292. * @Default: 1
  293. *
  294. * This ini is used to set 11d support flag
  295. *
  296. * Related: None
  297. *
  298. * Supported Feature: STA
  299. *
  300. * Usage: External
  301. *
  302. * </ini>
  303. */
  304. #define CFG_11D_SUPPORT_ENABLED CFG_INI_BOOL( \
  305. "g11dSupportEnabled", \
  306. 1, \
  307. "11d Enable Flag")
  308. /*
  309. * rf_test_mode_enabled - Enable rf test mode support
  310. * @Min: 0
  311. * @Max: 1
  312. * @Default: 0
  313. *
  314. * This cfg is used to set rf test mode support flag
  315. * by default 6 G Hz security check will be enabled
  316. * with rf test mode as disabled.
  317. *
  318. * Related: None
  319. *
  320. * Supported Feature: STA
  321. */
  322. #define CFG_RF_TEST_MODE_SUPP_ENABLED CFG_BOOL( \
  323. "rf_test_mode_enabled", \
  324. 0, \
  325. "rf test mode Enable Flag")
  326. #ifdef CONFIG_BAND_6GHZ
  327. /*
  328. * disable_vlp_sta_conn_to_sp_ap - Disable VLP STA connection to SP AP
  329. * @Min: 0
  330. * @Max: 1
  331. * @Default: 0
  332. *
  333. * This cfg is used to disable connection when AP is operating in 6 GHz
  334. * SP mode but STA doesn't support SP mode and supports VLP mode.
  335. *
  336. * Related: None
  337. *
  338. * Supported Feature: STA
  339. */
  340. #define CFG_DISABLE_VLP_STA_CONN_TO_SP_AP CFG_BOOL( \
  341. "disable_vlp_sta_conn_to_sp_ap", \
  342. 0, \
  343. "disable vlp sta conn to sp ap")
  344. #define CFG_DIS_VLP_STA_CONN_TO_SP_AP CFG(CFG_DISABLE_VLP_STA_CONN_TO_SP_AP)
  345. #else
  346. #define CFG_DIS_VLP_STA_CONN_TO_SP_AP
  347. #endif
  348. #ifdef CONFIG_BAND_6GHZ
  349. /*
  350. * standard_6ghz_connection_policy - Enable 6 GHz standard connection policy
  351. * @Min: 0
  352. * @Max: 1
  353. * @Default: 1
  354. *
  355. * This ini is used to set standard 6 GHz policies where STA will be
  356. * allowed to scan and connect to any 6 GHz AP.
  357. *
  358. * Related: None
  359. *
  360. * Supported Feature: STA
  361. */
  362. #define CFG_6GHZ_STANDARD_CONNECTION_POLICY CFG_INI_BOOL( \
  363. "standard_6ghz_connection_policy", \
  364. 1, \
  365. "6ghz standard 6 GHZ connection policy")
  366. #define CFG_6GHZ_STD_CONN_POLICY CFG(CFG_6GHZ_STANDARD_CONNECTION_POLICY)
  367. #else
  368. #define CFG_6GHZ_STD_CONN_POLICY
  369. #endif
  370. #ifdef WLAN_FEATURE_11BE_MLO
  371. /*
  372. * emlsr_mode_enable - Enable eMLSR mode support
  373. * @Min: 0
  374. * @Max: 1
  375. * @Default: 0
  376. *
  377. * This cfg is used to enable eMLSR mode
  378. * If 0 - MLMR mode (Default mode)
  379. * If 1 - eMLSR mode
  380. *
  381. * Related: None
  382. *
  383. * Supported Feature: STA
  384. */
  385. #define CFG_EMLSR_MODE_ENABLE CFG_BOOL( \
  386. "emlsr_mode_enable", \
  387. 0, \
  388. "eMLSR mode enable flag")
  389. #define CFG_EMLSR_MODE_ENABLED CFG(CFG_EMLSR_MODE_ENABLE)
  390. #else
  391. #define CFG_EMLSR_MODE_ENABLED
  392. #endif
  393. /*
  394. * <ini>
  395. * BandCapability - Preferred band (0: 2.4G, 5G, and 6G,
  396. * 1: 2.4G only,
  397. * 2: 5G only,
  398. * 3: Both 2.4G and 5G,
  399. * 4: 6G only,
  400. * 5: Both 2.4G and 6G,
  401. * 6: Both 5G and 6G,
  402. * 7: 2.4G, 5G, and 6G)
  403. * @Min: 0
  404. * @Max: 7
  405. * @Default: 7
  406. *
  407. * This ini is used to set default band capability
  408. * (0: Both 2.4G and 5G, 1: 2.4G only, 2: 5G only, 3: Both 2.4G and 5G,
  409. * 4: 6G only, 5: Both 2.4G and 6G, 6: Both 5G and 6G, 7: 2.4G, 5G, and 6G)
  410. *
  411. * Related: None
  412. *
  413. * Supported Feature: STA
  414. *
  415. * Usage: External
  416. *
  417. * </ini>
  418. */
  419. #define CFG_BAND_CAPABILITY CFG_INI_UINT( \
  420. "BandCapability", \
  421. 0, \
  422. 7, \
  423. 7, \
  424. CFG_VALUE_OR_DEFAULT, \
  425. "Band Capability")
  426. /*
  427. * <ini>
  428. * gPreventLinkDown - Enable to prevent bus link from going down
  429. * @Min: 0
  430. * @Max: 1
  431. * @Default: 0
  432. *
  433. * Enable to prevent bus link from going down. Useful for platforms that do not
  434. * (yet) support link down suspend cases.
  435. *
  436. * Related: N/A
  437. *
  438. * Supported Feature: Suspend/Resume
  439. *
  440. * Usage: Internal
  441. *
  442. * </ini>
  443. */
  444. #if defined(QCA_WIFI_EMULATION) || defined(QCA_WIFI_QCA6290)
  445. #define CFG_PREVENT_LINK_DOWN CFG_INI_BOOL( \
  446. "gPreventLinkDown", \
  447. 1, \
  448. "Prevent Bus Link Down")
  449. #else
  450. #define CFG_PREVENT_LINK_DOWN CFG_INI_BOOL( \
  451. "gPreventLinkDown", \
  452. 0, \
  453. "Prevent Bus Link Down")
  454. #endif /* QCA_WIFI_EMULATION */
  455. /*
  456. * <ini>
  457. * gSelect5GHzMargin - Sets RSSI preference for 5GHz over 2.4GHz AP.
  458. * @Min: 0
  459. * @Max: 60
  460. * @Default: 0
  461. *
  462. * Prefer connecting to 5G AP even if its RSSI is lower by gSelect5GHzMargin
  463. * dBm than 2.4G AP. This feature requires the dependent cfg.ini
  464. * "gRoamPrefer5GHz" set to 1
  465. *
  466. * Related: gRoamPrefer5GHz
  467. *
  468. * Supported Feature: Roaming
  469. *
  470. * Usage: External
  471. *
  472. * </ini>
  473. */
  474. #define CFG_SELECT_5GHZ_MARGIN CFG_INI_UINT( \
  475. "gSelect5GHzMargin", \
  476. 0, \
  477. 60, \
  478. 0, \
  479. CFG_VALUE_OR_DEFAULT, \
  480. "Select 5Ghz Margin")
  481. /*
  482. * <ini>
  483. * gEnableMemDeepSleep - Sets Memory Deep Sleep on/off.
  484. * @Min: 0
  485. * @Max: 1
  486. * @Default: 1
  487. *
  488. * This option enables/disables memory deep sleep.
  489. * Related: None
  490. *
  491. * Supported Feature: General
  492. *
  493. * Usage: External
  494. *
  495. * </ini>
  496. */
  497. #define CFG_ENABLE_MEM_DEEP_SLEEP CFG_INI_BOOL( \
  498. "gEnableMemDeepSleep", \
  499. 1, \
  500. "Enable Memory Deep Sleep")
  501. /*
  502. * <ini>
  503. *
  504. * gEnableCckTxFirOverride - Enable/disable CCK TxFIR Override
  505. * @Min: 0 (disabled)
  506. * @Max: 1 (enabled)
  507. * @Default: 0 (disabled)
  508. *
  509. * When operating in an 802.11b mode, this configuration item forces a 2x2 radio
  510. * configuration into 1x for Tx and 2x for Rx (ie 1x2) for regulatory compliance
  511. * reasons.
  512. *
  513. * Related: enable2x2
  514. *
  515. * Supported Feature: 802.11b, 2x2
  516. *
  517. * Usage: External
  518. *
  519. * </ini>
  520. */
  521. #define CFG_ENABLE_CCK_TX_FIR_OVERRIDE CFG_INI_BOOL( \
  522. "gEnableCckTxFirOverride", \
  523. 0, \
  524. "Enable CCK TX FIR Override")
  525. /*
  526. * <ini>
  527. *
  528. * gEnableForceTargetAssert - Enable/disable SSR
  529. * @Min: 0 (disabled)
  530. * @Max: 1 (enabled)
  531. * @Default: 0 (disabled)
  532. *
  533. * This INI item is used to control subsystem restart(SSR) test framework
  534. * Set it's value to 1 to enable APPS triggered SSR testing
  535. *
  536. * Related: None
  537. *
  538. * Supported Feature: General
  539. *
  540. * Usage: External
  541. *
  542. * </ini>
  543. */
  544. #define CFG_ENABLE_CRASH_INJECT CFG_INI_BOOL( \
  545. "gEnableForceTargetAssert", \
  546. 0, \
  547. "Enable Crash Inject")
  548. /*
  549. * <ini>
  550. *
  551. * gEnableLpassSupport - Enable/disable LPASS Support
  552. * @Min: 0 (disabled)
  553. * @Max: 1 (enabled)
  554. * @Default: 1 (disabled) if WLAN_FEATURE_LPSS is defined, 0 otherwise
  555. *
  556. * Related: None
  557. *
  558. * Supported Feature: General
  559. *
  560. * Usage: External
  561. *
  562. * </ini>
  563. */
  564. #ifdef WLAN_FEATURE_LPSS
  565. #define CFG_ENABLE_LPASS_SUPPORT CFG_INI_BOOL( \
  566. "gEnableLpassSupport", \
  567. 1, \
  568. "Enable LPASS Support")
  569. #else
  570. #define CFG_ENABLE_LPASS_SUPPORT CFG_BOOL( \
  571. "gEnableLpassSupport", \
  572. 0, \
  573. "Enable LPASS Support")
  574. #endif
  575. /*
  576. * <ini>
  577. *
  578. * gEnableSelfRecovery - Enable/disable Self Recovery
  579. * @Min: 0 (disabled)
  580. * @Max: 1 (enabled)
  581. * @Default: 0 (disabled)
  582. *
  583. * Related: None
  584. *
  585. * Supported Feature: General
  586. *
  587. * Usage: External
  588. *
  589. * </ini>
  590. */
  591. #define CFG_ENABLE_SELF_RECOVERY CFG_INI_BOOL( \
  592. "gEnableSelfRecovery", \
  593. 0, \
  594. "Enable Self Recovery")
  595. /*
  596. * <ini>
  597. *
  598. * gSapDot11mc - Enable/disable SAP 802.11mc support
  599. * @Min: 0 (disabled)
  600. * @Max: 1 (enabled)
  601. * @Default: 0 (disabled)
  602. *
  603. * Related: None
  604. *
  605. * Supported Feature: General
  606. *
  607. * Usage: External
  608. *
  609. * </ini>
  610. */
  611. #define CFG_SAP_DOT11MC CFG_INI_BOOL( \
  612. "gSapDot11mc", \
  613. 0, \
  614. "SAP 802.11mc support")
  615. /*
  616. * <ini>
  617. *
  618. * gEnableFatalEvent - Enable/Disable BUG report in case of fatal event
  619. * @Min: 0 (disabled)
  620. * @Max: 1 (enabled)
  621. * @Default: 1 (enabled)
  622. *
  623. * Related: None
  624. *
  625. * Supported Feature: General
  626. *
  627. * Usage: External
  628. *
  629. * </ini>
  630. */
  631. #define CFG_ENABLE_FATAL_EVENT_TRIGGER CFG_INI_BOOL( \
  632. "gEnableFatalEvent", \
  633. 1, \
  634. "Enable Fatal Event Trigger")
  635. /*
  636. * <ini>
  637. * gSub20ChannelWidth - Control sub 20 channel width (5/10 Mhz)
  638. * @Min: 0
  639. * @Max: 2
  640. * @Default: 0
  641. *
  642. * This ini is used to set the sub 20 channel width.
  643. * gSub20ChannelWidth=0: indicates do not use Sub 20 MHz bandwidth
  644. * gSub20ChannelWidth=1: Bring up SAP/STA in 5 MHz bandwidth
  645. * gSub20ChannelWidth=2: Bring up SAP/STA in 10 MHz bandwidth
  646. *
  647. * Related: None
  648. *
  649. * Supported Feature: 5/10 Mhz channel width support
  650. *
  651. * Usage: External
  652. *
  653. * </ini>
  654. */
  655. #define CFG_SUB_20_CHANNEL_WIDTH CFG_INI_UINT( \
  656. "gSub20ChannelWidth", \
  657. 0, \
  658. 2, \
  659. 0, \
  660. CFG_VALUE_OR_DEFAULT, \
  661. "Sub 20 Channel Width")
  662. /*
  663. * <ini>
  664. * goptimize_chan_avoid_event - Optimize channel avoidance indication
  665. * coming from firmware
  666. * @Min: 0
  667. * @Max: 1
  668. * @Default: 0
  669. *
  670. * Related: None
  671. *
  672. * Supported Feature: General
  673. *
  674. * Usage: External
  675. *
  676. * </ini>
  677. */
  678. #define CFG_OPTIMIZE_CA_EVENT CFG_INI_BOOL( \
  679. "goptimize_chan_avoid_event", \
  680. 0, \
  681. "Optimize FW CA Event")
  682. /*
  683. * <ini>
  684. * fw_timeout_crash - Enable/Disable BUG ON
  685. * @Min: 0
  686. * @Max: 1
  687. * @Default: 1
  688. *
  689. * This ini is used to Trigger host crash when firmware fails to send the
  690. * response to host
  691. * fw_timeout_crash = 0 Disabled
  692. * fw_timeout_crash = 1 Trigger host crash
  693. *
  694. * Related: None
  695. *
  696. * Supported Feature: SSR
  697. *
  698. * Usage: External
  699. *
  700. * </ini>
  701. */
  702. #define CFG_CRASH_FW_TIMEOUT CFG_INI_BOOL( \
  703. "fw_timeout_crash", \
  704. 1, \
  705. "Enable FW Timeout Crash")
  706. /*
  707. * <ini>
  708. * gDroppedPktDisconnectTh - Sets dropped packet threshold in firmware
  709. * @Min: 0
  710. * @Max: 65535
  711. * @Default: 512
  712. *
  713. * This INI is the packet drop threshold will trigger disconnect from remote
  714. * peer.
  715. *
  716. * Related: None
  717. *
  718. * Supported Feature: connection
  719. *
  720. * Usage: External
  721. *
  722. * </ini>
  723. */
  724. #define CFG_DROPPED_PKT_DISCONNECT_THRESHOLD CFG_INI_UINT( \
  725. "gDroppedPktDisconnectTh", \
  726. 0, \
  727. 65535, \
  728. 512, \
  729. CFG_VALUE_OR_DEFAULT, \
  730. "Dropped Pkt Disconnect threshold")
  731. /*
  732. * <ini>
  733. * gItoRepeatCount - sets ito repeated count
  734. * @Min: 0
  735. * @Max: 5
  736. * @Default: 0
  737. *
  738. * This ini sets the ito count in FW
  739. *
  740. * Usage: External
  741. *
  742. * </ini>
  743. */
  744. #define CFG_ITO_REPEAT_COUNT CFG_INI_UINT( \
  745. "gItoRepeatCount", \
  746. 0, \
  747. 5, \
  748. 0, \
  749. CFG_VALUE_OR_DEFAULT, \
  750. "ITO Repeat Count")
  751. /*
  752. * <ini>
  753. * gEnableDeauthToDisassocMap - Enables deauth to disassoc map
  754. * @Min: 0
  755. * @Max: 1
  756. * @Default: 0
  757. *
  758. * This ini is used to set default disassoc map
  759. *
  760. * Related: None
  761. *
  762. * Supported Feature: STA
  763. *
  764. * Usage: External
  765. *
  766. * </ini>
  767. */
  768. #define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP CFG_INI_BOOL( \
  769. "gEnableDeauthToDisassocMap", \
  770. 0, \
  771. "Enables deauth to disassoc map")
  772. /*
  773. * <ini>
  774. * gEnableDebugLog - Enable/Disable the Connection related logs
  775. * @Min: 0
  776. * @Max: 0xFF
  777. * @Default: 0x01
  778. *
  779. * This ini is used to enable/disable the connection related logs
  780. * 0x1 - Enable mgmt pkt logs (except probe req/rsp, beacons).
  781. * 0x2 - Enable EAPOL pkt logs.
  782. * 0x4 - Enable DHCP pkt logs.
  783. * 0x8 - Enable mgmt action frames logs.
  784. * 0x10 - Enable ARP pkt logs.
  785. * 0x0 - Disable all the above connection related logs.
  786. * The default value of 0x01 will enable all the mgmt logs
  787. *
  788. * Related: None
  789. *
  790. * Supported Feature: STA
  791. *
  792. * Usage: External
  793. *
  794. * </ini>
  795. */
  796. #define CFG_ENABLE_DEBUG_PACKET_LOG CFG_INI_UINT( \
  797. "gEnableDebugLog", \
  798. 0, 0xFF, 0x01, \
  799. CFG_VALUE_OR_DEFAULT, \
  800. "Enable debug log")
  801. /*
  802. * <ini>
  803. * enable_beacon_reception_stats - Enable disable beacon reception stats
  804. * @Min: 0
  805. * @Max: 1
  806. * @Default: 0
  807. *
  808. * This ini is used to enable/disable the beacon reception stats collected per
  809. * vdev and then sent to the driver to be displayed in sysfs
  810. *
  811. * Related: None
  812. *
  813. * Supported Feature: Stats
  814. *
  815. * Usage: External
  816. *
  817. * </ini>
  818. */
  819. #define CFG_ENABLE_BEACON_RECEPTION_STATS CFG_INI_BOOL( \
  820. "enable_beacon_reception_stats", \
  821. 0, \
  822. "Enable disable beacon reception stats")
  823. /*
  824. * <ini>
  825. * disable_4way_hs_offload - Enable/Disable 4 way handshake offload to firmware
  826. * @Min: 0
  827. * @Max: 0x2
  828. * @Default: 0x2
  829. *
  830. * 0x0 - 4-way HS to be handled in firmware for the AKMs except for SAE and
  831. * OWE roaming the 4way HS is handled in supplicant by default
  832. * 0x1 - 4-way HS to be handled in supplicant
  833. * 0x2 - 4-way HS to be handled in firmware for the AKMs including the SAE
  834. * Roam except for OWE roaming the 4way HS is handled in supplicant
  835. *
  836. * Based on the requirement the Max value can be increased per AKM.
  837. *
  838. * Related: None
  839. *
  840. * Supported Feature: STA Roaming
  841. *
  842. * Usage: External
  843. *
  844. * </ini>
  845. */
  846. #define CFG_DISABLE_4WAY_HS_OFFLOAD CFG_INI_UINT( \
  847. "disable_4way_hs_offload", \
  848. 0, \
  849. 0x2, \
  850. 0x2, \
  851. CFG_VALUE_OR_DEFAULT, \
  852. "Enable/disable 4 way handshake offload to firmware")
  853. /*
  854. * <ini>
  855. * mgmt_retry_max - Maximum Retries for mgmt frames
  856. * @Min: 0
  857. * @Max: 31
  858. * @Default: 15
  859. *
  860. * This ini is used to set maximum retries for mgmt frames
  861. *
  862. * Supported Feature: STA/SAP
  863. *
  864. * Usage: External
  865. *
  866. * </ini>
  867. */
  868. #define CFG_MGMT_RETRY_MAX CFG_INI_UINT( \
  869. "mgmt_retry_max", \
  870. 0, \
  871. 31, \
  872. 15, \
  873. CFG_VALUE_OR_DEFAULT, \
  874. "Max retries for mgmt frames")
  875. /*
  876. * <ini>
  877. * enable_he_mcs0_for_mgmt_6ghz- if disabled FW will use 6Mbps 11A rate
  878. * @Min: 0
  879. * @Max: 1
  880. * @Default: 0
  881. *
  882. * If this ini is disabled firmware will use 6Mbps 11A rate
  883. *
  884. * Supported Feature: STA/SAP
  885. *
  886. * Usage: External
  887. *
  888. * </ini>
  889. */
  890. #define CFG_ENABLE_HE_MCS0_MGMT_6GHZ CFG_INI_BOOL( \
  891. "enable_he_mcs0_for_mgmt_6ghz", \
  892. 0, \
  893. "MCS0 rate for 6ghz mgmt frames")
  894. /*
  895. * <ini>
  896. * bmiss_skip_full_scan - To decide whether firmware does channel map based
  897. * partial scan or partial scan followed by full scan in case no candidate is
  898. * found in partial scan.
  899. * @Min: 0
  900. * @Max: 1
  901. * @Default: 0
  902. *
  903. * 0 : Based on the channel map , firmware does scan to find new AP. if AP is
  904. * not found then it does a full scan on all valid channels.
  905. * 1 : Firmware does channel map based partial scan only.
  906. *
  907. * Related: None
  908. *
  909. * Supported Feature: STA Roaming
  910. *
  911. * Usage: External
  912. *
  913. * </ini>
  914. */
  915. #define CFG_BMISS_SKIP_FULL_SCAN CFG_INI_BOOL("bmiss_skip_full_scan", \
  916. 0, \
  917. "To decide partial/partial scan followed by full scan")
  918. /*
  919. * <ini>
  920. * gEnableRingBuffer - Enable Ring Buffer for Bug Report
  921. * @Min: 0
  922. * @Max: 1
  923. * @Default: 1
  924. *
  925. * This ini is used to enable Ring Buffer
  926. *
  927. * Related: None
  928. *
  929. * Supported Feature: STA/SAP
  930. *
  931. * Usage: External
  932. *
  933. * </ini>
  934. */
  935. #define CFG_ENABLE_RING_BUFFER CFG_INI_BOOL( \
  936. "gEnableRingBuffer", \
  937. 1, \
  938. "To Enable Ring Buffer")
  939. /*
  940. * <ini>
  941. * dfs_chan_ageout_time - Set DFS Channel ageout time(in seconds)
  942. * @Min: 0
  943. * @Max: 8
  944. * Default: 0
  945. *
  946. * Ageout time is the time upto which DFS channel information such as beacon
  947. * found is remembered. So that Firmware performs Active scan instead of the
  948. * Passive to reduce the Dwell time.
  949. * This ini Parameter used to set ageout timer value from host to FW.
  950. * If not set, Firmware will disable ageout time.
  951. *
  952. * Supported Feature: STA scan in DFS channels
  953. *
  954. * Usage: External
  955. *
  956. * </ini>
  957. */
  958. #define CFG_DFS_CHAN_AGEOUT_TIME CFG_INI_UINT("dfs_chan_ageout_time", \
  959. 0, 8, 0, CFG_VALUE_OR_DEFAULT, \
  960. "Set DFS Channel ageout time from host to firmware")
  961. /*
  962. * <ini>
  963. * sae_connect_retries - Bit mask to retry Auth and full connection on assoc
  964. * timeout to same AP and auth retries during roaming
  965. * @Min: 0x0
  966. * @Max: 0x53
  967. * @Default: 0x52
  968. *
  969. * This ini is used to set max auth retry in auth phase of roaming and initial
  970. * connection and max connection retry in case of assoc timeout. MAX Auth
  971. * retries are capped to 3, connection retries are capped to 2 and roam Auth
  972. * retry is capped to 1.
  973. * Default is 0x52 i.e. 1 roam auth retry, 2 auth retry and 2 full connection
  974. * retry.
  975. *
  976. * Bits Retry Type
  977. * BIT[0:2] AUTH retries
  978. * BIT[3:5] Connection reties
  979. * BIT[6:8] ROAM AUTH retries
  980. *
  981. * Some Possible values are as below
  982. * 0 - NO auth/roam Auth retry and NO full connection retry after
  983. * assoc timeout
  984. * 0x49 - 1 auth/roam auth retry and 1 full connection retry
  985. * 0x52 - 1 roam auth retry, 2 auth retry and 2 full connection retry
  986. * 0x1 /0x2 - 0 roam auth retry, 1 or 2 auth retry respectively and NO full
  987. * connection retry
  988. * 0x8 /0x10 - 0 roam auth retry,NO auth retry and 1 or 2 full connection retry
  989. * respectively.
  990. * 0x4A - 1 roam auth retry,2 auth retry and 1 full connection retry
  991. * 0x51 - 1 auth/roam auth retry and 2 full connection retry
  992. *
  993. * Related: None
  994. *
  995. * Supported Feature: STA SAE
  996. *
  997. * Usage: External
  998. *
  999. * </ini>
  1000. */
  1001. #define CFG_SAE_CONNECION_RETRIES CFG_INI_UINT("sae_connect_retries", \
  1002. 0, 0x53, 0x52, CFG_VALUE_OR_DEFAULT, \
  1003. "Bit mask to retry Auth and full connection on assoc timeout to same AP for SAE connection")
  1004. /*
  1005. * <ini>
  1006. *
  1007. * wls_6ghz_capable - WiFi Location Service(WLS) is 6Ghz capable
  1008. * @Min: 0 (WLS 6Ghz non-capable)
  1009. * @Max: 1 (WLS 6Ghz capable)
  1010. * @Default: 0 (WLS 6Ghz non-capable)
  1011. *
  1012. * Related: None
  1013. *
  1014. * Supported Feature: General
  1015. *
  1016. * Usage: Internal
  1017. *
  1018. * </ini>
  1019. */
  1020. #define CFG_WLS_6GHZ_CAPABLE CFG_INI_BOOL( \
  1021. "wls_6ghz_capable", \
  1022. 0, \
  1023. "WiFi Location Service(WLS) is 6Ghz capable or not")
  1024. /*
  1025. * <ini>
  1026. *
  1027. * monitor_mode_conc - Monitor mode concurrency supported
  1028. * @Min: 0
  1029. * @Max: 1
  1030. * @Default: 0
  1031. *
  1032. * Related: None
  1033. *
  1034. * Monitor mode concurrency supported
  1035. * 0 - No concurrency supported
  1036. * 1 - Allow STA scan + Monitor mode concurrency
  1037. *
  1038. * Supported Feature: General
  1039. *
  1040. * Usage: External
  1041. *
  1042. * </ini>
  1043. */
  1044. #define CFG_MONITOR_MODE_CONCURRENCY CFG_INI_UINT( \
  1045. "monitor_mode_concurrency", \
  1046. MONITOR_MODE_CONC_NO_SUPPORT, \
  1047. MONITOR_MODE_CONC_MAX, \
  1048. MONITOR_MODE_CONC_NO_SUPPORT, \
  1049. CFG_VALUE_OR_DEFAULT, \
  1050. "Monitor mode concurrency supported")
  1051. #ifdef FEATURE_WDS
  1052. /*
  1053. * <ini>
  1054. *
  1055. * wds_mode - wds mode supported
  1056. * @Min: 0
  1057. * @Max: 1
  1058. * @Default: 0
  1059. *
  1060. * Related: None
  1061. *
  1062. * wds mode supported
  1063. * 0 - wds mode disabled
  1064. * 1 - wds repeater mode
  1065. *
  1066. * Supported Feature: General
  1067. *
  1068. * Usage: External
  1069. *
  1070. * </ini>
  1071. */
  1072. #define CFG_WDS_MODE CFG_INI_UINT( \
  1073. "wds_mode", \
  1074. WLAN_WDS_MODE_DISABLED, \
  1075. WLAN_WDS_MODE_MAX, \
  1076. WLAN_WDS_MODE_DISABLED, \
  1077. CFG_VALUE_OR_DEFAULT, \
  1078. "wds mode supported")
  1079. #define CFG_WDS_MODE_ALL CFG(CFG_WDS_MODE)
  1080. #else
  1081. #define CFG_WDS_MODE_ALL
  1082. #endif
  1083. /*
  1084. * <ini>
  1085. * tx_retry_multiplier - TX retry multiplier
  1086. * @Min: 0
  1087. * @Max: 500
  1088. * @Default: 0
  1089. *
  1090. * This ini is used to indicate percentage to max retry limit to fw
  1091. * which can further be used by fw to multiply counter by
  1092. * tx_retry_multiplier percent.
  1093. *
  1094. * Supported Feature: STA/SAP
  1095. *
  1096. * Usage: External
  1097. *
  1098. * </ini>
  1099. */
  1100. #define CFG_TX_RETRY_MULTIPLIER CFG_INI_UINT( \
  1101. "tx_retry_multiplier", \
  1102. 0, \
  1103. 500, \
  1104. 0, \
  1105. CFG_VALUE_OR_DEFAULT, \
  1106. "percentage of max retry limit")
  1107. /*
  1108. * <ini>
  1109. * mgmt_frame_hw_tx_retry_count - Set hw tx retry count for mgmt action
  1110. * frame
  1111. * @Min: N/A
  1112. * @Max: N/A
  1113. * @Default: N/A
  1114. *
  1115. * Set mgmt action frame hw tx retry count, string format looks like below:
  1116. * frame_hw_tx_retry_count="<frame type>,<retry count>,..."
  1117. * frame type is enum value of mlme_cfg_frame_type.
  1118. * Retry count max value is 127.
  1119. * For example:
  1120. * frame_hw_tx_retry_count="0,64,2,32"
  1121. * The above input string means:
  1122. * For p2p go negotiation request fame, hw retry count 64
  1123. * For p2p provision discovery request, hw retry count 32
  1124. *
  1125. * Related: None.
  1126. *
  1127. * Supported Feature: STA/P2P
  1128. *
  1129. * Usage: External
  1130. *
  1131. * </ini>
  1132. */
  1133. #define MGMT_FRM_HW_TX_RETRY_COUNT_STR_LEN (64)
  1134. #define CFG_MGMT_FRAME_HW_TX_RETRY_COUNT CFG_INI_STRING( \
  1135. "mgmt_frame_hw_tx_retry_count", \
  1136. 0, \
  1137. MGMT_FRM_HW_TX_RETRY_COUNT_STR_LEN, \
  1138. "", \
  1139. "Set mgmt action frame hw tx retry count")
  1140. #if defined(WLAN_FEATURE_SR)
  1141. /*
  1142. * <ini>
  1143. * sr_enable_modes - Modes for which SR(Spatial Reuse) feature can be enabled
  1144. * @Min: 0x00
  1145. * @Max: 0xf
  1146. * @Default: 0x1
  1147. *
  1148. * This ini is used to check for which mode SR feature is enabled
  1149. *
  1150. * Bit 0: Enable/Disable SR feature for STA
  1151. * Bit 1: Enable/Disable SR feature for SAP
  1152. * Bit 2: Enable/Disable SR feature for P2P CLI
  1153. * Bit 3: Enable/Disable SR feature for P2P GO
  1154. *
  1155. * Related: None
  1156. *
  1157. * Supported Feature: STA/SAP
  1158. *
  1159. * Usage: External
  1160. *
  1161. * </ini>
  1162. */
  1163. #define CFG_SR_ENABLE_MODES CFG_INI_UINT( \
  1164. "sr_enable_modes",\
  1165. 0x0,\
  1166. 0xf,\
  1167. 0x1,\
  1168. CFG_VALUE_OR_DEFAULT, \
  1169. "To decide for which mode SR feature is enabled")
  1170. #define CFG_SR_ENABLE_MODES_ALL CFG(CFG_SR_ENABLE_MODES)
  1171. #else
  1172. #define CFG_SR_ENABLE_MODES_ALL
  1173. #endif
  1174. #ifdef WLAN_FEATURE_11BE_MLO
  1175. /*
  1176. * t2lm_negotiation_support - T2LM negotiation support by STA
  1177. * @Min: 0
  1178. * @Max: 3
  1179. * @Default: 1
  1180. *
  1181. * This cfg is used to define t2lm negotiation supported value by STA
  1182. * If 0 - t2lm negotiation is not supported
  1183. * If 1 - supports the mapping of all TIDs to the same link set both DL and UL.
  1184. * If 2 - reserved
  1185. * If 3 - supports the mapping of each TID to the same or different link set.
  1186. *
  1187. * Related: None
  1188. *
  1189. * Supported Feature: STA
  1190. */
  1191. #define CFG_T2LM_NEGOTIATION_SUPPORT CFG_INI_UINT( \
  1192. "t2lm_negotiation_supported", \
  1193. T2LM_NEGOTIATION_DISABLED, \
  1194. T2LM_NEGOTIATION_DISJOINT_MAPPING, \
  1195. T2LM_NEGOTIATION_ALL_TIDS_TO_SUBSET_OF_LINKS, \
  1196. CFG_VALUE_OR_DEFAULT, \
  1197. "T2LM negotiation supported value")
  1198. #define CFG_T2LM_NEGOTIATION_SUPPORTED CFG(CFG_T2LM_NEGOTIATION_SUPPORT)
  1199. #else
  1200. #define CFG_T2LM_NEGOTIATION_SUPPORTED
  1201. #endif
  1202. #define CFG_GENERIC_ALL \
  1203. CFG(CFG_ENABLE_DEBUG_PACKET_LOG) \
  1204. CFG(CFG_PMF_SA_QUERY_MAX_RETRIES) \
  1205. CFG(CFG_PMF_SA_QUERY_RETRY_INTERVAL) \
  1206. CFG_OEM_EHT_MLO_CRYPTO_BITMAP_SUPPORTED \
  1207. CFG(CFG_ENABLE_RTT_MAC_RANDOMIZATION) \
  1208. CFG(CFG_RTT3_ENABLE) \
  1209. CFG(CFG_11H_SUPPORT_ENABLED) \
  1210. CFG(CFG_11D_SUPPORT_ENABLED) \
  1211. CFG(CFG_BAND_CAPABILITY) \
  1212. CFG(CFG_PREVENT_LINK_DOWN) \
  1213. CFG(CFG_SELECT_5GHZ_MARGIN) \
  1214. CFG(CFG_ENABLE_MEM_DEEP_SLEEP) \
  1215. CFG(CFG_ENABLE_CCK_TX_FIR_OVERRIDE) \
  1216. CFG(CFG_ENABLE_CRASH_INJECT) \
  1217. CFG(CFG_ENABLE_LPASS_SUPPORT) \
  1218. CFG(CFG_ENABLE_SELF_RECOVERY) \
  1219. CFG(CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP) \
  1220. CFG(CFG_DISABLE_4WAY_HS_OFFLOAD) \
  1221. CFG(CFG_SAP_DOT11MC) \
  1222. CFG(CFG_ENABLE_FATAL_EVENT_TRIGGER) \
  1223. CFG(CFG_SUB_20_CHANNEL_WIDTH) \
  1224. CFG(CFG_OPTIMIZE_CA_EVENT) \
  1225. CFG(CFG_CRASH_FW_TIMEOUT) \
  1226. CFG(CFG_DROPPED_PKT_DISCONNECT_THRESHOLD) \
  1227. CFG(CFG_ITO_REPEAT_COUNT) \
  1228. CFG(CFG_ENABLE_BEACON_RECEPTION_STATS) \
  1229. CFG(CFG_MGMT_RETRY_MAX) \
  1230. CFG(CFG_ENABLE_HE_MCS0_MGMT_6GHZ) \
  1231. CFG(CFG_BMISS_SKIP_FULL_SCAN) \
  1232. CFG(CFG_ENABLE_RING_BUFFER) \
  1233. CFG(CFG_DFS_CHAN_AGEOUT_TIME) \
  1234. CFG(CFG_SAE_CONNECION_RETRIES) \
  1235. CFG(CFG_WLS_6GHZ_CAPABLE) \
  1236. CFG(CFG_MONITOR_MODE_CONCURRENCY) \
  1237. CFG(CFG_RF_TEST_MODE_SUPP_ENABLED) \
  1238. CFG_WDS_MODE_ALL \
  1239. CFG(CFG_TX_RETRY_MULTIPLIER) \
  1240. CFG(CFG_MGMT_FRAME_HW_TX_RETRY_COUNT) \
  1241. CFG_6GHZ_STD_CONN_POLICY \
  1242. CFG_EMLSR_MODE_ENABLED \
  1243. CFG_SR_ENABLE_MODES_ALL \
  1244. CFG_T2LM_NEGOTIATION_SUPPORTED\
  1245. CFG_DIS_VLP_STA_CONN_TO_SP_AP
  1246. #endif /* __CFG_MLME_GENERIC_H */