cfg_mlme_reg.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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. * etsi13_srd_chan_in_master_mode - Enable/disable ETSI SRD channels in
  53. * master mode PCL and ACS functionality
  54. * @Min: 0
  55. * @Max: 1
  56. * @Default: 0
  57. *
  58. * etsi13_srd_chan_in_master_mode is to enable/disable ETSI SRD channels in
  59. * master mode PCL and ACS functionality
  60. *
  61. * Related: None
  62. *
  63. * Supported Feature: SAP/P2P-GO
  64. *
  65. * Usage: Internal/External
  66. *
  67. * </ini>
  68. */
  69. #define CFG_ETSI13_SRD_CHAN_IN_MASTER_MODE CFG_INI_BOOL( \
  70. "etsi13_srd_chan_in_master_mode", \
  71. 0, \
  72. "enable/disable ETSI SRD channels in master mode")
  73. /*
  74. * <ini>
  75. * restart_beaconing_on_chan_avoid_event - control the beaconing entity to move
  76. * away from active LTE channels
  77. * @Min: 0
  78. * @Max: 2
  79. * @Default: 1
  80. *
  81. * This ini is used to control the beaconing entity (SAP/GO) to move away from
  82. * active LTE channels when channel avoidance event is received
  83. * restart_beaconing_on_chan_avoid_event=0: Don't allow beaconing entity move
  84. * from active LTE channels
  85. * restart_beaconing_on_chan_avoid_event=1: Allow beaconing entity move from
  86. * active LTE channels
  87. * restart_beaconing_on_chan_avoid_event=2: Allow beaconing entity move from
  88. * 2.4G active LTE channels only
  89. *
  90. * Related: None
  91. *
  92. * Supported Feature: channel avoidance
  93. *
  94. * Usage: Internal/External
  95. *
  96. * </ini>
  97. */
  98. #define CFG_RESTART_BEACONING_ON_CH_AVOID CFG_INI_UINT( \
  99. "restart_beaconing_on_chan_avoid_event", \
  100. 0, \
  101. 2, \
  102. 1, \
  103. CFG_VALUE_OR_DEFAULT, \
  104. "control the beaconing entity to move away from active LTE channels")
  105. /*
  106. * <ini>
  107. * gindoor_channel_support - support to start sap in indoor channel
  108. * @Min: 0
  109. * @Max: 1
  110. * @Default: 0
  111. *
  112. * This ini is to support to start sap in indoor channel.
  113. * Customer can config this item to enable/disable sap in indoor channel
  114. *
  115. * Related: None
  116. *
  117. * Supported Feature: SAP
  118. *
  119. * Usage: External
  120. *
  121. * </ini>
  122. */
  123. #define CFG_INDOOR_CHANNEL_SUPPORT CFG_INI_BOOL( \
  124. "gindoor_channel_support", \
  125. 0, \
  126. "enable/disable sap in indoor channel")
  127. /*
  128. * <ini>
  129. * scan_11d_interval - 11d scan interval in ms
  130. * @Min: 1 sec
  131. * @Max: 10 hr
  132. * @Default: 1 hr
  133. *
  134. * This ini sets the 11d scan interval in FW
  135. *
  136. * Related: None
  137. *
  138. * Supported Feature: STA
  139. *
  140. * Usage: External
  141. *
  142. * </ini>
  143. */
  144. #define CFG_SCAN_11D_INTERVAL CFG_INI_UINT( \
  145. "scan_11d_interval", \
  146. 1000, \
  147. 36000000, \
  148. 3600000, \
  149. CFG_VALUE_OR_DEFAULT, \
  150. "set the 11d scan interval in FW")
  151. /*
  152. * valid_chan_list - Configure valid channel list
  153. * @Min: 0
  154. * @Max: 256
  155. * @Default: 64
  156. *
  157. * This ini is used to configure the data max number of pre-auth
  158. *
  159. * Usage: Internal
  160. *
  161. */
  162. #define CFG_VALID_CHANNEL_LIST CFG_INI_STRING( \
  163. "valid_chan_list", \
  164. 0, \
  165. CFG_VALID_CHANNEL_LIST_STRING_LEN, \
  166. VALID_CHANNEL_LIST_DEFAULT, \
  167. "valid channel list")
  168. /*
  169. * max_num_pre_auth - Configure max number of pre-auth
  170. * @Min: 0
  171. * @Max: 256
  172. * @Default: 64
  173. *
  174. * This ini is used to configure the data max number of pre-auth
  175. *
  176. * Usage: Internal
  177. *
  178. */
  179. #define CFG_COUNTRY_CODE CFG_INI_STRING( \
  180. "country_code", \
  181. 0, \
  182. CFG_COUNTRY_CODE_LEN, \
  183. "", \
  184. "country code")
  185. #define CFG_REG_ALL \
  186. CFG(CFG_SELF_GEN_FRM_PWR) \
  187. CFG(CFG_ETSI13_SRD_CHAN_IN_MASTER_MODE) \
  188. CFG(CFG_RESTART_BEACONING_ON_CH_AVOID) \
  189. CFG(CFG_INDOOR_CHANNEL_SUPPORT) \
  190. CFG(CFG_SCAN_11D_INTERVAL) \
  191. CFG(CFG_VALID_CHANNEL_LIST) \
  192. CFG(CFG_COUNTRY_CODE)
  193. #endif /* CFG_MLME_REG_H__ */