cfg_mlme_obss_ht40.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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 OBSS HT40.
  20. */
  21. #ifndef CFG_MLME_OBSS_HT40_H__
  22. #define CFG_MLME_OBSS_HT40_H__
  23. /*
  24. * <ini>
  25. * obss_active_dwelltime - Set obss active dwelltime
  26. * @Min: 10
  27. * @Max: 1000
  28. * @Default: 10
  29. *
  30. * This ini is used to set dwell time in secs for active
  31. * obss scan
  32. *
  33. * Related: None
  34. *
  35. * Supported Feature: Scan
  36. *
  37. * Usage: External
  38. *
  39. * </ini>
  40. */
  41. #define CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME CFG_INI_UINT( \
  42. "obss_active_dwelltime", \
  43. 10, \
  44. 1000, \
  45. 10, \
  46. CFG_VALUE_OR_DEFAULT, \
  47. "Set obss active dwelltime")
  48. /*
  49. * <ini>
  50. * obss_passive_dwelltime - Set obss passive dwelltime
  51. * @Min: 5
  52. * @Max: 1000
  53. * @Default: 20
  54. *
  55. * This ini is used to set dwell time in secs for passive
  56. * obss scan
  57. *
  58. * Related: None
  59. *
  60. * Supported Feature: Scan
  61. *
  62. * Usage: External
  63. *
  64. * </ini>
  65. */
  66. #define CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME CFG_INI_UINT( \
  67. "obss_passive_dwelltime", \
  68. 5, \
  69. 1000, \
  70. 20, \
  71. CFG_VALUE_OR_DEFAULT, \
  72. "Set obss passive dwelltime")
  73. /*
  74. * <ini>
  75. * obss_width_trigger_interval - Set obss trigger interval
  76. * @Min: 10
  77. * @Max: 900
  78. * @Default: 200
  79. *
  80. * This ini is used during an OBSS scan operation,
  81. * where each channel in the set is scanned at least
  82. * once per configured trigger interval time. Unit is TUs.
  83. *
  84. * Related: None
  85. *
  86. * Supported Feature: Scan
  87. *
  88. * Usage: External
  89. *
  90. * </ini>
  91. */
  92. #define CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL CFG_INI_UINT( \
  93. "obss_width_trigger_interval", \
  94. 10, \
  95. 900, \
  96. 200, \
  97. CFG_VALUE_OR_DEFAULT, \
  98. "Set obss trigger interval")
  99. /*
  100. * obss_passive_total_per_channel - Set obss scan passive total per channel
  101. * @Min: 200
  102. * @Max: 10000
  103. * @Default: 200
  104. *
  105. * FW can perform multiple scans with in a OBSS scan interval. This cfg is for
  106. * the total per channel dwell time of passive scans. Unit is TUs.
  107. *
  108. * Related: None
  109. *
  110. * Supported Feature: Scan
  111. *
  112. * Usage: Internal
  113. *
  114. */
  115. #define CFG_OBSS_HT40_SCAN_PASSIVE_TOTAL_PER_CHANNEL CFG_UINT( \
  116. "obss_passive_total_per_channel", \
  117. 200, \
  118. 10000, \
  119. 200, \
  120. CFG_VALUE_OR_DEFAULT, \
  121. "obss passive total per channel")
  122. /*
  123. * obss_active_total_per_channel - Set obss scan active total per channel
  124. * @Min: 20
  125. * @Max: 10000
  126. * @Default: 20
  127. *
  128. * FW can perform multiple scans with in a OBSS scan interval. This cfg is for
  129. * the total per channel dwell time of active scans. Unit is TUs.
  130. *
  131. * Related: None
  132. *
  133. * Supported Feature: Scan
  134. *
  135. * Usage: Internal
  136. *
  137. */
  138. #define CFG_OBSS_HT40_SCAN_ACTIVE_TOTAL_PER_CHANNEL CFG_UINT( \
  139. "obss_active_total_per_channel", \
  140. 20, \
  141. 10000, \
  142. 20, \
  143. CFG_VALUE_OR_DEFAULT, \
  144. "obss active total per channel")
  145. /*
  146. * obss_scan_activity_thre - Set obss scan activity threshold
  147. * @Min: 0
  148. * @Max: 100
  149. * @Default: 25
  150. *
  151. * This cfg sets obss scan activity threshold.
  152. *
  153. * Related: None
  154. *
  155. * Supported Feature: Scan
  156. *
  157. * Usage: Internal
  158. *
  159. */
  160. #define CFG_OBSS_HT40_SCAN_ACTIVITY_THRESHOLD CFG_UINT( \
  161. "obss_scan_activity_thre", \
  162. 0, \
  163. 100, \
  164. 25, \
  165. CFG_VALUE_OR_DEFAULT, \
  166. "obss ht40 scan activity threshold")
  167. /*
  168. * obss_width_transition_delay - Set obss width transition delay
  169. * @Min: 5
  170. * @Max: 100
  171. * @Default: 5
  172. *
  173. * This cfg sets obss width transition delay, it is used to check exemption
  174. * from scan. The unit is TUs.
  175. *
  176. * Related: None
  177. *
  178. * Supported Feature: Scan
  179. *
  180. * Usage: Internal
  181. *
  182. */
  183. #define CFG_OBSS_HT40_WIDTH_CH_TRANSITION_DELAY CFG_UINT( \
  184. "obss_width_transition_delay", \
  185. 5, \
  186. 100, \
  187. 5, \
  188. CFG_VALUE_OR_DEFAULT, \
  189. "obss ht40 width transition delay")
  190. #define CFG_OBSS_HT40_ALL \
  191. CFG(CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME) \
  192. CFG(CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME) \
  193. CFG(CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL) \
  194. CFG(CFG_OBSS_HT40_SCAN_PASSIVE_TOTAL_PER_CHANNEL) \
  195. CFG(CFG_OBSS_HT40_SCAN_ACTIVE_TOTAL_PER_CHANNEL) \
  196. CFG(CFG_OBSS_HT40_SCAN_ACTIVITY_THRESHOLD) \
  197. CFG(CFG_OBSS_HT40_WIDTH_CH_TRANSITION_DELAY)
  198. #endif /* CFG_MLME_OBSS_HT40_H__ */