cfg_mlme_fe_rrm.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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_FE_RRM_H
  22. #define __CFG_MLME_FE_RRM_H
  23. /*
  24. * <ini>
  25. * gRrmEnable - Enable/Disable RRM
  26. * @Min: 0
  27. * @Max: 1
  28. * @Default: 0
  29. *
  30. * This ini is used to controls the capabilities (11 k) included
  31. * in the capabilities field.
  32. *
  33. * Related: None.
  34. *
  35. * Supported Feature: 11k
  36. *
  37. * Usage: Internal/External
  38. *
  39. * </ini>
  40. */
  41. #define CFG_RRM_ENABLE CFG_INI_BOOL("gRrmEnable", \
  42. 0, \
  43. "Enable/Disable RRM")
  44. /*
  45. * <ini>
  46. * gRrmRandnIntvl - Randomization interval
  47. * @Min: 10
  48. * @Max: 100
  49. * @Default: 100
  50. *
  51. * This ini is used to set randomization interval which is used to start a timer
  52. * of a random value within randomization interval. Next RRM Scan request
  53. * will be issued after the expiry of this random interval.
  54. *
  55. * Related: None.
  56. *
  57. * Supported Feature: 11k
  58. *
  59. * Usage: Internal/External
  60. *
  61. * </ini>
  62. */
  63. #define CFG_RRM_MEAS_RAND_INTVL CFG_INI_UINT("gRrmRandnIntvl", \
  64. 10, \
  65. 100, \
  66. 100, \
  67. CFG_VALUE_OR_DEFAULT, \
  68. "RRM Randomization interval")
  69. /*
  70. * <ini>
  71. * rm_capability - Configure RM enabled capabilities IE
  72. * @Default: 0x73,0x10,0x91,0x00,0x04
  73. *
  74. * This ini is used to configure RM enabled capabilities IE.
  75. * Using this INI, we can set/unset any of the bits in 5 bytes
  76. * (last 4bytes are reserved). Bit details are updated as per
  77. * Draft version of 11mc spec. (Draft P802.11REVmc_D4.2)
  78. *
  79. * Bitwise details are defined as bit mask in rrm_global.h
  80. * Comma is used as a separator for each byte.
  81. *
  82. * Related: None.
  83. *
  84. * Supported Feature: 11k
  85. *
  86. * Usage: Internal/External
  87. *
  88. * </ini>
  89. */
  90. #define CFG_RM_CAPABILITY CFG_INI_STRING("rm_capability", \
  91. 24, \
  92. 40, \
  93. "0x73,0x10,0x91,0x00,0x04", \
  94. "RM enabled capabilities IE")
  95. #define CFG_FE_RRM_ALL \
  96. CFG(CFG_RRM_ENABLE) \
  97. CFG(CFG_RRM_MEAS_RAND_INTVL) \
  98. CFG(CFG_RM_CAPABILITY)
  99. #endif /* __CFG_MLME_FE_RRM_H */