cfg_mlme_mbo.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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 QOS related
  20. * converged configurations.
  21. */
  22. #ifndef __CFG_MLME_MBO_H
  23. #define __CFG_MLME_MBO_H
  24. /*
  25. * <ini>
  26. * g_mbo_candidate_rssi_thres - Candidate AP's minimum RSSI to accept
  27. * @Min: -120
  28. * @Max: 0
  29. * @Default: -72
  30. *
  31. * This ini specifies the minimum RSSI value a candidate should have to accept
  32. * it as a target for transition.
  33. *
  34. * Related: N/A
  35. *
  36. * Supported Feature: MBO
  37. *
  38. * Usage: Internal
  39. *
  40. * </ini>
  41. */
  42. #define CFG_MBO_CANDIDATE_RSSI_THRESHOLD CFG_INI_INT( \
  43. "g_mbo_candidate_rssi_thres", \
  44. -120, \
  45. 0, \
  46. -72, \
  47. CFG_VALUE_OR_DEFAULT, \
  48. "candidate AP rssi threshold")
  49. /*
  50. * <ini>
  51. * g_mbo_current_rssi_thres - Connected AP's RSSI threshold to consider a
  52. * transition
  53. * @Min: -120
  54. * @Max: 0
  55. * @Default: -65
  56. *
  57. * This ini is used to configure connected AP's RSSI threshold value to consider
  58. * a transition.
  59. *
  60. * Related: N/A
  61. *
  62. * Supported Feature: MBO
  63. *
  64. * Usage: Internal
  65. *
  66. * </ini>
  67. */
  68. #define CFG_MBO_CURRENT_RSSI_THRESHOLD CFG_INI_INT( \
  69. "g_mbo_current_rssi_thres", \
  70. -120, \
  71. 0, \
  72. -65, \
  73. CFG_VALUE_OR_DEFAULT, \
  74. "current AP rssi threshold")
  75. /*
  76. * <ini>
  77. * g_mbo_current_rssi_mcc_thres - connected AP's RSSI threshold value to prefer
  78. * against a MCC
  79. * @Min: -120
  80. * @Max: 0
  81. * @Default: -75
  82. *
  83. * This ini is used to configure connected AP's minimum RSSI threshold that is
  84. * preferred against a MCC case, if the candidate can cause MCC.
  85. *
  86. * Related: N/A
  87. *
  88. * Supported Feature: MBO
  89. *
  90. * Usage: Internal
  91. *
  92. * </ini>
  93. */
  94. #define CFG_MBO_CUR_RSSI_MCC_THRESHOLD CFG_INI_INT( \
  95. "g_mbo_current_rssi_mcc_thres", \
  96. -120, \
  97. 0, \
  98. -75, \
  99. CFG_VALUE_OR_DEFAULT, \
  100. "current AP mcc rssi threshold")
  101. /*
  102. * <ini>
  103. * g_mbo_candidate_rssi_btc_thres - Candidate AP's minimum RSSI threshold to
  104. * prefer it even in case of BT coex
  105. * @Min: -120
  106. * @Max: 0
  107. * @Default: -70
  108. *
  109. * This ini is used to configure candidate AP's minimum RSSI threshold to prefer
  110. * it for transition even in case of BT coex.
  111. *
  112. * Related: N/A
  113. *
  114. * Supported Feature: MBO
  115. *
  116. * Usage: Internal
  117. *
  118. * </ini>
  119. */
  120. #define CFG_MBO_CAND_RSSI_BTC_THRESHOLD CFG_INI_INT( \
  121. "g_mbo_candidate_rssi_btc_thres", \
  122. -120, \
  123. 0, \
  124. -70, \
  125. CFG_VALUE_OR_DEFAULT, \
  126. "candidate AP rssi threshold")
  127. #define CFG_MBO_ALL \
  128. CFG(CFG_MBO_CANDIDATE_RSSI_THRESHOLD) \
  129. CFG(CFG_MBO_CURRENT_RSSI_THRESHOLD) \
  130. CFG(CFG_MBO_CUR_RSSI_MCC_THRESHOLD) \
  131. CFG(CFG_MBO_CAND_RSSI_BTC_THRESHOLD)
  132. #endif /* __CFG_MLME_MBO_H */