cfg_mlme_reg.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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 configuration definitions for MLME REG.
  20. */
  21. #ifndef CFG_MLME_REG_H__
  22. #define CFG_MLME_REG_H__
  23. /*
  24. * <ini>
  25. * gSelfGenFrmPwr - self-generated frame power in tx chain mask
  26. * for CCK rates
  27. * @Min: 0
  28. * @Max: 0xffff
  29. * @Default: 0
  30. *
  31. * gSelfGenFrmPwr is to set self-generated frame power in tx chain mask
  32. * for CCK rates
  33. *
  34. * Related: None
  35. *
  36. * Supported Feature: STA
  37. *
  38. * Usage: Internal/External
  39. *
  40. * </ini>
  41. */
  42. #define CFG_SELF_GEN_FRM_PWR CFG_INI_UINT( \
  43. "gSelfGenFrmPwr", \
  44. 0, \
  45. 0xffff, \
  46. 0, \
  47. CFG_VALUE_OR_DEFAULT, \
  48. "set the self gen power value")
  49. /*
  50. * <ini>
  51. * etsi13_srd_chan_in_master_mode - Enable/disable ETSI SRD channels in
  52. * master mode PCL and ACS functionality
  53. * @Min: 0
  54. * @Max: 1
  55. * @Default: 0
  56. *
  57. * etsi13_srd_chan_in_master_mode is to enable/disable ETSI SRD channels in
  58. * master mode PCL and ACS functionality
  59. *
  60. * Related: None
  61. *
  62. * Supported Feature: SAP/P2P-GO
  63. *
  64. * Usage: Internal/External
  65. *
  66. * </ini>
  67. */
  68. #define CFG_ETSI13_SRD_CHAN_IN_MASTER_MODE CFG_INI_BOOL( \
  69. "etsi13_srd_chan_in_master_mode", \
  70. 0, \
  71. "enable/disable ETSI SRD channels in master mode")
  72. /*
  73. * <ini>
  74. * restart_beaconing_on_chan_avoid_event - control the beaconing entity to move
  75. * away from active LTE channels
  76. * @Min: 0
  77. * @Max: 2
  78. * @Default: 1
  79. *
  80. * This ini is used to control the beaconing entity (SAP/GO) to move away from
  81. * active LTE channels when channel avoidance event is received
  82. * restart_beaconing_on_chan_avoid_event=0: Don't allow beaconing entity move
  83. * from active LTE channels
  84. * restart_beaconing_on_chan_avoid_event=1: Allow beaconing entity move from
  85. * active LTE channels
  86. * restart_beaconing_on_chan_avoid_event=2: Allow beaconing entity move from
  87. * 2.4G active LTE channels only
  88. *
  89. * Related: None
  90. *
  91. * Supported Feature: channel avoidance
  92. *
  93. * Usage: Internal/External
  94. *
  95. * </ini>
  96. */
  97. #define CFG_RESTART_BEACONING_ON_CH_AVOID CFG_INI_UINT( \
  98. "restart_beaconing_on_chan_avoid_event", \
  99. 0, \
  100. 2, \
  101. 1, \
  102. CFG_VALUE_OR_DEFAULT, \
  103. "control the beaconing entity to move away from active LTE channels")
  104. /*
  105. * <ini>
  106. * gindoor_channel_support - support to start sap in indoor channel
  107. * @Min: 0
  108. * @Max: 1
  109. * @Default: 0
  110. *
  111. * This ini is to support to start sap in indoor channel.
  112. * Customer can config this item to enable/disable sap in indoor channel
  113. *
  114. * Related: None
  115. *
  116. * Supported Feature: SAP
  117. *
  118. * Usage: External
  119. *
  120. * </ini>
  121. */
  122. #define CFG_INDOOR_CHANNEL_SUPPORT CFG_INI_BOOL( \
  123. "gindoor_channel_support", \
  124. 0, \
  125. "enable/disable sap in indoor channel")
  126. /*
  127. * <ini>
  128. * scan_11d_interval - 11d scan interval in ms
  129. * @Min: 1 sec
  130. * @Max: 10 hr
  131. * @Default: 1 hr
  132. *
  133. * This ini sets the 11d scan interval in FW
  134. *
  135. * Related: None
  136. *
  137. * Supported Feature: STA
  138. *
  139. * Usage: External
  140. *
  141. * </ini>
  142. */
  143. #define CFG_SCAN_11D_INTERVAL CFG_INI_UINT( \
  144. "scan_11d_interval", \
  145. 1000, \
  146. 36000000, \
  147. 3600000, \
  148. CFG_VALUE_OR_DEFAULT, \
  149. "set the 11d scan interval in FW")
  150. #define CFG_REG_ALL \
  151. CFG(CFG_SELF_GEN_FRM_PWR) \
  152. CFG(CFG_ETSI13_SRD_CHAN_IN_MASTER_MODE) \
  153. CFG(CFG_RESTART_BEACONING_ON_CH_AVOID) \
  154. CFG(CFG_INDOOR_CHANNEL_SUPPORT) \
  155. CFG(CFG_SCAN_11D_INTERVAL)
  156. #endif /* CFG_MLME_REG_H__ */