cfg_mlme_feature_flag.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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_FEATURE_FLAG_H
  22. #define __CFG_MLME_FEATURE_FLAG_H
  23. #define CFG_ACCEPT_SHORT_SLOT_ASSOC_ONLY CFG_BOOL( \
  24. "accept_short_slot_assoc", \
  25. 0, \
  26. "Accept short slot assoc only")
  27. #define CFG_HCF_ENABLED CFG_BOOL( \
  28. "enable_hcf", \
  29. 0, \
  30. "HCF enabled")
  31. #define CFG_RSN_ENABLED CFG_BOOL( \
  32. "enable_rsn", \
  33. 0, \
  34. "RSN enabled")
  35. #define CFG_11G_SHORT_PREAMBLE_ENABLED CFG_BOOL( \
  36. "enable_short_preamble_11g", \
  37. 0, \
  38. "Short Preamble Enable")
  39. #define CFG_11G_SHORT_SLOT_TIME_ENABLED CFG_BOOL( \
  40. "enable_short_slot_time_11g", \
  41. 1, \
  42. "Short Slot time enable")
  43. #define CFG_CHANNEL_BONDING_MODE CFG_UINT( \
  44. "channel_bonding_mode", \
  45. 0, \
  46. 10, \
  47. 0, \
  48. CFG_VALUE_OR_DEFAULT, \
  49. "channel bonding mode")
  50. #define CFG_BLOCK_ACK_ENABLED CFG_UINT( \
  51. "enable_block_ack", \
  52. 0, \
  53. 3, \
  54. 0, \
  55. CFG_VALUE_OR_DEFAULT, \
  56. "enable block Ack")
  57. /*
  58. * <ini>
  59. * gEnableAMPDUPS - Enable the AMPDUPS
  60. * @Min: 0
  61. * @Max: 1
  62. * @Default: 0
  63. *
  64. * This ini is used to set default AMPDUPS
  65. *
  66. * Related: None
  67. *
  68. * Supported Feature: STA
  69. *
  70. * Usage: Internal/External
  71. *
  72. * </ini>
  73. */
  74. #define CFG_ENABLE_AMPDUPS CFG_INI_BOOL( \
  75. "gEnableAMPDUPS", \
  76. 0, \
  77. "Enable AMPDU")
  78. #define CFG_FEATURE_FLAG_ALL \
  79. CFG(CFG_ACCEPT_SHORT_SLOT_ASSOC_ONLY) \
  80. CFG(CFG_HCF_ENABLED) \
  81. CFG(CFG_RSN_ENABLED) \
  82. CFG(CFG_11G_SHORT_PREAMBLE_ENABLED) \
  83. CFG(CFG_11G_SHORT_SLOT_TIME_ENABLED) \
  84. CFG(CFG_CHANNEL_BONDING_MODE) \
  85. CFG(CFG_BLOCK_ACK_ENABLED) \
  86. CFG(CFG_ENABLE_AMPDUPS)
  87. #endif /* __CFG_MLME_FEATURE_FLAG_H */