cfg_mlme_mwc.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /*
  2. * Copyright (c) 2012-2018,2020 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 configuration definitions for MLME WMC.
  20. */
  21. #ifndef CFG_MLME_MWC_H_
  22. #define CFG_MLME_MWC_H_
  23. #ifdef MWS_COEX
  24. /*
  25. * <ini>
  26. * gMwsCoex4gQuickTdm - Bitmap to control MWS-COEX 4G quick FTDM policy
  27. * @Min: 0x00000000
  28. * @Max: 0xFFFFFFFF
  29. * @Default: 0x00000000
  30. *
  31. * It is a 32 bit value such that the various bits represent as below:
  32. * Bit-0 : 0 - Don't allow quick FTDM policy (Default)
  33. * 1 - Allow quick FTDM policy
  34. * Bit 1-31 : reserved for future use
  35. *
  36. * It is used to enable or disable MWS-COEX 4G (LTE) Quick FTDM
  37. *
  38. * Usage: Internal
  39. *
  40. * </ini>
  41. */
  42. #define CFG_MWS_COEX_4G_QUICK_FTDM CFG_INI_UINT( \
  43. "gMwsCoex4gQuickTdm", \
  44. 0x00000000, \
  45. 0xFFFFFFFF, \
  46. 0x00000000, \
  47. CFG_VALUE_OR_DEFAULT, \
  48. "set mws-coex 4g quick ftdm policy")
  49. /*
  50. * <ini>
  51. * gMwsCoex5gnrPwrLimit - Bitmap to set MWS-COEX 5G-NR power limit
  52. * @Min: 0x00000000
  53. * @Max: 0xFFFFFFFF
  54. * @Default: 0x00000000
  55. *
  56. * It is a 32 bit value such that the various bits represent as below:
  57. * Bit-0 : Don't apply user specific power limit,
  58. * use internal power limit (Default)
  59. * Bit 1-2 : Invalid value (Ignored)
  60. * Bit 3-21 : Apply the specified value as the external power limit, in dBm
  61. * Bit 22-31 : Invalid value (Ignored)
  62. *
  63. * It is used to set MWS-COEX 5G-NR power limit
  64. *
  65. * Usage: Internal
  66. *
  67. * </ini>
  68. */
  69. #define CFG_MWS_COEX_5G_NR_PWR_LIMIT CFG_INI_UINT( \
  70. "gMwsCoex5gnrPwrLimit", \
  71. 0x00000000, \
  72. 0xFFFFFFFF, \
  73. 0x00000000, \
  74. CFG_VALUE_OR_DEFAULT, \
  75. "set mws-coex 5g-nr power limit")
  76. /*
  77. * <ini>
  78. * mws_coex_pcc_channel_avoid_delay - configures the duration, when WWAN PCC
  79. * (Primary Component Carrier) conflicts with WLAN channel.
  80. * @Min: 0x00
  81. * @Max: 0xFF
  82. * @Default: 0x3C
  83. *
  84. * It is used to set MWS-COEX WWAN PCC channel avoidance delay
  85. *
  86. * Usage: External
  87. *
  88. * </ini>
  89. */
  90. #define CFG_MWS_COEX_PCC_CHANNEL_AVOID_DELAY CFG_INI_UINT(\
  91. "mws_coex_pcc_channel_avoid_delay", \
  92. 0x00000000, \
  93. 0xFFFFFFFF, \
  94. 0x3C, \
  95. CFG_VALUE_OR_DEFAULT, \
  96. "set mws-coex PCC channel avoidance delay")
  97. /*
  98. * <ini>
  99. * mws_coex_scc_channel_avoid_delay - configures the duration, when WWAN SCC
  100. * (Secondary Component Carrier) conflicts with WLAN channel.
  101. * @Min: 0x00
  102. * @Max: 0xFF
  103. * @Default: 0x78
  104. *
  105. * It is used to set MWS-COEX WWAN SCC channel avoidance delay
  106. *
  107. * Usage: External
  108. *
  109. * </ini>
  110. */
  111. #define CFG_MWS_COEX_SCC_CHANNEL_AVOID_DELAY CFG_INI_UINT(\
  112. "mws_coex_scc_channel_avoid_delay", \
  113. 0x00000000, \
  114. 0xFFFFFFFF, \
  115. 0x78, \
  116. CFG_VALUE_OR_DEFAULT, \
  117. "set mws-coex SCC channel avoidance delay")
  118. #define CFG_MWC_ALL \
  119. CFG(CFG_MWS_COEX_4G_QUICK_FTDM) \
  120. CFG(CFG_MWS_COEX_5G_NR_PWR_LIMIT) \
  121. CFG(CFG_MWS_COEX_PCC_CHANNEL_AVOID_DELAY) \
  122. CFG(CFG_MWS_COEX_SCC_CHANNEL_AVOID_DELAY)
  123. #else
  124. #define CFG_MWC_ALL
  125. #endif /* MWS_COEX */
  126. #endif /* CFG_MLME_MWC_H_ */