cfg_mlme_twt.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. /*
  2. * Copyright (c) 2011-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_TWT_H
  22. #define __CFG_MLME_TWT_H
  23. /*
  24. * <ini>
  25. * twt_requestor - twt requestor.
  26. * @Min: 0
  27. * @Max: 1
  28. * @Default: 0
  29. *
  30. * This cfg is used to store twt requestor config.
  31. *
  32. * Related: NA
  33. *
  34. * Supported Feature: 11AX
  35. *
  36. * Usage: Internal
  37. *
  38. * </ini>
  39. */
  40. #define CFG_TWT_REQUESTOR CFG_INI_BOOL( \
  41. "twt_requestor", \
  42. 0, \
  43. "TWT requestor")
  44. /*
  45. * <ini>
  46. * twt_responder - twt responder.
  47. * @Min: 0
  48. * @Max: 1
  49. * @Default: 0
  50. *
  51. * This cfg is used to store twt responder config.
  52. *
  53. * Related: NA
  54. *
  55. * Supported Feature: 11AX
  56. *
  57. * Usage: Internal
  58. *
  59. * </ini>
  60. */
  61. #define CFG_TWT_RESPONDER CFG_INI_BOOL( \
  62. "twt_responder", \
  63. 0, \
  64. "TWT responder")
  65. /*
  66. * <ini>
  67. * bcast_twt - to bcast twt capability.
  68. * @Min: 0
  69. * @Max: 1
  70. * @Default: 0
  71. *
  72. * This cfg is used to bcast twt capability.
  73. *
  74. * Related: NA
  75. *
  76. * Supported Feature: 11AX
  77. *
  78. * Usage: Internal
  79. *
  80. * </ini>
  81. */
  82. #define CFG_BCAST_TWT CFG_INI_BOOL( \
  83. "bcast_twt", \
  84. 0, \
  85. "Bcast TWT")
  86. /*
  87. * <ini>
  88. * enable_twt - Enable Target Wake Time support.
  89. * @Min: 0
  90. * @Max: 1
  91. * @Default: 1
  92. *
  93. * This ini is used to enable or disable TWT support.
  94. *
  95. * Related: NA
  96. *
  97. * Supported Feature: 11AX
  98. *
  99. * Usage: External
  100. *
  101. * </ini>
  102. */
  103. #define CFG_ENABLE_TWT CFG_INI_BOOL( \
  104. "enable_twt", \
  105. 1, \
  106. "TWT support")
  107. /*
  108. * <ini>
  109. * twt_congestion_timeout - Target wake time congestion timeout.
  110. * @Min: 0
  111. * @Max: 10000
  112. * @Default: 100
  113. *
  114. * STA uses this timer to continuously monitor channel congestion levels to
  115. * decide whether to start or stop TWT. This ini is used to configure the
  116. * target wake time congestion timeout value in the units of milliseconds.
  117. * A value of Zero indicates that this is a host triggered TWT and all the
  118. * necessary configuration for TWT will be directed from the host.
  119. *
  120. * Related: NA
  121. *
  122. * Supported Feature: 11AX
  123. *
  124. * Usage: External
  125. *
  126. * </ini>
  127. */
  128. #define CFG_TWT_CONGESTION_TIMEOUT CFG_INI_UINT( \
  129. "twt_congestion_timeout", \
  130. 0, \
  131. 10000, \
  132. 100, \
  133. CFG_VALUE_OR_DEFAULT, \
  134. "twt congestion timeout")
  135. #define CFG_TWT_ALL \
  136. CFG(CFG_BCAST_TWT) \
  137. CFG(CFG_ENABLE_TWT) \
  138. CFG(CFG_TWT_REQUESTOR) \
  139. CFG(CFG_TWT_RESPONDER) \
  140. CFG(CFG_TWT_CONGESTION_TIMEOUT)
  141. #endif /* __CFG_MLME_TWT_H */