cfg_mlme_reg.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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 configuration definitions for MLME REG.
  20. */
  21. #ifndef CFG_MLME_REG_H__
  22. #define CFG_MLME_REG_H__
  23. #define VALID_CHANNEL_LIST_DEFAULT "36, 40, 44, 48, 52, 56, 60, 64, 1, 6, 11, 34, 38, 42, 46, 2, 3, 4, 5, 7, 8, 9, 10, 12, 13, 14, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 151, 153, 155, 157, 159, 161, 50, 54, 58, 62, 240, 242, 244, 246, 248, 250, 252"
  24. /*
  25. * <ini>
  26. * gSelfGenFrmPwr - self-generated frame power in tx chain mask
  27. * for CCK rates
  28. * @Min: 0
  29. * @Max: 0xffff
  30. * @Default: 0
  31. *
  32. * gSelfGenFrmPwr is to set self-generated frame power in tx chain mask
  33. * for CCK rates
  34. *
  35. * Related: None
  36. *
  37. * Supported Feature: STA
  38. *
  39. * Usage: Internal/External
  40. *
  41. * </ini>
  42. */
  43. #define CFG_SELF_GEN_FRM_PWR CFG_INI_UINT( \
  44. "gSelfGenFrmPwr", \
  45. 0, \
  46. 0xffff, \
  47. 0, \
  48. CFG_VALUE_OR_DEFAULT, \
  49. "set the self gen power value")
  50. /*
  51. * <ini>
  52. * enable_11d_in_world_mode - enable 11d in world mode
  53. * @Min: 0
  54. * @Max: 1
  55. * @Default: 0
  56. *
  57. * This ini enables 11d in world mode, irrespective of value of
  58. * g11dSupportEnabled
  59. *
  60. * Usage: External
  61. *
  62. * </ini>
  63. */
  64. #define CFG_ENABLE_11D_IN_WORLD_MODE CFG_INI_BOOL( \
  65. "enable_11d_in_world_mode", \
  66. 0, \
  67. "enable 11d in world mode")
  68. /*
  69. * <ini>
  70. * etsi13_srd_chan_in_master_mode - Enable/disable ETSI SRD channels in
  71. * master mode PCL and ACS functionality
  72. * @Min: 0
  73. * @Max: 1
  74. * @Default: 0
  75. *
  76. * etsi13_srd_chan_in_master_mode is to enable/disable ETSI SRD channels in
  77. * master mode PCL and ACS functionality
  78. *
  79. * Related: None
  80. *
  81. * Supported Feature: SAP/P2P-GO
  82. *
  83. * Usage: Internal/External
  84. *
  85. * </ini>
  86. */
  87. #define CFG_ETSI13_SRD_CHAN_IN_MASTER_MODE CFG_INI_BOOL( \
  88. "etsi13_srd_chan_in_master_mode", \
  89. 0, \
  90. "enable/disable ETSI SRD channels in master mode")
  91. /*
  92. * <ini>
  93. * restart_beaconing_on_chan_avoid_event - control the beaconing entity to move
  94. * away from active LTE channels
  95. * @Min: 0
  96. * @Max: 2
  97. * @Default: 1
  98. *
  99. * This ini is used to control the beaconing entity (SAP/GO) to move away from
  100. * active LTE channels when channel avoidance event is received
  101. * restart_beaconing_on_chan_avoid_event=0: Don't allow beaconing entity move
  102. * from active LTE channels
  103. * restart_beaconing_on_chan_avoid_event=1: Allow beaconing entity move from
  104. * active LTE channels
  105. * restart_beaconing_on_chan_avoid_event=2: Allow beaconing entity move from
  106. * 2.4G active LTE channels only
  107. *
  108. * Related: None
  109. *
  110. * Supported Feature: channel avoidance
  111. *
  112. * Usage: Internal/External
  113. *
  114. * </ini>
  115. */
  116. #define CFG_RESTART_BEACONING_ON_CH_AVOID CFG_INI_UINT( \
  117. "restart_beaconing_on_chan_avoid_event", \
  118. 0, \
  119. 2, \
  120. 1, \
  121. CFG_VALUE_OR_DEFAULT, \
  122. "control the beaconing entity to move away from active LTE channels")
  123. /*
  124. * <ini>
  125. * gindoor_channel_support - support to start sap in indoor channel
  126. * @Min: 0
  127. * @Max: 1
  128. * @Default: 0
  129. *
  130. * This ini is to support to start sap in indoor channel.
  131. * Customer can config this item to enable/disable sap in indoor channel
  132. *
  133. * Related: None
  134. *
  135. * Supported Feature: SAP
  136. *
  137. * Usage: External
  138. *
  139. * </ini>
  140. */
  141. #define CFG_INDOOR_CHANNEL_SUPPORT CFG_INI_BOOL( \
  142. "gindoor_channel_support", \
  143. 0, \
  144. "enable/disable sap in indoor channel")
  145. /*
  146. * <ini>
  147. * scan_11d_interval - 11d scan interval in ms
  148. * @Min: 1 sec
  149. * @Max: 10 hr
  150. * @Default: 1 hr
  151. *
  152. * This ini sets the 11d scan interval in FW
  153. *
  154. * Related: None
  155. *
  156. * Supported Feature: STA
  157. *
  158. * Usage: External
  159. *
  160. * </ini>
  161. */
  162. #define CFG_SCAN_11D_INTERVAL CFG_INI_UINT( \
  163. "scan_11d_interval", \
  164. 1000, \
  165. 36000000, \
  166. 3600000, \
  167. CFG_VALUE_OR_DEFAULT, \
  168. "set the 11d scan interval in FW")
  169. /*
  170. * valid_chan_list - Configure valid channel list
  171. * @Default: VALID_CHANNEL_LIST_DEFAULT
  172. *
  173. * This ini is used to configure valid channel list
  174. *
  175. * Usage: Internal
  176. *
  177. */
  178. #define CFG_VALID_CHANNEL_LIST CFG_STRING( \
  179. "valid_chan_list", \
  180. 0, \
  181. CFG_VALID_CHANNEL_LIST_STRING_LEN, \
  182. VALID_CHANNEL_LIST_DEFAULT, \
  183. "valid channel list")
  184. /*
  185. * country_code - Set country code
  186. * @Default: NA
  187. *
  188. * This ini is used to set country code
  189. *
  190. * Usage: Internal
  191. *
  192. */
  193. #define CFG_COUNTRY_CODE CFG_STRING( \
  194. "country_code", \
  195. 0, \
  196. CFG_COUNTRY_CODE_LEN, \
  197. "", \
  198. "country code")
  199. #define CFG_REG_ALL \
  200. CFG(CFG_SELF_GEN_FRM_PWR) \
  201. CFG(CFG_ENABLE_11D_IN_WORLD_MODE) \
  202. CFG(CFG_ETSI13_SRD_CHAN_IN_MASTER_MODE) \
  203. CFG(CFG_RESTART_BEACONING_ON_CH_AVOID) \
  204. CFG(CFG_INDOOR_CHANNEL_SUPPORT) \
  205. CFG(CFG_SCAN_11D_INTERVAL) \
  206. CFG(CFG_VALID_CHANNEL_LIST) \
  207. CFG(CFG_COUNTRY_CODE)
  208. #endif /* CFG_MLME_REG_H__ */