cfg_mlme_dfs.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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 centralized definitions of converged configuration.
  20. */
  21. #ifndef __CFG_MLME_DFS_H
  22. #define __CFG_MLME_DFS_H
  23. /*
  24. * <ini>
  25. * gsap_tx_leakage_threshold - sap tx leakage threshold
  26. * @Min: 100
  27. * @Max: 1000
  28. * @Default: 310
  29. *
  30. * customer can set this value from 100 to 1000 which means
  31. * sap tx leakage threshold is -10db to -100db
  32. *
  33. * Related: none
  34. *
  35. * Usage: External
  36. *
  37. * </ini>
  38. */
  39. #define CFG_SAP_TX_LEAKAGE_THRESHOLD CFG_INI_UINT( \
  40. "gsap_tx_leakage_threshold", \
  41. 100, \
  42. 1000, \
  43. 310, \
  44. CFG_VALUE_OR_DEFAULT, \
  45. "sap tx leakage threshold")
  46. /*
  47. * <ini>
  48. * gDfsBeaconTxEnhanced - beacon tx enhanced
  49. * @Min: 0
  50. * @Max: 1
  51. * @Default: 0
  52. *
  53. * This ini is used to enhance dfs beacon tx
  54. *
  55. * Related: none
  56. *
  57. * Usage: External
  58. *
  59. * </ini>
  60. */
  61. #define CFG_DFS_BEACON_TX_ENHANCED CFG_INI_BOOL( \
  62. "gDfsBeaconTxEnhanced", \
  63. 0, \
  64. "beacon tx enhanced")
  65. /*
  66. * <ini>
  67. * gPreferNonDfsChanOnRadar - During random channel selection prefer non dfs
  68. * @Min: 0
  69. * @Max: 1
  70. * @Default: 0
  71. *
  72. * During random channel selection prefer non dfs.
  73. *
  74. * Related: none
  75. *
  76. * Usage: External
  77. *
  78. * </ini>
  79. */
  80. #define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR CFG_INI_BOOL( \
  81. "gPreferNonDfsChanOnRadar", \
  82. 0, \
  83. "channel selection prefer non dfs")
  84. /*
  85. * <ini>
  86. * dfsPhyerrFilterOffload - Enable dfs phyerror filtering offload in FW
  87. * @Min: 0
  88. * @Max: 1
  89. * @Default: 0
  90. *
  91. * This ini is used to to enable dfs phyerror filtering offload to firmware
  92. * Enabling it will cause basic phy error to be discarding in firmware.
  93. * Related: NA.
  94. *
  95. * Supported Feature: DFS
  96. *
  97. * Usage: Internal/External
  98. *
  99. * </ini>
  100. */
  101. #define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD CFG_INI_BOOL( \
  102. "dfsPhyerrFilterOffload", \
  103. 0, \
  104. "dfs phyerror filtering offload")
  105. /*
  106. * <ini>
  107. * gIgnoreCAC - Used to ignore CAC
  108. * @Min: 0
  109. * @Max: 1
  110. * @Default: 0
  111. *
  112. * This ini is used to set default CAC
  113. *
  114. * Related: None
  115. *
  116. * Supported Feature: DFS
  117. *
  118. * Usage: Internal/External
  119. *
  120. * </ini>
  121. */
  122. #define CFG_IGNORE_CAC CFG_INI_BOOL( \
  123. "gIgnoreCAC", \
  124. 0, \
  125. "ignore CAC on DFS channel")
  126. /*
  127. * <ini>
  128. * gDisableDFSChSwitch - Disable channel switch if radar is found
  129. * @Min: 0
  130. * @Max: 1
  131. * @Default: 0
  132. *
  133. * This ini is used to disable channel switch if radar is found
  134. * on that channel.
  135. * Related: NA.
  136. *
  137. * Supported Feature: DFS
  138. *
  139. * Usage: Internal
  140. *
  141. * </ini>
  142. */
  143. #define CFG_DISABLE_DFS_CH_SWITCH CFG_INI_BOOL( \
  144. "gDisableDFSChSwitch", \
  145. 0, \
  146. "Disable channel switch on radar")
  147. /*
  148. * <ini>
  149. * gEnableDFSMasterCap - Enable DFS master capability
  150. * @Min: 0
  151. * @Max: 1
  152. * @Default: 0
  153. *
  154. * This ini is used to enable/disable the DFS master capability.
  155. * Disabling it will cause driver to not advertise the spectrum
  156. * management capability
  157. * Related: NA.
  158. *
  159. * upported Feature: DFS
  160. *
  161. * Usage: Internal/External
  162. *
  163. * </ini>
  164. */
  165. #define CFG_ENABLE_DFS_MASTER_CAPABILITY CFG_INI_BOOL( \
  166. "gEnableDFSMasterCap", \
  167. 0, \
  168. "DFS master mode capability")
  169. #define CFG_DFS_ALL \
  170. CFG(CFG_IGNORE_CAC) \
  171. CFG(CFG_DISABLE_DFS_CH_SWITCH) \
  172. CFG(CFG_DFS_BEACON_TX_ENHANCED) \
  173. CFG(CFG_SAP_TX_LEAKAGE_THRESHOLD) \
  174. CFG(CFG_ENABLE_NON_DFS_CHAN_ON_RADAR) \
  175. CFG(CFG_ENABLE_DFS_MASTER_CAPABILITY) \
  176. CFG(CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD)
  177. #endif /* __CFG_MLME_DFS_H */