wlan_p2p_cfg.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /*
  2. * Copyright (c) 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. #if !defined(CONFIG_P2P_H__)
  19. #define CONFIG_P2P_H__
  20. #include "cfg_define.h"
  21. #include "cfg_converged.h"
  22. #include "qdf_types.h"
  23. /*
  24. * <ini>
  25. * gGoKeepAlivePeriod - P2P GO keep alive period.
  26. * @Min: 1
  27. * @Max: 65535
  28. * @Default: 20
  29. *
  30. * This is P2P GO keep alive period.
  31. *
  32. * Related: None.
  33. *
  34. * Supported Feature: P2P
  35. *
  36. * Usage: Internal/External
  37. *
  38. * </ini>
  39. */
  40. #define CFG_GO_KEEP_ALIVE_PERIOD CFG_INI_UINT( \
  41. "gGoKeepAlivePeriod", \
  42. 1, \
  43. 65535, \
  44. 20, \
  45. CFG_VALUE_OR_DEFAULT, \
  46. "P2P GO keep alive period")
  47. /*
  48. * <ini>
  49. * gGoLinkMonitorPeriod - period where link is idle and where
  50. * we send NULL frame
  51. * @Min: 3
  52. * @Max: 50
  53. * @Default: 10
  54. *
  55. * This is period where link is idle and where we send NULL frame for P2P GO.
  56. *
  57. * Related: None.
  58. *
  59. * Supported Feature: P2P
  60. *
  61. * Usage: Internal/External
  62. *
  63. * </ini>
  64. */
  65. #define CFG_GO_LINK_MONITOR_PERIOD CFG_INI_UINT( \
  66. "gGoLinkMonitorPeriod", \
  67. 3, \
  68. 50, \
  69. 10, \
  70. CFG_VALUE_OR_DEFAULT, \
  71. "period where link is idle and where we send NULL frame")
  72. /*
  73. * <ini>
  74. * isP2pDeviceAddrAdministrated - Enables to derive the P2P MAC address from
  75. * the primary MAC address
  76. * @Min: 0
  77. * @Max: 1
  78. * @Default: 1
  79. *
  80. * This ini is used to enable/disable to derive the P2P MAC address from the
  81. * primary MAC address.
  82. *
  83. * Related: None.
  84. *
  85. * Supported Feature: P2P
  86. *
  87. * Usage: Internal/External
  88. *
  89. * </ini>
  90. */
  91. #define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED CFG_INI_BOOL( \
  92. "isP2pDeviceAddrAdministrated", \
  93. 1, \
  94. "derive the P2P MAC address from the primary MAC address")
  95. /*
  96. * <ini>
  97. * gSkipDfsChannelInP2pSearch - Skip DFS Channel in case of P2P Search
  98. * @Min: 0
  99. * @Max: 1
  100. * @Default: 1
  101. *
  102. * This ini is used to disable(skip) dfs channel in p2p search.
  103. * Related: None.
  104. *
  105. * Supported Feature: DFS P2P
  106. *
  107. * Usage: Internal/External
  108. *
  109. * </ini>
  110. */
  111. #define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH CFG_INI_BOOL( \
  112. "gSkipDfsChannelInP2pSearch", \
  113. 1, \
  114. "skip dfs channel in p2p search")
  115. #define CFG_P2P_ALL \
  116. CFG(CFG_GO_KEEP_ALIVE_PERIOD) \
  117. CFG(CFG_GO_LINK_MONITOR_PERIOD) \
  118. CFG(CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED) \
  119. CFG(CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH)
  120. #endif