cfg_mlme_reg.h 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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. #ifdef SAP_AVOID_ACS_FREQ_LIST
  92. #define SAP_AVOID_ACS_FREQ_LIST_DEFAULT ""
  93. /*
  94. * <ini>
  95. * sap_avoid_acs_freq_list - Avoid configured frequencies from acs
  96. * @Default: No frequencies are configured, it means consider all
  97. * the frequencies for acs
  98. *
  99. * This ini is to configure the frequencies which needs to be
  100. * avoided during acs and sap will not come up on these channels
  101. * Ex: sap_avoid_acs_freq_list=2412,2417,2422,2427,2467,2472
  102. *
  103. * Related: Feature flag SAP_AVOID_ACS_FREQ_LIST
  104. *
  105. * Supported Feature: SAP
  106. *
  107. * Usage: External
  108. *
  109. * </ini>
  110. */
  111. #define CFG_SAP_AVOID_ACS_FREQ_LIST CFG_INI_STRING( \
  112. "sap_avoid_acs_freq_list", \
  113. 0, \
  114. CFG_VALID_CHANNEL_LIST_STRING_LEN, \
  115. SAP_AVOID_ACS_FREQ_LIST_DEFAULT, \
  116. "Avoid configured frequencies during acs")
  117. #define CFG_SAP_AVOID_ACS_FREQ_LIST_ALL CFG(CFG_SAP_AVOID_ACS_FREQ_LIST)
  118. #else
  119. #define CFG_SAP_AVOID_ACS_FREQ_LIST_ALL
  120. #endif
  121. /*
  122. * <ini>
  123. * restart_beaconing_on_chan_avoid_event - control the beaconing entity to move
  124. * away from active LTE channels
  125. * @Min: 0
  126. * @Max: 2
  127. * @Default: 1
  128. *
  129. * This ini is used to control the beaconing entity (SAP/GO) to move away from
  130. * active LTE channels when channel avoidance event is received
  131. * restart_beaconing_on_chan_avoid_event=0: Don't allow beaconing entity move
  132. * from active LTE channels
  133. * restart_beaconing_on_chan_avoid_event=1: Allow beaconing entity move from
  134. * active LTE channels
  135. * restart_beaconing_on_chan_avoid_event=2: Allow beaconing entity move from
  136. * 2.4G active LTE channels only
  137. *
  138. * Related: None
  139. *
  140. * Supported Feature: channel avoidance
  141. *
  142. * Usage: Internal/External
  143. *
  144. * </ini>
  145. */
  146. #define CFG_RESTART_BEACONING_ON_CH_AVOID CFG_INI_UINT( \
  147. "restart_beaconing_on_chan_avoid_event", \
  148. 0, \
  149. 2, \
  150. 1, \
  151. CFG_VALUE_OR_DEFAULT, \
  152. "control the beaconing entity to move away from active LTE channels")
  153. /*
  154. * <ini>
  155. * gindoor_channel_support - support to start sap in indoor channel
  156. * @Min: 0
  157. * @Max: 1
  158. * @Default: 0
  159. *
  160. * This ini is to support to start sap in indoor channel.
  161. * Customer can config this item to enable/disable sap in indoor channel
  162. *
  163. * Related: None
  164. *
  165. * Supported Feature: SAP
  166. *
  167. * Usage: External
  168. *
  169. * </ini>
  170. */
  171. #define CFG_INDOOR_CHANNEL_SUPPORT CFG_INI_BOOL( \
  172. "gindoor_channel_support", \
  173. 0, \
  174. "enable/disable sap in indoor channel")
  175. /*
  176. * <ini>
  177. * scan_11d_interval - 11d scan interval in ms
  178. * @Min: 1 sec
  179. * @Max: 10 hr
  180. * @Default: 1 hr
  181. *
  182. * This ini sets the 11d scan interval in FW
  183. *
  184. * Related: None
  185. *
  186. * Supported Feature: STA
  187. *
  188. * Usage: External
  189. *
  190. * </ini>
  191. */
  192. #define CFG_SCAN_11D_INTERVAL CFG_INI_UINT( \
  193. "scan_11d_interval", \
  194. 1000, \
  195. 36000000, \
  196. 3600000, \
  197. CFG_VALUE_OR_DEFAULT, \
  198. "set the 11d scan interval in FW")
  199. /*
  200. * valid_chan_list - Configure valid channel list
  201. * @Default: VALID_CHANNEL_LIST_DEFAULT
  202. *
  203. * This ini is used to configure valid channel list
  204. *
  205. * Usage: Internal
  206. *
  207. */
  208. #define CFG_VALID_CHANNEL_LIST CFG_STRING( \
  209. "valid_chan_list", \
  210. 0, \
  211. CFG_VALID_CHANNEL_LIST_STRING_LEN, \
  212. VALID_CHANNEL_LIST_DEFAULT, \
  213. "valid channel list")
  214. /*
  215. * country_code - Set country code
  216. * @Default: NA
  217. *
  218. * This ini is used to set country code
  219. *
  220. * Usage: Internal
  221. *
  222. */
  223. #define CFG_COUNTRY_CODE CFG_STRING( \
  224. "country_code", \
  225. 0, \
  226. CFG_COUNTRY_CODE_LEN, \
  227. "", \
  228. "country code")
  229. #define CFG_REG_ALL \
  230. CFG(CFG_SELF_GEN_FRM_PWR) \
  231. CFG(CFG_ENABLE_11D_IN_WORLD_MODE) \
  232. CFG(CFG_ETSI13_SRD_CHAN_IN_MASTER_MODE) \
  233. CFG(CFG_RESTART_BEACONING_ON_CH_AVOID) \
  234. CFG(CFG_INDOOR_CHANNEL_SUPPORT) \
  235. CFG(CFG_SCAN_11D_INTERVAL) \
  236. CFG(CFG_VALID_CHANNEL_LIST) \
  237. CFG(CFG_COUNTRY_CODE) \
  238. CFG_SAP_AVOID_ACS_FREQ_LIST_ALL
  239. #endif /* CFG_MLME_REG_H__ */