cfg_mlme_sap.h 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  1. /*
  2. * Copyright (c) 2012-2018 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 CFG_SSID CFG_STRING( \
  24. "cfg_ssid", \
  25. 0, \
  26. 32, \
  27. "1,2,3,4,5,6,7,8,9,0", \
  28. "CFG_SSID")
  29. #define CFG_BEACON_INTERVAL CFG_INI_UINT( \
  30. "gBeaconInterval", \
  31. 0, \
  32. 65535, \
  33. 100, \
  34. CFG_VALUE_OR_DEFAULT, \
  35. "CFG_BEACON_INTERVAL")
  36. #define CFG_DTIM_PERIOD CFG_UINT( \
  37. "cfg_dtim_period", \
  38. 0, \
  39. 65535, \
  40. 1, \
  41. CFG_VALUE_OR_DEFAULT, \
  42. "CFG_DTIM_PERIOD")
  43. #define CFG_LISTEN_INTERVAL CFG_UINT( \
  44. "cfg_listen_interval", \
  45. 0, \
  46. 65535, \
  47. 1, \
  48. CFG_VALUE_OR_DEFAULT, \
  49. "CFG_LISTEN_INTERVAL")
  50. #define CFG_11G_ONLY_POLICY CFG_UINT( \
  51. "cfg_11g_only_policy", \
  52. 0, \
  53. 1, \
  54. 0, \
  55. CFG_VALUE_OR_DEFAULT, \
  56. "CFG_11G_ONLY_POLICY")
  57. #define CFG_ASSOC_STA_LIMIT CFG_UINT( \
  58. "cfg_beacon_interval", \
  59. 1, \
  60. 32, \
  61. 10, \
  62. CFG_VALUE_OR_DEFAULT, \
  63. "CFG_ASSOC_STA_LIMIT")
  64. /*
  65. * <ini>
  66. * cfg_enable_lte_coex - enable LTE COEX
  67. * @Min: 0
  68. * @Max: 1
  69. * @Default: 0
  70. *
  71. * This ini is used to enable LTE COEX
  72. *
  73. * Related: None
  74. *
  75. * Supported Feature: STA
  76. *
  77. * Usage: Internal/External
  78. *
  79. * </ini>
  80. */
  81. #define CFG_ENABLE_LTE_COEX CFG_INI_BOOL( \
  82. "gEnableLTECoex", \
  83. 0, \
  84. "enabled lte coex")
  85. #define CFG_RMC_ACTION_PERIOD_FREQUENCY CFG_UINT( \
  86. "cfg_rcm_action_period_frequency", \
  87. 100, \
  88. 1000, \
  89. 300, \
  90. CFG_VALUE_OR_DEFAULT, \
  91. "CFG_RMC_ACTION_PERIOD_FREQUENCY")
  92. /*
  93. * <ini>
  94. * cfg_rate_for_tx_mgmt - Set rate for tx mgmt
  95. * @Min: 0
  96. * @Max: 0xFF
  97. * @Default: 0xFF
  98. *
  99. * This ini is used to set rate for tx mgmt
  100. *
  101. * Related: None
  102. *
  103. * Supported Feature: STA
  104. *
  105. * Usage: Internal/External
  106. *
  107. * </ini>
  108. */
  109. #define CFG_RATE_FOR_TX_MGMT CFG_INI_UINT( \
  110. "gRateForTxMgmt", \
  111. 0, \
  112. 0xFF, \
  113. 0xFF, \
  114. CFG_VALUE_OR_DEFAULT, \
  115. "set rate for mgmt tx")
  116. /*
  117. * <ini>
  118. * cfg_rate_for_tx_mgmt_2g - Set rate for tx mgmt 2g
  119. * @Min: 0
  120. * @Max: 255
  121. * @Default: 255
  122. *
  123. * This ini is used to set rate for tx mgmt 2g
  124. * Related: None
  125. *
  126. * Supported Feature: STA
  127. *
  128. * Usage: Internal/External
  129. *
  130. * </ini>
  131. */
  132. #define CFG_RATE_FOR_TX_MGMT_2G CFG_INI_UINT( \
  133. "gRateForTxMgmt2G", \
  134. 0, \
  135. 255, \
  136. 255, \
  137. CFG_VALUE_OR_DEFAULT, \
  138. "set rate for mgmt tx 2g")
  139. /*
  140. * <ini>
  141. * cfg_rate_for_tx_mgmt_5g - Set rate for tx mgmt 5g
  142. * @Min: 0
  143. * @Max: 255
  144. * @Default: 255
  145. *
  146. * This ini is used to set rate for tx mgmt 5g
  147. *
  148. * Related: None
  149. *
  150. * Supported Feature: STA
  151. *
  152. * Usage: Internal/External
  153. *
  154. * </ini>
  155. */
  156. #define CFG_RATE_FOR_TX_MGMT_5G CFG_INI_UINT( \
  157. "gRateForTxMgmt5G", \
  158. 0, \
  159. 255, \
  160. 255, \
  161. CFG_VALUE_OR_DEFAULT, \
  162. "set rate for mgmt tx 5g")
  163. /*
  164. * <ini>
  165. * gTelescopicBeaconWakeupEn - Set teles copic beacon wakeup
  166. * @Min: 0
  167. * @Max: 1
  168. * @Default: 0
  169. *
  170. * This ini is used to set default teles copic beacon wakeup
  171. *
  172. * Related: None
  173. *
  174. * Supported Feature: STA
  175. *
  176. * Usage: Internal/External
  177. *
  178. * </ini>
  179. */
  180. #define CFG_TELE_BCN_WAKEUP_EN CFG_INI_BOOL( \
  181. "gTelescopicBeaconWakeupEn", \
  182. 0, \
  183. "set tescopic beacon wakeup")
  184. /*
  185. * <ini>
  186. * telescopicBeaconMaxListenInterval - Set teles scopic beacon max listen value
  187. * @Min: 0
  188. * @Max: 7
  189. * @Default: 5
  190. *
  191. * This ini is used to set teles scopic beacon max listen interval value
  192. *
  193. * Related: None
  194. *
  195. * Supported Feature: STA
  196. *
  197. * Usage: Internal/External
  198. *
  199. * </ini>
  200. */
  201. #define CFG_TELE_BCN_MAX_LI CFG_INI_UINT( \
  202. "telescopicBeaconMaxListenInterval", \
  203. 0, \
  204. 7, \
  205. 5, \
  206. CFG_VALUE_OR_DEFAULT, \
  207. "set telescopic beacon max listen")
  208. /*
  209. * <ini>
  210. * gSapGetPeerInfo - Enable/Disable remote peer info query support
  211. * @Min: 0 - Disable remote peer info query support
  212. * @Max: 1 - Enable remote peer info query support
  213. * @Default: 0
  214. *
  215. * This ini is used to enable/disable remote peer info query support
  216. *
  217. * Usage: External
  218. *
  219. * </ini>
  220. */
  221. #define CFG_SAP_GET_PEER_INFO CFG_INI_BOOL( \
  222. "gSapGetPeerInfo", \
  223. 0, \
  224. "sap get peer info")
  225. /*
  226. * <ini>
  227. * gSapAllowAllChannel - Sap allow all channels
  228. * @Min: 0
  229. * @Max: 1
  230. * @Default: 0
  231. *
  232. * This ini is used to allow all channels for SAP
  233. *
  234. * Related: None
  235. *
  236. * Supported Feature: SAP
  237. *
  238. * Usage: Internal/External
  239. *
  240. * </ini>
  241. */
  242. #define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM CFG_INI_BOOL( \
  243. "gSapAllowAllChannel", \
  244. 0, \
  245. "sap allow all channel params")
  246. /*
  247. * <ini>
  248. * gSoftApMaxPeers - Set Max peers connected for SAP
  249. * @Min: 1
  250. * @Max: 32
  251. * @Default: 32
  252. *
  253. * This ini is used to set Max peers connected for SAP
  254. *
  255. * Related: None
  256. *
  257. * Supported Feature: SAP
  258. *
  259. * Usage: Internal/External
  260. *
  261. * </ini>
  262. */
  263. #define CFG_SAP_MAX_NO_PEERS CFG_INI_UINT( \
  264. "gSoftApMaxPeers", \
  265. 1, \
  266. 32, \
  267. 32, \
  268. CFG_VALUE_OR_DEFAULT, \
  269. "max no of peers")
  270. /*
  271. * <ini>
  272. * gMaxOffloadPeers - Set max offload peers
  273. * @Min: 2
  274. * @Max: 5
  275. * @Default: 2
  276. *
  277. * This ini is used to set default teles copic beacon wakeup
  278. *
  279. * Related: None
  280. *
  281. * Supported Feature: STA
  282. *
  283. * Usage: Internal/External
  284. *
  285. * </ini>
  286. */
  287. #define CFG_SAP_MAX_OFFLOAD_PEERS CFG_INI_UINT( \
  288. "gMaxOffloadPeers", \
  289. 2, \
  290. 5, \
  291. 2, \
  292. CFG_VALUE_OR_DEFAULT, \
  293. "max offload peers")
  294. /*
  295. * <ini>
  296. * gMaxOffloadReorderBuffs - Set max offload reorder buffs
  297. * @Min: 0
  298. * @Max: 3
  299. * @Default: 2
  300. *
  301. * This ini is used to set max offload reorder buffs
  302. *
  303. * Related: None
  304. *
  305. * Supported Feature: STA
  306. *
  307. * Usage: Internal/External
  308. *
  309. * </ini>
  310. */
  311. #define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS CFG_INI_UINT( \
  312. "gMaxOffloadReorderBuffs", \
  313. 0, \
  314. 3, \
  315. 2, \
  316. CFG_VALUE_OR_DEFAULT, \
  317. "sap max offload reorder buffs")
  318. /*
  319. * <ini>
  320. * g_sap_chanswitch_beacon_cnt - Set channel switch beacon count
  321. * @Min: 1
  322. * @Max: 10
  323. * @Default: 10
  324. *
  325. * This ini is used to set channel switch beacon count
  326. *
  327. * Related: None
  328. *
  329. * Supported Feature: STA
  330. *
  331. * Usage: Internal/External
  332. *
  333. * </ini>
  334. */
  335. #define CFG_SAP_CH_SWITCH_BEACON_CNT CFG_INI_UINT( \
  336. "g_sap_chanswitch_beacon_cnt", \
  337. 1, \
  338. 10, \
  339. 10, \
  340. CFG_VALUE_OR_DEFAULT, \
  341. "set channel switch beacon count")
  342. /*
  343. * <ini>
  344. * g_sap_chanswitch_mode - channel switch mode
  345. * @Min: 0
  346. * @Max: 1
  347. * @Default: 1
  348. *
  349. * This ini is used to configure channel switch mode
  350. *
  351. * Related: none
  352. *
  353. * Usage: External
  354. *
  355. * </ini>
  356. */
  357. #define CFG_SAP_CH_SWITCH_MODE CFG_INI_BOOL( \
  358. "g_sap_chanswitch_mode", \
  359. 1, \
  360. "sap channel switch mode")
  361. /*
  362. * <ini>
  363. * gEnableSapInternalRestart - Sap internal restart name
  364. * @Min: 0
  365. * @Max: 1
  366. * @Default: 1
  367. *
  368. * This ini is used for sap internal restart name
  369. *
  370. * Related: None
  371. *
  372. * Supported Feature: SAP
  373. *
  374. * Usage: Internal/External
  375. *
  376. * </ini>
  377. */
  378. #define CFG_SAP_INTERNAL_RESTART CFG_INI_BOOL( \
  379. "gEnableSapInternalRestart", \
  380. 1, \
  381. "sap internal restart")
  382. /*
  383. * <ini>
  384. * gChanSwitchHostapdRateEnabled - Enable channale switch hostapd rate
  385. * @Min: 0
  386. * @Max: 1
  387. * @Default: 0
  388. *
  389. * This ini is used to enable channale switch hostapd rate
  390. *
  391. * Related: None
  392. *
  393. * Supported Feature: SAP
  394. *
  395. * Usage: Internal/External
  396. *
  397. * </ini>
  398. */
  399. #define CFG_CHAN_SWITCH_HOSTAPD_RATE_ENABLED_NAME CFG_INI_BOOL( \
  400. "gChanSwitchHostapdRateEnabled", \
  401. 0, \
  402. "chan switch hostapd rate enabled")
  403. /*
  404. * gReducedBeaconInterval - beacon interval reduced
  405. * @Min: 0
  406. * @Max: 100
  407. * @Default: 0
  408. *
  409. * This ini is used to reduce beacon interval before channel
  410. * switch (when val great than 0, or the feature is disabled).
  411. * It would reduce the downtime on the STA side which is
  412. * waiting for beacons from the AP to resume back transmission.
  413. * Switch back the beacon_interval to its original value after
  414. * channel switch based on the timeout.
  415. *
  416. * Related: none
  417. *
  418. * Usage: External
  419. *
  420. * </ini>
  421. */
  422. #define CFG_REDUCED_BEACON_INTERVAL CFG_INI_UINT( \
  423. "gReducedBeaconInterval", \
  424. 0, \
  425. 100, \
  426. 0, \
  427. CFG_VALUE_OR_DEFAULT, \
  428. "reduced beacon interval")
  429. #define CFG_SAP_ALL \
  430. CFG(CFG_SSID) \
  431. CFG(CFG_BEACON_INTERVAL) \
  432. CFG(CFG_DTIM_PERIOD) \
  433. CFG(CFG_LISTEN_INTERVAL) \
  434. CFG(CFG_11G_ONLY_POLICY) \
  435. CFG(CFG_ASSOC_STA_LIMIT) \
  436. CFG(CFG_ENABLE_LTE_COEX) \
  437. CFG(CFG_RMC_ACTION_PERIOD_FREQUENCY) \
  438. CFG(CFG_RATE_FOR_TX_MGMT) \
  439. CFG(CFG_RATE_FOR_TX_MGMT_2G) \
  440. CFG(CFG_RATE_FOR_TX_MGMT_5G) \
  441. CFG(CFG_TELE_BCN_WAKEUP_EN) \
  442. CFG(CFG_TELE_BCN_MAX_LI) \
  443. CFG(CFG_SAP_GET_PEER_INFO) \
  444. CFG(CFG_SAP_ALLOW_ALL_CHANNEL_PARAM) \
  445. CFG(CFG_SAP_MAX_NO_PEERS) \
  446. CFG(CFG_SAP_MAX_OFFLOAD_PEERS) \
  447. CFG(CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS) \
  448. CFG(CFG_SAP_CH_SWITCH_BEACON_CNT) \
  449. CFG(CFG_SAP_CH_SWITCH_MODE) \
  450. CFG(CFG_SAP_INTERNAL_RESTART) \
  451. CFG(CFG_CHAN_SWITCH_HOSTAPD_RATE_ENABLED_NAME) \
  452. CFG(CFG_REDUCED_BEACON_INTERVAL)
  453. #endif /* __CFG_MLME_SAP_H */