wlan_pmo_apf_cfg.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. #ifndef WLAN_PMO_APF_CFG_H__
  19. #define WLAN_PMO_APF_CFG_H__
  20. /*
  21. * <ini>
  22. * gBpfFilterEnable - APF feature support configuration
  23. * @Min: 0
  24. * @Max: 1
  25. * @Default: 1
  26. *
  27. * When set to 1 APF feature will be enabled.
  28. *
  29. * Supported Feature: Android packet filter
  30. *
  31. * Usage: External
  32. *
  33. * </ini>
  34. */
  35. #define CFG_PMO_APF_ENABLE CFG_INI_BOOL("gBpfFilterEnable", \
  36. 1, \
  37. "Enable APF Support")
  38. /*
  39. * <ini>
  40. * gActiveUcBpfMode - Control UC active APF mode
  41. * @Min: 0 (disabled)
  42. * @Max: 2 (adaptive)
  43. * @Default: 0 (disabled)
  44. *
  45. * This config item controls UC APF in active mode. There are 3 modes:
  46. * 0) disabled - APF is disabled in active mode
  47. * 1) enabled - APF is enabled for all packets in active mode
  48. * 2) adaptive - APF is enabled for packets up to some throughput threshold
  49. *
  50. * Related: gActiveMcBcBpfMode
  51. *
  52. * Supported Feature: Active Mode APF
  53. *
  54. * Usage: Internal/External
  55. * </ini>
  56. */
  57. #define CFG_ACTIVE_UC_APF_MODE CFG_INI_UINT( \
  58. "gActiveUcBpfMode", \
  59. ACTIVE_APF_DISABLED, \
  60. (ACTIVE_APF_MODE_COUNT - 1), \
  61. ACTIVE_APF_DISABLED, \
  62. CFG_VALUE_OR_DEFAULT, \
  63. "Control UC active APF mode")
  64. /*
  65. * <ini>
  66. * gActiveMcBcBpfMode - Control MC/BC active APF mode
  67. * @Min: 0 (disabled)
  68. * @Max: 1 (enabled)
  69. * @Default: 0 (disabled)
  70. *
  71. * This config item controls MC/BC APF in active mode. There are 3 modes:
  72. * 0) disabled - APF is disabled in active mode
  73. * 1) enabled - APF is enabled for all packets in active mode
  74. * 2) adaptive - APF is enabled for packets up to some throughput threshold
  75. *
  76. * Related: gActiveUcBpfMode
  77. *
  78. * Supported Feature: Active Mode APF
  79. *
  80. * Usage: Internal/External
  81. * </ini>
  82. */
  83. #define CFG_ACTIVE_MC_BC_APF_MODE CFG_INI_UINT( \
  84. "gActiveUcBpfMode", \
  85. ACTIVE_APF_DISABLED, \
  86. ACTIVE_APF_ENABLED, \
  87. ACTIVE_APF_DISABLED, \
  88. CFG_VALUE_OR_DEFAULT, \
  89. "Control MC/BC active APF mode")
  90. #define CFG_PMO_APF_ALL \
  91. CFG(CFG_PMO_APF_ENABLE) \
  92. CFG(CFG_ACTIVE_UC_APF_MODE) \
  93. CFG(CFG_ACTIVE_MC_BC_APF_MODE)
  94. #endif /* WLAN_PMO_APF_CFG_H__ */