wlan_extscan_cfg.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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 EXTSCAN component
  20. */
  21. #ifndef _WLAN_EXTSCAN_CONFIG_H_
  22. #define _WLAN_EXTSCAN_CONFIG_H_
  23. #include "cfg_define.h"
  24. #ifdef FEATURE_WLAN_EXTSCAN
  25. /*
  26. * <ini>
  27. * gExtScanPassiveMaxChannelTime - Set max channel time for external
  28. * passive scan
  29. * @Min: 0
  30. * @Max: 500
  31. * @Default: 110
  32. *
  33. * This ini is used to set maximum channel time in secs spent in
  34. * external passive scan
  35. *
  36. * Related: None
  37. *
  38. * Supported Feature: Scan
  39. *
  40. * Usage: External
  41. *
  42. * </ini>
  43. */
  44. #define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME CFG_INI_UINT(\
  45. "gExtScanPassiveMaxChannelTime",\
  46. 0, 500, 110, CFG_VALUE_OR_DEFAULT,\
  47. "ext scan passive max channel time")
  48. /*
  49. * <ini>
  50. * gExtScanPassiveMinChannelTime - Set min channel time for external
  51. * passive scan
  52. * @Min: 0
  53. * @Max: 500
  54. * @Default: 60
  55. *
  56. * This ini is used to set minimum channel time in secs spent in
  57. * external passive scan
  58. *
  59. * Related: None
  60. *
  61. * Supported Feature: Scan
  62. *
  63. * Usage: External
  64. *
  65. * </ini>
  66. */
  67. #define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME CFG_INI_UINT(\
  68. "gExtScanPassiveMinChannelTime",\
  69. 0, 500, 60, CFG_VALUE_OR_DEFAULT,\
  70. "ext scan passive min channel time")
  71. /*
  72. * <ini>
  73. * gExtScanActiveMaxChannelTime - Set min channel time for external
  74. * active scan
  75. * @Min: 0
  76. * @Max: 110
  77. * @Default: 40
  78. *
  79. * This ini is used to set maximum channel time in secs spent in
  80. * external active scan
  81. *
  82. * Related: None
  83. *
  84. * Supported Feature: Scan
  85. *
  86. * Usage: External
  87. *
  88. * </ini>
  89. */
  90. #define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME CFG_INI_UINT(\
  91. "gExtScanActiveMaxChannelTime",\
  92. 0, 110, 40, CFG_VALUE_OR_DEFAULT,\
  93. "ext scan active max channel time")
  94. /*
  95. * <ini>
  96. * gExtScanActiveMinChannelTime - Set min channel time for external
  97. * active scan
  98. * @Min: 0
  99. * @Max: 110
  100. * @Default: 20
  101. *
  102. * This ini is used to set minimum channel time in secs spent in
  103. * external active scan
  104. *
  105. * Related: None
  106. *
  107. * Supported Feature: Scan
  108. *
  109. * Usage: External
  110. *
  111. * </ini>
  112. */
  113. #define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME CFG_INI_UINT(\
  114. "gExtScanActiveMinChannelTime",\
  115. 0, 110, 20, CFG_VALUE_OR_DEFAULT,\
  116. "ext scan active min channel time")
  117. /*
  118. * <ini>
  119. * gExtScanEnable - Enable external scan
  120. * @Min: 0
  121. * @Max: 1
  122. * @Default: 1
  123. *
  124. * This ini is used to control enabling of external scan
  125. * feature.
  126. *
  127. * Related: None
  128. *
  129. * Supported Feature: Scan
  130. *
  131. * Usage: External
  132. *
  133. * </ini>
  134. */
  135. #define CFG_EXTSCAN_ALLOWED CFG_INI_BOOL(\
  136. "gExtScanEnable",\
  137. 1,\
  138. "ext scan enable")
  139. #define CFG_EXTSCAN_ALL \
  140. CFG(CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME) \
  141. CFG(CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME) \
  142. CFG(CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME) \
  143. CFG(CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME) \
  144. CFG(CFG_EXTSCAN_ALLOWED)
  145. #else
  146. #define CFG_EXTSCAN_ALL
  147. #endif
  148. #endif