cfg_mlme_rates.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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_RATES_H
  22. #define __CFG_MLME_RATES_H
  23. /*
  24. * <ini>
  25. * gMaxHTMCSForTxData - max HT mcs for TX
  26. * @Min: 0
  27. * @Max: 383
  28. * @Default: 0
  29. *
  30. * This ini is used to configure the max HT mcs
  31. * for tx data.
  32. *
  33. * Usage: External
  34. *
  35. * bits 0-15: max HT mcs
  36. * bits 16-31: zero to disable, otherwise enable.
  37. *
  38. * </ini>
  39. */
  40. #define CFG_INI_MAX_HT_MCS_FOR_TX_DATA CFG_INI_UINT( \
  41. "gMaxHTMCSForTxData", \
  42. 0, \
  43. 0x17f, \
  44. 0, \
  45. CFG_VALUE_OR_DEFAULT, \
  46. "Max HT Mcs for Tx Data")
  47. /*
  48. * <ini>
  49. * gDisableABGRateForTxData - disable abg rate for tx data
  50. * @Min: 0
  51. * @Max: 1
  52. * @Default: 0
  53. *
  54. * This ini is used to disable abg rate for tx data.
  55. *
  56. * Usage: External
  57. *
  58. * </ini>
  59. */
  60. #define CFG_INI_DISABLE_ABG_RATE_FOR_TX_DATA CFG_INI_BOOL( \
  61. "gDisableABGRateForTxData", \
  62. 0, \
  63. "Disable ABG RATE for TX Data")
  64. /*
  65. * gSapMaxMCSForTxData - sap 11n max mcs
  66. * @Min: 0
  67. * @Max: 383
  68. * @Default: 0
  69. *
  70. * This ini configure SAP 11n max mcs
  71. *
  72. * Usage: External
  73. *
  74. * </ini>
  75. */
  76. #define CFG_INI_SAP_MAX_MCS_FOR_TX_DATA CFG_INI_UINT( \
  77. "gSapMaxMCSForTxData", \
  78. 0, \
  79. 383, \
  80. 0, \
  81. CFG_VALUE_OR_DEFAULT, \
  82. "SAP Max MCS for TX Data")
  83. /*
  84. * <ini>
  85. * disable_high_ht_mcs_2x2 - disable high mcs index for 2nd stream in 2.4G
  86. * @Min: 0
  87. * @Max: 8
  88. * @Default: 0
  89. *
  90. * This ini is used to disable high HT MCS index for 2.4G STA connection.
  91. * It has been introduced to resolve IOT issue with one of the vendor.
  92. *
  93. * Note: This INI is not useful with 1x1 setting. If some platform supports
  94. * only 1x1 then this INI is not useful.
  95. *
  96. * 0 - It won't disable any HT MCS index (just like normal HT MCS)
  97. * 1 - It will disable 15th bit from HT RX MCS set (from 8-15 bits slot)
  98. * 2 - It will disable 14th & 15th bits from HT RX MCS set
  99. * 3 - It will disable 13th, 14th, & 15th bits from HT RX MCS set
  100. * and so on.
  101. *
  102. * Related: STA
  103. *
  104. * Supported Feature: 11n
  105. *
  106. * Usage: External
  107. */
  108. #define CFG_INI_DISABLE_HIGH_HT_RX_MCS_2x2 CFG_INI_UINT( \
  109. "disable_high_ht_mcs_2x2", \
  110. 0, \
  111. 8, \
  112. 0, \
  113. CFG_VALUE_OR_DEFAULT, \
  114. "Disable high MCS index for 2x2")
  115. #define CFG_CFP_PERIOD CFG_UINT( \
  116. "cfpPeriod", \
  117. 0, \
  118. 255, \
  119. 1, \
  120. CFG_VALUE_OR_DEFAULT, \
  121. "CFP Period")
  122. #define CFG_CFP_MAX_DURATION CFG_UINT( \
  123. "cfpMaxDuration", \
  124. 0, \
  125. 65535, \
  126. 30000, \
  127. CFG_VALUE_OR_DEFAULT, \
  128. "CFP Max Duration")
  129. #define CFG_RATES_ALL \
  130. CFG(CFG_INI_MAX_HT_MCS_FOR_TX_DATA) \
  131. CFG(CFG_INI_DISABLE_ABG_RATE_FOR_TX_DATA) \
  132. CFG(CFG_INI_SAP_MAX_MCS_FOR_TX_DATA) \
  133. CFG(CFG_INI_DISABLE_HIGH_HT_RX_MCS_2x2) \
  134. CFG(CFG_CFP_PERIOD) \
  135. CFG(CFG_CFP_MAX_DURATION)
  136. #endif /* __CFG_MLME_RATES_H */