cfg_mlme_sta.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  1. /*
  2. * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. /**
  18. * DOC: This file contains configuration definitions for MLME STA.
  19. */
  20. #ifndef CFG_MLME_STA_H__
  21. #define CFG_MLME_STA_H__
  22. #include "wlan_mlme_public_struct.h"
  23. #ifdef CONNECTION_ROAMING_CFG
  24. # define CONKEEPALIVE_INTERVAL_MIN 0
  25. # define CONKEEPALIVE_INTERVAL_MAX 120
  26. # define CONKEEPALIVE_INTERVAL_DEFAULT 30
  27. #else
  28. # define CONKEEPALIVE_INTERVAL_MIN 0
  29. # define CONKEEPALIVE_INTERVAL_MAX 1000
  30. # define CONKEEPALIVE_INTERVAL_DEFAULT 30
  31. #endif
  32. /*
  33. * <ini>
  34. * gStaKeepAlivePeriod/ConKeepAlive_Interval - STA keep alive period
  35. *
  36. *
  37. * @Min: 0
  38. * @Max: 1000
  39. * @Default: 30
  40. *
  41. * This ini is used to control how frequently STA should send NULL frames to AP
  42. * (period in seconds) to notify AP of its existence.
  43. *
  44. * Related: None
  45. *
  46. * Supported Feature: STA
  47. *
  48. * Usage: Internal/External
  49. *
  50. * </ini>
  51. */
  52. /*
  53. * <ini>
  54. * gStaKeepAlivePeriod/ConKeepAlive_Interval - STA keep alive period
  55. *
  56. *
  57. * @Min: 0
  58. * @Max: 120
  59. * @Default: 30
  60. *
  61. * This ini is used to control how frequently STA should send NULL frames to AP
  62. * (period in seconds) to notify AP of its existence.
  63. *
  64. * Related: None
  65. *
  66. * Supported Feature: STA
  67. *
  68. * Usage: Internal/External
  69. *
  70. * </ini>
  71. */
  72. #define CFG_INFRA_STA_KEEP_ALIVE_PERIOD CFG_INI_UINT( \
  73. "gStaKeepAlivePeriod ConKeepAlive_Interval", \
  74. CONKEEPALIVE_INTERVAL_MIN, \
  75. CONKEEPALIVE_INTERVAL_MAX, \
  76. CONKEEPALIVE_INTERVAL_DEFAULT, \
  77. CFG_VALUE_OR_DEFAULT, \
  78. "send default NULL frame to AP")
  79. /*
  80. * bss_max_idle_period - STA bss max period
  81. *
  82. * @Min: 0
  83. * @Max: 100
  84. * @Default: 0
  85. *
  86. * This ini is used to advertise the bss max idle period in assoc req.
  87. *
  88. * Related: None
  89. *
  90. * Supported Feature: STA
  91. *
  92. * Usage: Internal
  93. *
  94. */
  95. #define CFG_STA_BSS_MAX_IDLE_PERIOD CFG_INI_UINT( \
  96. "bss_max_idle_period", \
  97. 0, \
  98. 100, \
  99. 0, \
  100. CFG_VALUE_OR_DEFAULT, \
  101. "advertise bss max idle period")
  102. /*
  103. * <ini>
  104. * tgt_gtx_usr_cfg - target gtx user config
  105. * @Min: 0
  106. * @Max: 32
  107. * @Default: 32
  108. *
  109. * This ini is used to set target gtx user config.
  110. *
  111. * Related: None
  112. *
  113. * Usage: Internal/External
  114. *
  115. * </ini>
  116. */
  117. #define CFG_TGT_GTX_USR_CFG CFG_INI_UINT( \
  118. "tgt_gtx_usr_cfg", \
  119. 0, \
  120. 32, \
  121. 32, \
  122. CFG_VALUE_OR_DEFAULT, \
  123. "target gtx user config")
  124. /*
  125. * <ini>
  126. * pmkidModes - Enable PMKID modes
  127. * This INI is used to enable PMKID feature options
  128. * @Min: 0
  129. * @Max: 3
  130. * @Default: 3
  131. *
  132. * Related: None
  133. *
  134. * Supported Feature: Scan
  135. *
  136. * Usage: External
  137. *
  138. * </ini>
  139. */
  140. #define CFG_PMKID_MODES CFG_INI_UINT( \
  141. "pmkidModes", \
  142. 0, \
  143. 3, \
  144. 3, \
  145. CFG_VALUE_OR_DEFAULT, \
  146. "PMKID feature options")
  147. /*
  148. * <ini>
  149. * gIgnorePeerErpInfo - Ignore peer information
  150. * @Min: 0
  151. * @Max: 1
  152. * @Default: 0
  153. *
  154. * This ini is used to ignore default peer info
  155. *
  156. * Related: None
  157. *
  158. * Supported Feature: STA
  159. *
  160. * Usage: Internal/External
  161. *
  162. * </ini>
  163. */
  164. #define CFG_IGNORE_PEER_ERP_INFO CFG_INI_BOOL( \
  165. "gIgnorePeerErpInfo", \
  166. 0, \
  167. "ignore default peer info")
  168. /*
  169. * <ini>
  170. * gStaPrefer80MHzOver160MHz - set sta preference to connect in 80HZ/160HZ
  171. * @Min: 0
  172. * @Max: 2
  173. * @Default: 0
  174. *
  175. * This ini is used to set sta preference to connect in 80HZ/160HZ
  176. *
  177. * 0 - Connects in 160MHz 1x1 when AP is 160MHz 2x2
  178. * 1 - Connects in 80MHz 2x2 when AP is 160MHz 2x2
  179. * 2 - Always Connects in 80MHz when AP is 160MHz
  180. *
  181. * Related: NA
  182. *
  183. * Supported Feature: 11AC
  184. *
  185. * Usage: External
  186. *
  187. * </ini>
  188. */
  189. #define CFG_STA_PREFER_80MHZ_OVER_160MHZ CFG_INI_UINT( \
  190. "gStaPrefer80MHzOver160MHz", \
  191. 0, \
  192. 2, \
  193. 0, \
  194. CFG_VALUE_OR_DEFAULT, \
  195. "Sta preference to connect in 80HZ/160HZ")
  196. /*
  197. * <ini>
  198. * gEnable5gEBT - Enables/disables 5G early beacon termination. When enabled
  199. * terminate the reception of beacon if the TIM element is
  200. * clear for the power saving
  201. * @Min: 0
  202. * @Max: 1
  203. * @Default: 1
  204. *
  205. * This ini is used to set default 5G early beacon termination
  206. *
  207. * Related: None
  208. *
  209. * Supported Feature: STA
  210. *
  211. * Usage: Internal/External
  212. *
  213. * </ini>
  214. */
  215. #define CFG_PPS_ENABLE_5G_EBT CFG_INI_BOOL( \
  216. "gEnable5gEBT", \
  217. 1, \
  218. "5G early beacon termination")
  219. /*
  220. * <ini>
  221. * gSendDeauthBeforeCon - Send deauth before connection or not
  222. * @Min: 0
  223. * @Max: 1
  224. * @Default: 0
  225. *
  226. * This ini is used to set whether send deauth before connection or
  227. * not. If last disconnection was due to HB failure and we reconnect
  228. * to same AP next time, send deauth before starting connection.
  229. *
  230. * Related: None
  231. *
  232. * Supported Feature: STA
  233. *
  234. * Usage: Internal/External
  235. *
  236. * </ini>
  237. */
  238. #define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION CFG_INI_BOOL( \
  239. "gSendDeauthBeforeCon", \
  240. 0, \
  241. "send deauth before connection")
  242. /*
  243. * <ini>
  244. * deauth_retry_cnt- No. of deauth retries if the Tx is failed
  245. * @Min: 0
  246. * @Max: 4
  247. * @Default: 2
  248. *
  249. * This ini is used to set retry deauth if Tx is not success.
  250. *
  251. * Related: None
  252. *
  253. * Supported Feature: STA
  254. *
  255. * Usage: Internal/External
  256. *
  257. * </ini>
  258. */
  259. #define CFG_DEAUTH_RETRY_CNT CFG_INI_UINT( \
  260. "deauth_retry_cnt", \
  261. 0, \
  262. 4, \
  263. 2, \
  264. CFG_VALUE_OR_DEFAULT, \
  265. "Set Deauth retry count")
  266. /*
  267. * <ini>
  268. * gDot11PMode - 802.11p mode
  269. * @Min: CFG_11P_DISABLED
  270. * @Max: CFG_11P_CONCURRENT
  271. * @Default: CFG_11P_DISABLED
  272. *
  273. * This ini used to set 802.11p mode.
  274. *
  275. *
  276. * Usage: Internal/External
  277. *
  278. * </ini>
  279. */
  280. #define CFG_DOT11P_MODE CFG_INI_UINT( \
  281. "gDot11PMode", \
  282. CFG_11P_DISABLED, \
  283. CFG_11P_CONCURRENT, \
  284. CFG_11P_DISABLED, \
  285. CFG_VALUE_OR_DEFAULT, \
  286. "802.11p mode")
  287. /*
  288. * <ini>
  289. * gEnable_go_cts2self_for_sta - Indicate firmware to stop NOA and
  290. * start using cts2self
  291. * @Min: 0
  292. * @Max: 1
  293. * @Default: 0
  294. *
  295. * When gEnable_go_cts2self_for_sta is enabled then if a legacy
  296. * client connects to P2P GO, Host will send a WMI VDEV command
  297. * to FW to stop using NOA for P2P GO
  298. * and start using CTS2SELF.
  299. *
  300. *
  301. * Supported Feature: P2P
  302. *
  303. *
  304. * Usage: Internal/External
  305. *
  306. * </ini>
  307. */
  308. #define CFG_ENABLE_GO_CTS2SELF_FOR_STA CFG_INI_BOOL( \
  309. "gEnable_go_cts2self_for_sta", \
  310. 0, \
  311. "firmware to stop NOA and start using cts2self")
  312. /*
  313. * <ini>
  314. * g_qcn_ie_support - QCN IE support
  315. * @Min: 0 (disabled)
  316. * @Max: 1 (enabled)
  317. * @Default: 1 (enabled)
  318. *
  319. * This config item is used to support QCN IE in probe/assoc/reassoc request
  320. * for STA mode. QCN IE support is not added for SAP mode.
  321. *
  322. * Related: N/A
  323. *
  324. * Supported Feature: N/A
  325. *
  326. * Usage: Internal/External
  327. *
  328. * </ini>
  329. */
  330. #define CFG_QCN_IE_SUPPORT CFG_INI_BOOL( \
  331. "g_qcn_ie_support", \
  332. 1, \
  333. "QCN IE support")
  334. /*
  335. * <ini>
  336. * g_fils_max_chan_guard_time - Set maximum channel guard time(ms)
  337. * @Min: 0
  338. * @Max: 10
  339. * @Default: 0
  340. *
  341. * This ini is used to set maximum channel guard time in milliseconds.
  342. *
  343. * Related: None
  344. *
  345. * Supported Feature: FILS
  346. *
  347. * Usage: External
  348. *
  349. * </ini>
  350. */
  351. #define CFG_FILS_MAX_CHAN_GUARD_TIME CFG_INI_UINT( \
  352. "g_fils_max_chan_guard_time", \
  353. 0, \
  354. 10, \
  355. 0, \
  356. CFG_VALUE_OR_DEFAULT, \
  357. "Set maximum channel guard time")
  358. /*
  359. * <ini>
  360. * SingleTIDRC - Set replay counter for all TID's
  361. * @Min: 0 Separate replay counter for all TID
  362. * @Max: 1 Single replay counter for all TID
  363. * @Default: 1
  364. *
  365. * This ini is used to set replay counter for all TID's
  366. *
  367. * 0 - Separate replay counter for all TID
  368. * 1 - Single replay counter for all TID
  369. *
  370. * Related: None.
  371. *
  372. * Supported Feature: WMM
  373. *
  374. * Usage: Internal/External
  375. *
  376. * </ini>
  377. */
  378. #define CFG_SINGLE_TID_RC CFG_INI_BOOL( \
  379. "SingleTIDRC", \
  380. 1, \
  381. "replay counter for all TID")
  382. /*
  383. * wait_cnf_timeout - Wait assoc cnf timeout
  384. * @Min: 10
  385. * @Max: 3000
  386. * @Default: 1000
  387. *
  388. * This is internal configure for waiting assoc cnf timeout
  389. *
  390. * Related: None
  391. *
  392. * Usage: Internal
  393. *
  394. */
  395. #define CFG_WT_CNF_TIMEOUT CFG_UINT( \
  396. "wait_cnf_timeout", \
  397. 10, \
  398. 3000, \
  399. 1000, \
  400. CFG_VALUE_OR_DEFAULT, \
  401. "Wait confirm timeout")
  402. /*
  403. * <ini>
  404. * gStaMiracastMccRestTimeVal - Rest time when Miracast is running.
  405. * @Min: 100
  406. * @Max: 500
  407. * @Default: 400
  408. *
  409. * This ini is used to set rest time for home channel for Miracast before
  410. * going for scan.
  411. *
  412. * Related: None.
  413. *
  414. * Supported Feature: Concurrency
  415. *
  416. * Usage: Internal/External
  417. *
  418. * </ini>
  419. */
  420. #define CFG_STA_MCAST_MCC_REST_TIME CFG_INI_UINT( \
  421. "gStaMiracastMccRestTimeVal", \
  422. 100, \
  423. 500, \
  424. 400, \
  425. CFG_VALUE_OR_DEFAULT, \
  426. "Rest time when Miracast is running")
  427. /*
  428. * current_rssi - current rssi
  429. * @Min: 0
  430. * @Max: 127
  431. * @Default: 0
  432. *
  433. * This is internal configure for current rssi
  434. *
  435. * Related: None
  436. *
  437. * Usage: Internal
  438. *
  439. */
  440. #define CFG_CURRENT_RSSI CFG_UINT( \
  441. "current_rssi", \
  442. 0, \
  443. 127, \
  444. 0, \
  445. CFG_VALUE_OR_DEFAULT, \
  446. "Current RSSI")
  447. /*
  448. * <ini>
  449. * gAllowTPCfromAP - Support for AP power constraint
  450. * @Min: 0
  451. * @Max: 1
  452. * @Default: 1
  453. *
  454. * This ini controls driver to honor/dishonor power constraint from AP.
  455. *
  456. * Related: None.
  457. *
  458. * Supported Feature: Concurrency
  459. *
  460. * Usage: Internal/External
  461. *
  462. * </ini>
  463. */
  464. #define CFG_TX_POWER_CTRL CFG_INI_BOOL( \
  465. "gAllowTPCfromAP", \
  466. 1, \
  467. "Support for AP power constraint")
  468. /*
  469. * <ini>
  470. * gStaKeepAliveMethod - Which keepalive method to use
  471. * @Min: 1
  472. * @Max: 3
  473. * @Default: 1
  474. *
  475. * This ini determines which keepalive method to use for station interfaces
  476. * 1) Use null data packets
  477. * 2) Use gratuitous ARP packets
  478. * 3) Use unsolicited ARP response packets
  479. *
  480. * Related: gStaKeepAlivePeriod, gApKeepAlivePeriod, gGoKeepAlivePeriod
  481. *
  482. * Supported Feature: STA, Keepalive
  483. *
  484. * Usage: External
  485. *
  486. * </ini>
  487. */
  488. #define CFG_STA_KEEPALIVE_METHOD CFG_INI_INT( \
  489. "gStaKeepAliveMethod", \
  490. MLME_STA_KEEPALIVE_NULL_DATA, \
  491. MLME_STA_KEEPALIVE_UNSOLICIT_ARP_RSP, \
  492. MLME_STA_KEEPALIVE_NULL_DATA, \
  493. CFG_VALUE_OR_DEFAULT, \
  494. "Which keepalive method to use")
  495. /*
  496. * <ini>
  497. * gMaxLIModulatedDTIM - Set MaxLIModulate Dtim
  498. * @Min: 1
  499. * @Max: 10
  500. * @Default: 5
  501. *
  502. * This ini is used to set default MaxLIModulatedDTIM
  503. *
  504. * Related: None
  505. *
  506. * Supported Feature: STA
  507. *
  508. * Usage: Internal/External
  509. *
  510. * </ini>
  511. */
  512. #define CFG_MAX_LI_MODULATED_DTIM CFG_INI_UINT( \
  513. "gMaxLIModulatedDTIM", \
  514. 1, \
  515. 10, \
  516. 5, \
  517. CFG_VALUE_OR_DEFAULT, \
  518. "Max modulated dtim")
  519. /*
  520. * <ini>
  521. * @Min: 0
  522. * @Max: 2000
  523. * @Default: 500
  524. *
  525. * This ini is used to set default ConDTIMSkipping_MaxTime in ms
  526. *
  527. * Related: None
  528. *
  529. * Supported Feature: STA
  530. *
  531. * Usage: External
  532. *
  533. * </ini>
  534. */
  535. #define CFG_MAX_LI_MODULATED_DTIM_MS CFG_INI_UINT( \
  536. "ConDTIMSkipping_MaxTime", \
  537. 0, \
  538. 2000, \
  539. 500, \
  540. CFG_VALUE_OR_DEFAULT, \
  541. "DTIM skipping max time")
  542. #ifdef WLAN_FEATURE_11BE_MLO
  543. /*
  544. * <ini>
  545. * mlo_support_link_num - Set number of link mlo connection supports for sta
  546. * @Min: 1
  547. * @Max: 3
  548. * @Default: 2
  549. *
  550. * This ini is used to configure the number of link mlo connection supports
  551. *
  552. * Related: None
  553. *
  554. * Supported Feature: STA
  555. *
  556. * Usage: Internal/External
  557. *
  558. * </ini>
  559. */
  560. #define CFG_MLO_SUPPORT_LINK_NUM CFG_INI_UINT( \
  561. "mlo_support_link_num", \
  562. 1, \
  563. 3, \
  564. 2, \
  565. CFG_VALUE_OR_DEFAULT, \
  566. "supported mlo link number")
  567. #define CFG_MLO_SUPPORT_LINK_NUM_CFG CFG(CFG_MLO_SUPPORT_LINK_NUM)
  568. /*
  569. * <cfg>
  570. * mlo_max_simultaneous_links- Set number of mlo simultaneous links for sta
  571. * @Min: 0
  572. * @Max: 1
  573. * @Default: 1
  574. *
  575. * This cfg is used to configure the mlo max simultaneous links
  576. *
  577. * Related: None
  578. *
  579. * Supported Feature: STA
  580. *
  581. * Usage: Internal
  582. *
  583. * </cfg>
  584. */
  585. #define CFG_MLO_MAX_SIMULTANEOUS_LINKS CFG_UINT( \
  586. "mlo_max_simultaneous_links", \
  587. 0, \
  588. 1, \
  589. 1, \
  590. CFG_VALUE_OR_DEFAULT, \
  591. "mlo max simultaneous links")
  592. #define CFG_MLO_MAX_SIMULTANEOUS_LINKS_CFG CFG(CFG_MLO_MAX_SIMULTANEOUS_LINKS)
  593. /*
  594. * <cfg>
  595. * mlo_support_link_band - Set band bitmap of mlo connection supports for sta
  596. * @Min: 1
  597. * @Max: 0x77
  598. * @Default: 0x77
  599. *
  600. * This cfg is used to configure the band bitmap of mlo connection supports
  601. *
  602. * Related: None
  603. *
  604. * Supported Feature: STA
  605. *
  606. * Usage: Internal
  607. *
  608. * Supported band of all mlo links
  609. * bits 0: REG_BAND_2G
  610. * bits 1: REG_BAND_5G
  611. * bits 2: REG_BAND_6G
  612. *
  613. * Supported band of assoc link
  614. * bits 4: REG_BAND_2G
  615. * bits 5: REG_BAND_5G
  616. * bits 6: REG_BAND_6G
  617. *
  618. * </cfg>
  619. */
  620. #define CFG_MLO_SUPPORT_LINK_BAND CFG_INI_UINT( \
  621. "mlo_support_link_band", \
  622. 0x1, \
  623. 0x77, \
  624. 0x77, \
  625. CFG_VALUE_OR_DEFAULT, \
  626. "supported mlo link band")
  627. #define CFG_MLO_SUPPORT_LINK_BAND_CFG CFG(CFG_MLO_SUPPORT_LINK_BAND)
  628. /*
  629. * <cfg>
  630. * RoamCommon_Mlo_TpPrefer - percentage to boost mlo scoring
  631. *
  632. * @Min: -20
  633. * @Max: +20
  634. * @Default: 10
  635. *
  636. * This cfg is used to boost/reduce the mlo weightage with configured
  637. * value.
  638. *
  639. * Supported Feature: STA
  640. *
  641. * Usage: External
  642. *
  643. * </cfg>
  644. */
  645. #define CFG_MLO_PREFER_PERCENTAGE CFG_INI_INT(\
  646. "RoamCommon_Mlo_TpPrefer", \
  647. -20, \
  648. 20, \
  649. 10,\
  650. CFG_VALUE_OR_DEFAULT, \
  651. "mlo prefer percentage")
  652. #define CFG_MLO_PREFER_PERCENTAGE_CFG CFG(CFG_MLO_PREFER_PERCENTAGE)
  653. #else
  654. #define CFG_MLO_SUPPORT_LINK_NUM_CFG
  655. #define CFG_MLO_SUPPORT_LINK_BAND_CFG
  656. #define CFG_MLO_MAX_SIMULTANEOUS_LINKS_CFG
  657. #define CFG_MLO_PREFER_PERCENTAGE_CFG
  658. #endif
  659. /*
  660. * <cfg>
  661. * mlo_same_link_mld_addr - Use one of the links address as same mld address
  662. * @Default: false
  663. *
  664. * This cfg is used to configure the one of link address as same mld address
  665. *
  666. * Related: None
  667. *
  668. * Supported Feature: STA
  669. *
  670. * Usage: Internal
  671. *
  672. *
  673. * </cfg>
  674. */
  675. #define CFG_MLO_SAME_LINK_MLD_ADDR CFG_BOOL( \
  676. "mlo_same_link_mld_addr",\
  677. 0, \
  678. "same address for mlo link/mld")
  679. #ifdef WLAN_HDD_MULTI_VDEV_SINGLE_NDEV
  680. #define CFG_MLO_SAME_LINK_MLD_ADDR_CFG CFG(CFG_MLO_SAME_LINK_MLD_ADDR)
  681. #else
  682. #define CFG_MLO_SAME_LINK_MLD_ADDR_CFG
  683. #endif
  684. /*
  685. * <ini>
  686. * eht_disable_punct_in_us_lpi - Flag to Disable eht puncture in US LPI mode
  687. * @Min: false
  688. * @Max: true
  689. * @Default: false
  690. *
  691. * Related: None
  692. *
  693. * Supported Feature: 802.11be protocol
  694. *
  695. * Usage: Internal
  696. *
  697. * </ini>
  698. */
  699. #define CFG_EHT_DISABLE_PUNCT_IN_US_LPI \
  700. CFG_BOOL("eht_disable_punct_in_us_lpi", \
  701. false, \
  702. "Disable eht puncture in US LPI mode")
  703. #ifdef WLAN_FEATURE_11BE
  704. #define CFG_EHT_DISABLE_PUNCT_IN_US_LPI_CFG CFG(CFG_EHT_DISABLE_PUNCT_IN_US_LPI)
  705. #else
  706. #define CFG_EHT_DISABLE_PUNCT_IN_US_LPI_CFG
  707. #endif
  708. #ifdef WLAN_FEATURE_11BE_MLO
  709. /*
  710. * <cfg>
  711. * mlo_5gl_5gh_mlsr - enable/disable 5GL+5GH MLSR
  712. * @Min: false
  713. * @Max: true
  714. * @Default: true
  715. *
  716. * Related: None
  717. *
  718. * Supported Feature: 5GL+5GH MLSR
  719. *
  720. * Usage: Internal
  721. *
  722. * </cfg>
  723. */
  724. #define CFG_MLO_MLO_5GL_5GH_MLSR CFG_INI_BOOL( \
  725. "mlo_5gl_5gh_mlsr",\
  726. 1, \
  727. "enable 5GL+5GH MLSR")
  728. #define CFG_MLO_MLO_5GL_5GH_MLSR_CFG CFG(CFG_MLO_MLO_5GL_5GH_MLSR)
  729. #else
  730. #define CFG_MLO_MLO_5GL_5GH_MLSR_CFG
  731. #endif
  732. #define CFG_STA_ALL \
  733. CFG(CFG_INFRA_STA_KEEP_ALIVE_PERIOD) \
  734. CFG(CFG_STA_BSS_MAX_IDLE_PERIOD) \
  735. CFG(CFG_TGT_GTX_USR_CFG) \
  736. CFG(CFG_PMKID_MODES) \
  737. CFG(CFG_IGNORE_PEER_ERP_INFO) \
  738. CFG(CFG_STA_PREFER_80MHZ_OVER_160MHZ) \
  739. CFG(CFG_PPS_ENABLE_5G_EBT) \
  740. CFG(CFG_ENABLE_DEAUTH_BEFORE_CONNECTION) \
  741. CFG(CFG_DOT11P_MODE) \
  742. CFG(CFG_DEAUTH_RETRY_CNT) \
  743. CFG(CFG_ENABLE_GO_CTS2SELF_FOR_STA) \
  744. CFG(CFG_QCN_IE_SUPPORT) \
  745. CFG(CFG_STA_MCAST_MCC_REST_TIME) \
  746. CFG(CFG_FILS_MAX_CHAN_GUARD_TIME) \
  747. CFG(CFG_SINGLE_TID_RC) \
  748. CFG(CFG_STA_KEEPALIVE_METHOD) \
  749. CFG(CFG_WT_CNF_TIMEOUT) \
  750. CFG(CFG_CURRENT_RSSI) \
  751. CFG(CFG_TX_POWER_CTRL) \
  752. CFG(CFG_MAX_LI_MODULATED_DTIM_MS) \
  753. CFG_MLO_SUPPORT_LINK_NUM_CFG \
  754. CFG_MLO_MAX_SIMULTANEOUS_LINKS_CFG \
  755. CFG_MLO_SUPPORT_LINK_BAND_CFG \
  756. CFG_MLO_PREFER_PERCENTAGE_CFG \
  757. CFG_MLO_SAME_LINK_MLD_ADDR_CFG \
  758. CFG_EHT_DISABLE_PUNCT_IN_US_LPI_CFG \
  759. CFG_MLO_MLO_5GL_5GH_MLSR_CFG
  760. #endif /* CFG_MLME_STA_H__ */