cfg_mlme_sap.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2023 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_SAP_H
  23. #define __CFG_MLME_SAP_H
  24. #define CFG_BEACON_INTERVAL CFG_INI_UINT( \
  25. "gBeaconInterval", \
  26. 0, \
  27. 65535, \
  28. 100, \
  29. CFG_VALUE_OR_DEFAULT, \
  30. "CFG_BEACON_INTERVAL")
  31. #define CFG_DTIM_PERIOD CFG_UINT( \
  32. "cfg_dtim_period", \
  33. 0, \
  34. 65535, \
  35. 1, \
  36. CFG_VALUE_OR_DEFAULT, \
  37. "CFG_DTIM_PERIOD")
  38. #define CFG_LISTEN_INTERVAL CFG_UINT( \
  39. "cfg_listen_interval", \
  40. 0, \
  41. 65535, \
  42. 1, \
  43. CFG_VALUE_OR_DEFAULT, \
  44. "CFG_LISTEN_INTERVAL")
  45. #define CFG_11G_ONLY_POLICY CFG_UINT( \
  46. "cfg_11g_only_policy", \
  47. 0, \
  48. 1, \
  49. 0, \
  50. CFG_VALUE_OR_DEFAULT, \
  51. "CFG_11G_ONLY_POLICY")
  52. #define CFG_ASSOC_STA_LIMIT CFG_UINT( \
  53. "cfg_assoc_sta_limit", \
  54. 1, \
  55. 64, \
  56. 10, \
  57. CFG_VALUE_OR_DEFAULT, \
  58. "CFG_ASSOC_STA_LIMIT")
  59. /*
  60. * <ini>
  61. * cfg_enable_lte_coex - enable LTE COEX
  62. * @Min: 0
  63. * @Max: 1
  64. * @Default: 0
  65. *
  66. * This ini is used to enable LTE COEX
  67. *
  68. * Related: None
  69. *
  70. * Supported Feature: STA
  71. *
  72. * Usage: Internal/External
  73. *
  74. * </ini>
  75. */
  76. #define CFG_ENABLE_LTE_COEX CFG_INI_BOOL( \
  77. "gEnableLTECoex", \
  78. 0, \
  79. "enabled lte coex")
  80. /*
  81. * <ini>
  82. * cfg_rate_for_tx_mgmt - Set rate for tx mgmt
  83. * @Min: 0
  84. * @Max: 0xFF
  85. * @Default: 0xFF
  86. *
  87. * This ini is used to set rate for tx mgmt
  88. *
  89. * Related: None
  90. *
  91. * Supported Feature: STA
  92. *
  93. * Usage: Internal/External
  94. *
  95. * </ini>
  96. */
  97. #define CFG_RATE_FOR_TX_MGMT CFG_INI_UINT( \
  98. "gRateForTxMgmt", \
  99. 0, \
  100. 0xFF, \
  101. 0xFF, \
  102. CFG_VALUE_OR_DEFAULT, \
  103. "set rate for mgmt tx")
  104. /*
  105. * <ini>
  106. * cfg_rate_for_tx_mgmt_2g - Set rate for tx mgmt 2g
  107. * @Min: 0
  108. * @Max: 255
  109. * @Default: 255
  110. *
  111. * This ini is used to set rate for tx mgmt 2g
  112. * Related: None
  113. *
  114. * Supported Feature: STA
  115. *
  116. * Usage: Internal/External
  117. *
  118. * </ini>
  119. */
  120. #define CFG_RATE_FOR_TX_MGMT_2G CFG_INI_UINT( \
  121. "gRateForTxMgmt2G", \
  122. 0, \
  123. 255, \
  124. 255, \
  125. CFG_VALUE_OR_DEFAULT, \
  126. "set rate for mgmt tx 2g")
  127. /*
  128. * <ini>
  129. * cfg_rate_for_tx_mgmt_5g - Set rate for tx mgmt 5g
  130. * @Min: 0
  131. * @Max: 255
  132. * @Default: 255
  133. *
  134. * This ini is used to set rate for tx mgmt 5g
  135. *
  136. * Related: None
  137. *
  138. * Supported Feature: STA
  139. *
  140. * Usage: Internal/External
  141. *
  142. * </ini>
  143. */
  144. #define CFG_RATE_FOR_TX_MGMT_5G CFG_INI_UINT( \
  145. "gRateForTxMgmt5G", \
  146. 0, \
  147. 255, \
  148. 255, \
  149. CFG_VALUE_OR_DEFAULT, \
  150. "set rate for mgmt tx 5g")
  151. /*
  152. * <ini>
  153. * gTelescopicBeaconWakeupEn - Set teles copic beacon wakeup
  154. * @Min: 0
  155. * @Max: 1
  156. * @Default: 0
  157. *
  158. * This ini is used to set default teles copic beacon wakeup
  159. *
  160. * Related: None
  161. *
  162. * Supported Feature: STA
  163. *
  164. * Usage: Internal/External
  165. *
  166. * </ini>
  167. */
  168. #define CFG_TELE_BCN_WAKEUP_EN CFG_INI_BOOL( \
  169. "gTelescopicBeaconWakeupEn", \
  170. 0, \
  171. "set tescopic beacon wakeup")
  172. /*
  173. * <ini>
  174. * telescopicBeaconMaxListenInterval - Set teles scopic beacon max listen value
  175. * @Min: 0
  176. * @Max: 7
  177. * @Default: 5
  178. *
  179. * This ini is used to set teles scopic beacon max listen interval value
  180. *
  181. * Related: None
  182. *
  183. * Supported Feature: STA
  184. *
  185. * Usage: Internal/External
  186. *
  187. * </ini>
  188. */
  189. #define CFG_TELE_BCN_MAX_LI CFG_INI_UINT( \
  190. "telescopicBeaconMaxListenInterval", \
  191. 0, \
  192. 7, \
  193. 5, \
  194. CFG_VALUE_OR_DEFAULT, \
  195. "set telescopic beacon max listen")
  196. /*
  197. * <ini>
  198. * gSapGetPeerInfo - Enable/Disable remote peer info query support
  199. * @Min: 0 - Disable remote peer info query support
  200. * @Max: 1 - Enable remote peer info query support
  201. * @Default: 1
  202. *
  203. * This ini is used to enable/disable remote peer info query support
  204. *
  205. * Usage: External
  206. *
  207. * </ini>
  208. */
  209. #define CFG_SAP_GET_PEER_INFO CFG_INI_BOOL( \
  210. "gSapGetPeerInfo", \
  211. 1, \
  212. "sap get peer info")
  213. /*
  214. * <ini>
  215. * gSapAllowAllChannel - Sap allow all channels
  216. * @Min: 0
  217. * @Max: 1
  218. * @Default: 0
  219. *
  220. * This ini is used to allow all channels for SAP
  221. *
  222. * Related: None
  223. *
  224. * Supported Feature: SAP
  225. *
  226. * Usage: Internal/External
  227. *
  228. * </ini>
  229. */
  230. #define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM CFG_INI_BOOL( \
  231. "gSapAllowAllChannel", \
  232. 0, \
  233. "sap allow all channel params")
  234. /*
  235. * <ini>
  236. * gSoftApMaxPeers - Set Max peers connected for SAP
  237. * @Min: 1
  238. * @Max: 64
  239. * @Default: 10
  240. *
  241. * This ini is used to set Max peers connected for SAP
  242. *
  243. * Related: None
  244. *
  245. * Supported Feature: SAP
  246. *
  247. * Usage: Internal/External
  248. *
  249. * </ini>
  250. */
  251. #define CFG_SAP_MAX_NO_PEERS CFG_INI_UINT( \
  252. "gSoftApMaxPeers", \
  253. 1, \
  254. 64, \
  255. 10, \
  256. CFG_VALUE_OR_DEFAULT, \
  257. "max no of peers")
  258. /*
  259. * <ini>
  260. * gMaxOffloadPeers - Set max offload peers
  261. * @Min: 2
  262. * @Max: 5
  263. * @Default: 2
  264. *
  265. * This ini is used to set default teles copic beacon wakeup
  266. *
  267. * Related: None
  268. *
  269. * Supported Feature: STA
  270. *
  271. * Usage: Internal/External
  272. *
  273. * </ini>
  274. */
  275. #define CFG_SAP_MAX_OFFLOAD_PEERS CFG_INI_UINT( \
  276. "gMaxOffloadPeers", \
  277. 2, \
  278. 5, \
  279. 2, \
  280. CFG_VALUE_OR_DEFAULT, \
  281. "max offload peers")
  282. /*
  283. * <ini>
  284. * gMaxOffloadReorderBuffs - Set max offload reorder buffs
  285. * @Min: 0
  286. * @Max: 3
  287. * @Default: 2
  288. *
  289. * This ini is used to set max offload reorder buffs
  290. *
  291. * Related: None
  292. *
  293. * Supported Feature: STA
  294. *
  295. * Usage: Internal/External
  296. *
  297. * </ini>
  298. */
  299. #define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS CFG_INI_UINT( \
  300. "gMaxOffloadReorderBuffs", \
  301. 0, \
  302. 3, \
  303. 2, \
  304. CFG_VALUE_OR_DEFAULT, \
  305. "sap max offload reorder buffs")
  306. /*
  307. * <ini>
  308. * g_sap_chanswitch_beacon_cnt - Set channel switch beacon count
  309. * @Min: 1
  310. * @Max: 10
  311. * @Default: 10
  312. *
  313. * This ini is used to set channel switch beacon count
  314. *
  315. * Related: None
  316. *
  317. * Supported Feature: STA
  318. *
  319. * Usage: Internal/External
  320. *
  321. * </ini>
  322. */
  323. #define CFG_SAP_CH_SWITCH_BEACON_CNT CFG_INI_UINT( \
  324. "g_sap_chanswitch_beacon_cnt", \
  325. 1, \
  326. 10, \
  327. 10, \
  328. CFG_VALUE_OR_DEFAULT, \
  329. "set channel switch beacon count")
  330. /*
  331. * <ini>
  332. * g_sap_chanswitch_mode - channel switch mode
  333. * @Min: 0
  334. * @Max: 1
  335. * @Default: 1
  336. *
  337. * This ini is used to configure the value of channel switch mode, which is
  338. * contained in the Channel Switch Announcement(CSA) information element sent
  339. * by an SAP.
  340. *
  341. * 0 - CSA receiving STA doesn't need to do anything
  342. * 1 - CSA receiving STA shall not transmit any more frames on the channel
  343. * until the scheduled channel switch occurs
  344. *
  345. * Related: none
  346. *
  347. * Supported Feature: SAP
  348. *
  349. * Usage: External
  350. *
  351. * </ini>
  352. */
  353. #define CFG_SAP_CH_SWITCH_MODE CFG_INI_BOOL( \
  354. "g_sap_chanswitch_mode", \
  355. 1, \
  356. "sap channel switch mode")
  357. /*
  358. * <ini>
  359. * gEnableSapInternalRestart - Sap internal restart name
  360. * @Min: 0
  361. * @Max: 1
  362. * @Default: 1
  363. *
  364. * This ini is used for sap internal restart name
  365. *
  366. * Related: None
  367. *
  368. * Supported Feature: SAP
  369. *
  370. * Usage: Internal/External
  371. *
  372. * </ini>
  373. */
  374. #define CFG_SAP_INTERNAL_RESTART CFG_INI_BOOL( \
  375. "gEnableSapInternalRestart", \
  376. 1, \
  377. "sap internal restart")
  378. /*
  379. * <ini>
  380. * gChanSwitchHostapdRateEnabled - Enable channale switch hostapd rate
  381. * @Min: 0
  382. * @Max: 1
  383. * @Default: 0
  384. *
  385. * This ini is used to enable channale switch hostapd rate
  386. *
  387. * Related: None
  388. *
  389. * Supported Feature: SAP
  390. *
  391. * Usage: Internal/External
  392. *
  393. * </ini>
  394. */
  395. #define CFG_CHAN_SWITCH_HOSTAPD_RATE_ENABLED_NAME CFG_INI_BOOL( \
  396. "gChanSwitchHostapdRateEnabled", \
  397. 0, \
  398. "chan switch hostapd rate enabled")
  399. /*
  400. * <ini>
  401. * gReducedBeaconInterval - beacon interval reduced
  402. * @Min: 0
  403. * @Max: 100
  404. * @Default: 0
  405. *
  406. * This ini is used to reduce beacon interval before channel
  407. * switch (when val great than 0, or the feature is disabled).
  408. * It would reduce the downtime on the STA side which is
  409. * waiting for beacons from the AP to resume back transmission.
  410. * Switch back the beacon_interval to its original value after
  411. * channel switch based on the timeout.
  412. *
  413. * Related: none
  414. *
  415. * Usage: External
  416. *
  417. * </ini>
  418. */
  419. #define CFG_REDUCED_BEACON_INTERVAL CFG_INI_UINT( \
  420. "gReducedBeaconInterval", \
  421. 0, \
  422. 100, \
  423. 0, \
  424. CFG_VALUE_OR_DEFAULT, \
  425. "reduced beacon interval")
  426. /*
  427. * <ini>
  428. * gCountryCodePriority - Priority to set country code
  429. * @Min: 0
  430. * @Max: 1
  431. * @Default: 1
  432. *
  433. * This ini is used to set default gCountryCodePriority
  434. *
  435. * Related: None
  436. *
  437. * Supported Feature: SAP
  438. *
  439. * Usage: Internal
  440. *
  441. * </ini>
  442. */
  443. #define CFG_COUNTRY_CODE_PRIORITY CFG_INI_BOOL( \
  444. "gCountryCodePriority", \
  445. 1, \
  446. "Country code priority")
  447. /*
  448. * <ini>
  449. * gSapPreferredChanLocation - Restrict channel switches between ondoor and
  450. * outdoor.
  451. * @Min: 0
  452. * @Max: 2
  453. * @Default: 0
  454. *
  455. * This ini is used for restricting channel switches between Indoor and outdoor
  456. * channels after radar detection.
  457. * 0- No preferred channel location
  458. * 1- Use indoor channels only
  459. * 2- Use outdoor channels only
  460. * Related: NA.
  461. *
  462. * Supported Feature: DFS
  463. *
  464. * Usage: Internal/External
  465. *
  466. * </ini>
  467. */
  468. #define CFG_SAP_PREF_CHANNEL_LOCATION CFG_INI_UINT( \
  469. "gSapPreferredChanLocation", \
  470. 0, \
  471. 2, \
  472. 0, \
  473. CFG_VALUE_OR_DEFAULT, \
  474. "Sap preferred channel location")
  475. /*
  476. * <ini>
  477. * gSapForce11NFor11AC - Restrict SAP to 11n if set 1 even though
  478. * hostapd.conf request for 11ac.
  479. * @Min: 0
  480. * @Max: 1
  481. * @Default: 0
  482. *
  483. * Restrict SAP to 11n if set 1 even though hostapd.conf request for 11ac.
  484. *
  485. * 0- Do not force 11n for 11ac.
  486. * 1- Force 11n for 11ac.
  487. *
  488. * Supported Feature: SAP
  489. *
  490. * Usage: Internal/External
  491. *
  492. * </ini>
  493. */
  494. #define CFG_SAP_FORCE_11N_FOR_11AC CFG_INI_BOOL( \
  495. "gSapForce11NFor11AC", \
  496. 0, \
  497. "Sap force 11n for 11ac")
  498. /*
  499. * <ini>
  500. * gGoForce11NFor11AC - Restrict GO to 11n if set 1 even though
  501. * hostapd.conf request for 11ac.
  502. * @Min: 0
  503. * @Max: 1
  504. * @Default: 0
  505. *
  506. * Restrict GO to 11n if set 1 even though hostapd.conf request for 11ac.
  507. *
  508. * 0- Do not force 11n for 11ac.
  509. * 1- Force 11n for 11ac.
  510. *
  511. * Supported Feature: GO
  512. *
  513. * Usage: Internal/External
  514. *
  515. * </ini>
  516. */
  517. #define CFG_GO_FORCE_11N_FOR_11AC CFG_INI_BOOL( \
  518. "gGoForce11NFor11AC", \
  519. 0, \
  520. "GO force 11n for 11ac")
  521. /*
  522. * <ini>
  523. * gEnableApRandomBssid - Create ramdom BSSID
  524. * @Min: 0
  525. * @Max: 1
  526. * @Default: 0
  527. *
  528. * This ini is used to create a random BSSID in SoftAP mode to meet
  529. * the Android requirement.
  530. *
  531. * Related: None.
  532. *
  533. * Supported Feature: SAP
  534. *
  535. * Usage: Internal/External
  536. *
  537. * </ini>
  538. */
  539. #define CFG_AP_ENABLE_RANDOM_BSSID CFG_INI_BOOL( \
  540. "gEnableApRandomBssid", \
  541. 0, \
  542. "Create ramdom BSSID")
  543. /*
  544. * <ini>
  545. * gSapChannelAvoidance - SAP MCC channel avoidance.
  546. * @Min: 0
  547. * @Max: 1
  548. * @Default: 0
  549. *
  550. * This ini is used to sets sap mcc channel avoidance.
  551. *
  552. * Related: None.
  553. *
  554. * Supported Feature: Concurrency
  555. *
  556. * Usage: Internal/External
  557. *
  558. * </ini>
  559. */
  560. #define CFG_SAP_MCC_CHANNEL_AVOIDANCE CFG_INI_UINT( \
  561. "gSapChannelAvoidance", \
  562. 0, \
  563. 1, \
  564. 0, \
  565. CFG_VALUE_OR_DEFAULT, \
  566. "SAP MCC channel avoidance")
  567. /*
  568. * <ini>
  569. * gSAP11ACOverride - Override bw to 11ac for SAP in driver even if supplicant
  570. * or hostapd configures HT.
  571. * @Min: 0
  572. * @Max: 1
  573. * @Default: 0
  574. *
  575. * This ini is used to enable/disable 11AC override for SAP.
  576. * Android UI does not provide advanced configuration options
  577. * for SoftAP for Android O and below.
  578. * Default override disabled for android. Can be enabled from
  579. * ini for Android O and below.
  580. *
  581. *
  582. * Supported Feature: SAP
  583. *
  584. *
  585. * Usage: Internal/External
  586. *
  587. * </ini>
  588. */
  589. #define CFG_SAP_11AC_OVERRIDE CFG_INI_BOOL( \
  590. "gSAP11ACOverride", \
  591. 0, \
  592. "Override bw to 11ac for SAP")
  593. /*
  594. * <ini>
  595. * gGO11ACOverride - Override bw to 11ac for P2P GO
  596. * @Min: 0
  597. * @Max: 1
  598. * @Default: 1
  599. *
  600. * This ini is used to enable/disable 11AC override for GO.
  601. * P2P GO also follows start_bss and since P2P GO could not be
  602. * configured to setup VHT channel width in wpa_supplicant, driver
  603. * can override 11AC.
  604. *
  605. *
  606. * Supported Feature: P2P
  607. *
  608. *
  609. * Usage: Internal/External
  610. *
  611. * </ini>
  612. */
  613. #define CFG_GO_11AC_OVERRIDE CFG_INI_BOOL( \
  614. "gGO11ACOverride", \
  615. 1, \
  616. "Override bw to 11ac for P2P GO")
  617. /*
  618. *
  619. * <ini>
  620. * enable_bcast_deauth_for_sap - Enable/Disable broadcast deauth support
  621. * in driver for SAP
  622. * @Min: 0
  623. * @Max: 1
  624. * @Default: 0
  625. *
  626. * This ini is used to enable/disable broadcast deauth support in driver
  627. * for sap mode.
  628. *
  629. * Related: None
  630. *
  631. * Supported Feature: SAP
  632. * Usage: External
  633. *
  634. * </ini>
  635. */
  636. #define CFG_IS_SAP_BCAST_DEAUTH_ENABLED CFG_INI_BOOL( \
  637. "enable_bcast_deauth_for_sap", \
  638. 0, \
  639. "Enable/Disable bcast deauth for SAP")
  640. #ifdef WLAN_FEATURE_SAE
  641. /*
  642. *
  643. * <ini>
  644. * enable_sae_for_sap - Enable/Disable SAE support in driver for SAP
  645. * @Min: 0
  646. * @Max: 1
  647. * @Default: 1
  648. *
  649. * This ini is used to enable/disable SAE support in driver for SAP mode
  650. * Driver will process/drop the SAE authentication frames based on this config.
  651. *
  652. * Related: None
  653. *
  654. * Supported Feature: SAE
  655. * Usage: External
  656. *
  657. * </ini>
  658. */
  659. #define CFG_IS_SAP_SAE_ENABLED CFG_INI_BOOL( \
  660. "enable_sae_for_sap", \
  661. 1, \
  662. "Enable/Disable SAE support for SAP")
  663. #define CFG_SAP_SAE CFG(CFG_IS_SAP_SAE_ENABLED)
  664. #else
  665. #define CFG_SAP_SAE
  666. #endif /* WLAN_FEATURE_SAE */
  667. /*
  668. *
  669. * <ini>
  670. * enable_sap_fils_discovery - Enable/Disable fils discovery for 6Ghz SAP
  671. * @Min: 0
  672. * @Max: 1
  673. * @Default: 1
  674. *
  675. * Enable: 6Ghz SAP transmits fils discovery frame at every 20ms
  676. * Disable: 6Ghz SAP transmits probe response frame at every 20ms
  677. *
  678. * Related: None
  679. *
  680. * Supported Feature: SAP
  681. * Usage: External
  682. *
  683. * </ini>
  684. */
  685. #define CFG_6G_SAP_FILS_DISCOVERY_ENABLED CFG_INI_BOOL( \
  686. "enable_6g_sap_fils_discovery", \
  687. 1, \
  688. "Enable/Disable fils discovery for SAP")
  689. /*
  690. * <ini>
  691. * disable_mcs13_support - Disable mcs13 support.
  692. * @Min: 0
  693. * @Max: 1
  694. * @Default: 0
  695. *
  696. * This ini is used to disable mcs13 if SAP works on 80p80MHZ/160MHZ/320MHZ
  697. * and he_mcs_12_13_support enabled.
  698. *
  699. * Related: he_mcs_12_13_support
  700. *
  701. * Supported Feature: Concurrency
  702. *
  703. * Usage: Internal
  704. *
  705. * </ini>
  706. */
  707. #define CFG_DISABLE_MCS13_SUPPORT CFG_INI_BOOL( \
  708. "disable_mcs13_support", \
  709. 0, \
  710. "disable mcs13 support")
  711. /*
  712. * <ini>
  713. * disable_sap_bcn_prot - Disable beacon protection for SAP
  714. * @Min: 0
  715. * @Max: 1
  716. * @Default: 0
  717. *
  718. * This ini is used to disable beacon protection in SAP only
  719. * for non-6 GHz or non-11be cases where BP is not mandatory.
  720. *
  721. * Related: None
  722. *
  723. * Supported Feature: SAP
  724. *
  725. * Usage: External
  726. *
  727. * </ini>
  728. */
  729. #define CFG_DISABLE_SAP_BCN_PROT CFG_INI_BOOL(\
  730. "disable_sap_bcn_prot", \
  731. false, \
  732. "Disable beacon protection for SAP")
  733. /*
  734. * <ini>
  735. * g_sap_ps_with_twt_enable - enable/disable power save between successive TWT
  736. * SPs for SAP
  737. * @Min: 0
  738. * @Max: 1
  739. * @Default: 0
  740. *
  741. * This ini is used to enable/disable power save between successive
  742. * TWT SPs for SAP
  743. *
  744. * Related: None
  745. *
  746. * Supported Feature: SAP
  747. *
  748. * Usage: External
  749. *
  750. * </ini>
  751. */
  752. #define CFG_SAP_PS_WITH_TWT CFG_INI_BOOL(\
  753. "g_sap_ps_with_twt_enable", \
  754. false, \
  755. "Enable/Disable SAP power save with twt")
  756. #define CFG_SAP_ALL \
  757. CFG_SAP_SAE \
  758. CFG(CFG_AP_ENABLE_RANDOM_BSSID) \
  759. CFG(CFG_BEACON_INTERVAL) \
  760. CFG(CFG_DTIM_PERIOD) \
  761. CFG(CFG_LISTEN_INTERVAL) \
  762. CFG(CFG_11G_ONLY_POLICY) \
  763. CFG(CFG_ASSOC_STA_LIMIT) \
  764. CFG(CFG_ENABLE_LTE_COEX) \
  765. CFG(CFG_RATE_FOR_TX_MGMT) \
  766. CFG(CFG_RATE_FOR_TX_MGMT_2G) \
  767. CFG(CFG_RATE_FOR_TX_MGMT_5G) \
  768. CFG(CFG_TELE_BCN_WAKEUP_EN) \
  769. CFG(CFG_TELE_BCN_MAX_LI) \
  770. CFG(CFG_SAP_MCC_CHANNEL_AVOIDANCE) \
  771. CFG(CFG_SAP_GET_PEER_INFO) \
  772. CFG(CFG_SAP_ALLOW_ALL_CHANNEL_PARAM) \
  773. CFG(CFG_SAP_MAX_NO_PEERS) \
  774. CFG(CFG_SAP_MAX_OFFLOAD_PEERS) \
  775. CFG(CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS) \
  776. CFG(CFG_SAP_CH_SWITCH_BEACON_CNT) \
  777. CFG(CFG_SAP_CH_SWITCH_MODE) \
  778. CFG(CFG_SAP_INTERNAL_RESTART) \
  779. CFG(CFG_CHAN_SWITCH_HOSTAPD_RATE_ENABLED_NAME) \
  780. CFG(CFG_REDUCED_BEACON_INTERVAL) \
  781. CFG(CFG_MAX_LI_MODULATED_DTIM) \
  782. CFG(CFG_COUNTRY_CODE_PRIORITY) \
  783. CFG(CFG_SAP_PREF_CHANNEL_LOCATION) \
  784. CFG(CFG_SAP_FORCE_11N_FOR_11AC) \
  785. CFG(CFG_SAP_11AC_OVERRIDE) \
  786. CFG(CFG_GO_FORCE_11N_FOR_11AC) \
  787. CFG(CFG_GO_11AC_OVERRIDE) \
  788. CFG(CFG_IS_SAP_BCAST_DEAUTH_ENABLED) \
  789. CFG(CFG_6G_SAP_FILS_DISCOVERY_ENABLED) \
  790. CFG(CFG_DISABLE_MCS13_SUPPORT) \
  791. CFG(CFG_DISABLE_SAP_BCN_PROT) \
  792. CFG(CFG_SAP_PS_WITH_TWT)
  793. #endif /* __CFG_MLME_SAP_H */