cfg_mlme_mwc.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 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. #define CFG_MWC_ALL \
  77. CFG(CFG_MWS_COEX_4G_QUICK_FTDM) \
  78. CFG(CFG_MWS_COEX_5G_NR_PWR_LIMIT)
  79. #else
  80. #define CFG_MWC_ALL
  81. #endif /* MWS_COEX */
  82. #endif /* CFG_MLME_MWC_H_ */