wmi_unified_extscan_api.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /*
  2. * Copyright (c) 2013-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 _WMI_UNIFIED_EXTSCAN_API_H_
  19. #define _WMI_UNIFIED_EXTSCAN_API_H_
  20. /**
  21. * wmi_unified_reset_passpoint_network_list_cmd() - reset passpoint network list
  22. * @wmi_handle: wmi handle
  23. * @req: passpoint network request structure
  24. *
  25. * This function sends down WMI command with network id set to wildcard id.
  26. * firmware shall clear all the config entries
  27. *
  28. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  29. */
  30. QDF_STATUS wmi_unified_reset_passpoint_network_list_cmd(
  31. wmi_unified_t wmi_handle,
  32. struct wifi_passpoint_req_param *req);
  33. /**
  34. * wmi_unified_set_passpoint_network_list_cmd() - set passpoint network list
  35. * @wmi_handle: wmi handle
  36. * @req: passpoint network request structure
  37. *
  38. * This function reads the incoming @req and fill in the destination
  39. * WMI structure and send down the passpoint configs down to the firmware
  40. *
  41. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  42. */
  43. QDF_STATUS wmi_unified_set_passpoint_network_list_cmd(
  44. wmi_unified_t wmi_handle,
  45. struct wifi_passpoint_req_param *req);
  46. /** wmi_unified_set_epno_network_list_cmd() - set epno network list
  47. * @wmi_handle: wmi handle
  48. * @req: epno config params request structure
  49. *
  50. * This function reads the incoming epno config request structure
  51. * and constructs the WMI message to the firmware.
  52. *
  53. * Returns: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures,
  54. * error number otherwise
  55. */
  56. QDF_STATUS wmi_unified_set_epno_network_list_cmd(
  57. wmi_unified_t wmi_handle,
  58. struct wifi_enhanced_pno_params *req);
  59. /**
  60. * wmi_unified_extscan_get_capabilities_cmd() - extscan get capabilities
  61. * @wmi_handle: wmi handle
  62. * @pgetcapab: get capabilities params
  63. *
  64. * This function send request to fw to get extscan capabilities.
  65. *
  66. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  67. */
  68. QDF_STATUS wmi_unified_extscan_get_capabilities_cmd(
  69. wmi_unified_t wmi_handle,
  70. struct extscan_capabilities_params *pgetcapab);
  71. /**
  72. * wmi_unified_extscan_get_cached_results_cmd() - extscan get cached results
  73. * @wmi_handle: wmi handle
  74. * @pcached_results: cached results parameters
  75. *
  76. * This function send request to fw to get cached results.
  77. *
  78. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  79. */
  80. QDF_STATUS wmi_unified_extscan_get_cached_results_cmd(
  81. wmi_unified_t wmi_handle,
  82. struct extscan_cached_result_params *pcached_results);
  83. /**
  84. * wmi_unified_extscan_stop_change_monitor_cmd() - send stop change monitor cmd
  85. * @wmi_handle: wmi handle
  86. * @reset_req: Reset change request params
  87. *
  88. * This function sends stop change monitor request to fw.
  89. *
  90. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  91. */
  92. QDF_STATUS wmi_unified_extscan_stop_change_monitor_cmd(
  93. wmi_unified_t wmi_handle,
  94. struct extscan_capabilities_reset_params *reset_req);
  95. /**
  96. * wmi_unified_extscan_start_change_monitor_cmd() - start change monitor cmd
  97. * @wmi_handle: wmi handle
  98. * @psigchange: change monitor request params
  99. *
  100. * This function sends start change monitor request to fw.
  101. *
  102. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  103. */
  104. QDF_STATUS wmi_unified_extscan_start_change_monitor_cmd(
  105. wmi_unified_t wmi_handle,
  106. struct extscan_set_sig_changereq_params *psigchange);
  107. /**
  108. * wmi_unified_extscan_stop_hotlist_monitor_cmd() - stop hotlist monitor
  109. * @wmi_handle: wmi handle
  110. * @photlist_reset: hotlist reset params
  111. *
  112. * This function configures hotlist monitor to stop in fw.
  113. *
  114. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  115. */
  116. QDF_STATUS wmi_unified_extscan_stop_hotlist_monitor_cmd(
  117. wmi_unified_t wmi_handle,
  118. struct extscan_bssid_hotlist_reset_params *photlist_reset);
  119. /**
  120. * wmi_unified_extscan_start_hotlist_monitor_cmd() - start hotlist monitor
  121. * @wmi_handle: wmi handle
  122. * @params: hotlist params
  123. *
  124. * This function configures hotlist monitor to start in fw.
  125. *
  126. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  127. */
  128. QDF_STATUS wmi_unified_extscan_start_hotlist_monitor_cmd(
  129. wmi_unified_t wmi_handle,
  130. struct extscan_bssid_hotlist_set_params *params);
  131. /**
  132. * wmi_unified_stop_extscan_cmd() - stop extscan command to fw.
  133. * @wmi_handle: wmi handle
  134. * @pstopcmd: stop scan command request params
  135. *
  136. * This function sends stop extscan request to fw.
  137. *
  138. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
  139. */
  140. QDF_STATUS wmi_unified_stop_extscan_cmd(
  141. wmi_unified_t wmi_handle,
  142. struct extscan_stop_req_params *pstopcmd);
  143. /**
  144. * wmi_unified_start_extscan_cmd() - start extscan command to fw.
  145. * @wmi_handle: wmi handle
  146. * @pstart: scan command request params
  147. *
  148. * This function sends start extscan request to fw.
  149. *
  150. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
  151. */
  152. QDF_STATUS wmi_unified_start_extscan_cmd(
  153. wmi_unified_t wmi_handle,
  154. struct wifi_scan_cmd_req_params *pstart);
  155. #endif /* _WMI_UNIFIED_EXTSCAN_API_H_ */