cfg_mlme_ht_caps.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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_HT_CAPS_H
  22. #define __CFG_MLME_HT_CAPS_H
  23. /*
  24. * <ini>
  25. * gTxLdpcEnable - Config Param to enable Tx LDPC capability
  26. * @Min: 0
  27. * @Max: 3
  28. * @Default: 3
  29. *
  30. * This ini is used to enable/disable Tx LDPC capability
  31. * 0 - disable
  32. * 1 - HT LDPC enable
  33. * 2 - VHT LDPC enable
  34. * 3 - HT & VHT LDPC enable
  35. *
  36. * Related: STA/SAP/P2P/IBSS/NAN.
  37. *
  38. * Supported Feature: Concurrency/Standalone
  39. *
  40. * Usage: Internal/External
  41. *
  42. * </ini>
  43. */
  44. #define CFG_TX_LDPC_ENABLE CFG_INI_UINT( \
  45. "gTxLdpcEnable", \
  46. 0, \
  47. 3, \
  48. 3, \
  49. CFG_VALUE_OR_DEFAULT, \
  50. "Tx LDPC capability")
  51. /*
  52. * <ini>
  53. * gEnableRXLDPC - Config Param to enable Rx LDPC capability
  54. * @Min: 0
  55. * @Max: 1
  56. * @Default: 0
  57. *
  58. * This ini is used to enable/disable Rx LDPC capability
  59. * 0 - disable Rx LDPC
  60. * 1 - enable Rx LDPC
  61. *
  62. * Related: STA/SAP/P2P/IBSS/NAN.
  63. *
  64. * Supported Feature: Concurrency/Standalone
  65. *
  66. * Usage: Internal/External
  67. *
  68. * </ini>
  69. */
  70. #define CFG_RX_LDPC_ENABLE CFG_INI_BOOL( \
  71. "gEnableRXLDPC", \
  72. 0, \
  73. "Rx LDPC capability")
  74. /*
  75. * <ini>
  76. * gEnableTXSTBC - Enables/disables Tx STBC capability in STA mode
  77. * @Min: 0
  78. * @Max: 1
  79. * @Default: 0
  80. *
  81. * This ini is used to set default Tx STBC capability
  82. *
  83. * Related: None
  84. *
  85. * Supported Feature: STA
  86. *
  87. * Usage: Internal/External
  88. *
  89. * </ini>
  90. */
  91. #define CFG_TX_STBC_ENABLE CFG_INI_BOOL( \
  92. "gEnableTXSTBC", \
  93. 0, \
  94. "Tx STBC capability")
  95. /*
  96. * <ini>
  97. * gEnableRXSTBC - Enables/disables Rx STBC capability in STA mode
  98. * @Min: 0
  99. * @Max: 1
  100. * @Default: 1
  101. *
  102. * This ini is used to set default Rx STBC capability
  103. *
  104. * Related: None
  105. *
  106. * Supported Feature: STA
  107. *
  108. * Usage: Internal/External
  109. *
  110. * </ini>
  111. */
  112. #define CFG_RX_STBC_ENABLE CFG_INI_BOOL( \
  113. "gEnableRXSTBC", \
  114. 1, \
  115. "Rx STBC capability")
  116. /*
  117. * <ini>
  118. * gShortGI20Mhz - Short Guard Interval for HT20
  119. * @Min: 0
  120. * @Max: 1
  121. * @Default: 1
  122. *
  123. * This ini is used to set default short interval for HT20
  124. *
  125. * Related: None
  126. *
  127. * Supported Feature: STA
  128. *
  129. * Usage: Internal/External
  130. *
  131. * </ini>
  132. */
  133. #define CFG_SHORT_GI_20MHZ CFG_INI_BOOL( \
  134. "gShortGI20Mhz", \
  135. 1, \
  136. "Short Guard Interval for HT20")
  137. /*
  138. * <ini>
  139. * gShortGI40Mhz - It will check gShortGI20Mhz and
  140. * gShortGI40Mhz from session entry
  141. * @Min: 0
  142. * @Max: 1
  143. * @Default: 1
  144. *
  145. * This ini is used to set default gShortGI40Mhz
  146. *
  147. * Related: None
  148. *
  149. * Supported Feature: STA
  150. *
  151. * Usage: Internal/External
  152. *
  153. * </ini>
  154. */
  155. #define CFG_SHORT_GI_40MHZ CFG_INI_BOOL( \
  156. "gShortGI40Mhz", \
  157. 1, \
  158. "Short Guard Interval for HT40")
  159. #define CFG_HT_CAP_INFO CFG_UINT( \
  160. "ht_cap_info", \
  161. 0, \
  162. 65535, \
  163. 364, \
  164. CFG_VALUE_OR_DEFAULT, \
  165. "HT cap info")
  166. #define CFG_HT_CAPS_ALL \
  167. CFG(CFG_HT_CAP_INFO) \
  168. CFG(CFG_TX_LDPC_ENABLE) \
  169. CFG(CFG_RX_LDPC_ENABLE) \
  170. CFG(CFG_TX_STBC_ENABLE) \
  171. CFG(CFG_RX_STBC_ENABLE) \
  172. CFG(CFG_SHORT_GI_20MHZ) \
  173. CFG(CFG_SHORT_GI_40MHZ)
  174. #endif /* __CFG_MLME_HT_CAPS_H */