cfg_mlme_sap.h 15 KB

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