cfg_mlme_sap.h 16 KB

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