cfg_mlme_threshold.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: This file contains centralized definitions of converged configuration.
  21. */
  22. #ifndef __CFG_MLME_THRESHOLD_H
  23. #define __CFG_MLME_THRESHOLD_H
  24. #include "wni_cfg.h"
  25. /*
  26. * <ini>
  27. * RTSThreshold - Will provide RTSThreshold
  28. * @Min: 0
  29. * @Max: 1048576
  30. * @Default: 2347
  31. *
  32. * This ini is used to set default RTSThreshold
  33. * If minimum value 0 is selected then it will use always RTS
  34. * max is the max frame size
  35. *
  36. * Related: None
  37. *
  38. * Supported Feature: STA
  39. *
  40. * Usage: Internal/External
  41. *
  42. * </ini>
  43. */
  44. #define CFG_RTS_THRESHOLD CFG_INI_UINT( \
  45. "RTSThreshold", \
  46. 0, \
  47. 1048576, \
  48. 2347, \
  49. CFG_VALUE_OR_DEFAULT, \
  50. "Default RTS Threshold")
  51. /*
  52. * <ini>
  53. * gFragmentationThreshold - It will set fragmentation threshold
  54. * @Min: 256
  55. * @Max: 8000
  56. * @Default: 8000
  57. *
  58. * This ini is used to indicate default fragmentation threshold
  59. *
  60. * Related: None
  61. *
  62. * Supported Feature: STA
  63. *
  64. * Usage: Internal/External
  65. *
  66. * </ini>
  67. */
  68. #define CFG_FRAG_THRESHOLD CFG_INI_UINT( \
  69. "gFragmentationThreshold", \
  70. 256, \
  71. 8000, \
  72. 8000, \
  73. CFG_VALUE_OR_DEFAULT, \
  74. "Default Fragmentation Threshold")
  75. #define CFG_THRESHOLD_ALL \
  76. CFG(CFG_RTS_THRESHOLD) \
  77. CFG(CFG_FRAG_THRESHOLD)
  78. #endif /* __CFG_MLME_MAIN_H */