cfg_mlme_powersave.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. /*
  2. * Copyright (c) 2012-2019 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 power save related
  20. * converged configurations.
  21. */
  22. #ifndef __CFG_MLME_POWERSAVE_H
  23. #define __CFG_MLME_POWERSAVE_H
  24. /*
  25. * <ini>
  26. * gEnableImps - Enable/Disable IMPS
  27. * @Min: 0
  28. * @Max: 1
  29. * @Default: 1
  30. *
  31. * This ini is used to enable/Disable IMPS(IdleModePowerSave) Mode
  32. *
  33. * Related: None
  34. *
  35. * Supported Feature: Power Save
  36. *
  37. * Usage: External
  38. *
  39. * </ini>
  40. */
  41. #define CFG_ENABLE_IMPS CFG_INI_BOOL( \
  42. "gEnableImps", \
  43. 1,\
  44. "Enable/disable IMPS")
  45. /*
  46. * <ini>
  47. * gEnableBmps - Enable/Disable BMPS
  48. * @Min: 0
  49. * @Max: 1
  50. * @Default: 1
  51. *
  52. * This ini is used to enable/Disable BMPS(BeaconModePowerSave) Mode
  53. *
  54. * Related: None
  55. *
  56. * Supported Feature: Power Save
  57. *
  58. * Usage: External
  59. *
  60. * </ini>
  61. */
  62. #define CFG_ENABLE_PS CFG_INI_BOOL( \
  63. "gEnableBmps", \
  64. 1,\
  65. "Enable/disable BMPS")
  66. /*
  67. * <ini>
  68. * gAutoBmpsTimerValue - Set Auto BMPS Timer value
  69. * @Min: 0
  70. * @Max: 1000
  71. * @Default: 600
  72. *
  73. * This ini is used to set Auto BMPS Timer value in seconds
  74. *
  75. * Related: gEnableBmps
  76. *
  77. * Supported Feature: Power Save
  78. *
  79. * Usage: External
  80. *
  81. * </ini>
  82. */
  83. #define CFG_AUTO_BMPS_ENABLE_TIMER CFG_INI_UINT( \
  84. "gAutoBmpsTimerValue", \
  85. 0, \
  86. 1000, \
  87. 600, \
  88. CFG_VALUE_OR_DEFAULT, \
  89. "Auto BMPS Timer value")
  90. /*
  91. * <ini>
  92. * gBmpsMinListenInterval - Set BMPS Minimum Listen Interval
  93. * @Min: 1
  94. * @Max: 65535
  95. * @Default: 1
  96. *
  97. * This ini is used to set BMPS Minimum Listen Interval. If gPowerUsage
  98. * is set "Min", this INI need to be set.
  99. *
  100. * Related: gEnableBmps, gPowerUsage
  101. *
  102. * Supported Feature: Power Save
  103. *
  104. * Usage: External
  105. *
  106. * </ini>
  107. */
  108. #define CFG_BMPS_MINIMUM_LI CFG_INI_UINT( \
  109. "gBmpsMinListenInterval", \
  110. 1, \
  111. 65535, \
  112. 1, \
  113. CFG_VALUE_OR_DEFAULT, \
  114. "BMPS Minimum Listen Interval")
  115. /*
  116. * <ini>
  117. * gBmpsMaxListenInterval - Set BMPS Maximum Listen Interval
  118. * @Min: 1
  119. * @Max: 65535
  120. * @Default: 1
  121. *
  122. * This ini is used to set BMPS Maximum Listen Interval. If gPowerUsage
  123. * is set "Max", this INI need to be set.
  124. *
  125. * Related: gEnableBmps, gPowerUsage
  126. *
  127. * Supported Feature: Power Save
  128. *
  129. * Usage: External
  130. *
  131. * </ini>
  132. */
  133. #define CFG_BMPS_MAXIMUM_LI CFG_INI_UINT( \
  134. "gBmpsMaxListenInterval", \
  135. 1, \
  136. 65535, \
  137. 1, \
  138. CFG_VALUE_OR_DEFAULT, \
  139. "BMPS Maximum Listen Interval")
  140. /*
  141. * <ini>
  142. * gEnableDTIMSelectionDiversity - Enable/Disable chain
  143. * selection optimization for one chain dtim
  144. * @Min: 0
  145. * @Max: 30
  146. * @Default: 5
  147. *
  148. * Usage: External
  149. *
  150. * </ini>
  151. */
  152. #define CFG_DTIM_SELECTION_DIVERSITY CFG_INI_UINT( \
  153. "gEnableDTIMSelectionDiversity", \
  154. 0, \
  155. 30, \
  156. 5, \
  157. CFG_VALUE_OR_DEFAULT, \
  158. "Chain selection diversity value")
  159. #define CFG_POWERSAVE_ALL \
  160. CFG(CFG_ENABLE_IMPS) \
  161. CFG(CFG_ENABLE_PS) \
  162. CFG(CFG_AUTO_BMPS_ENABLE_TIMER) \
  163. CFG(CFG_BMPS_MINIMUM_LI) \
  164. CFG(CFG_BMPS_MAXIMUM_LI) \
  165. CFG(CFG_DTIM_SELECTION_DIVERSITY)
  166. #endif /* __CFG_MLME_POWERSAVE_H */