wmi_unified_reg_api.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Copyright (c) 2017 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 the API definitions for the Unified Wireless Module
  20. * Interface (WMI) which are specific to Regulatory module.
  21. */
  22. #ifndef _WMI_UNIFIED_REG_API_H_
  23. #define _WMI_UNIFIED_REG_API_H_
  24. #include "reg_services_public_struct.h"
  25. /**
  26. * reg_chan_list_update_handler() - function to update channel list
  27. * @handle: wma handle
  28. * @event_buf: event buffer
  29. * @len: length of buffer
  30. *
  31. * Return: 0 for success or error code
  32. */
  33. QDF_STATUS wmi_extract_reg_chan_list_update_event(void *wmi_hdl,
  34. uint8_t *evt_buf,
  35. struct cur_regulatory_info
  36. *reg_info,
  37. uint32_t len);
  38. /*
  39. * wmi_unified_send_stop_11d_scan_cmd() - stop 11d scan
  40. * @wmi_handle: wmi handle
  41. * @stop_11d_scan: pointer to 11d scan stop req.
  42. *
  43. * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
  44. */
  45. QDF_STATUS wmi_unified_send_stop_11d_scan_cmd(wmi_unified_t wmi_handle,
  46. struct reg_stop_11d_scan_req *stop_11d_scan);
  47. /*
  48. * wmi_unified_send_start_11d_scan_cmd() - start 11d scan
  49. * @wmi_handle: wmi handle
  50. * @start_11d_scan: pointer to 11d scan start req.
  51. *
  52. * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
  53. */
  54. QDF_STATUS wmi_unified_send_start_11d_scan_cmd(wmi_unified_t wmi_handle,
  55. struct reg_start_11d_scan_req *start_11d_scan);
  56. /**
  57. * wmi_extract_reg_11d_new_cc_event() - function to extract the 11d new country
  58. * @wmi_hdl: wmi handle
  59. * @evt_buf: event buffer
  60. * @reg_11d_new_cc: pointer to new 11d country info
  61. * @len: length of buffer
  62. *
  63. * Return: 0 for success or error code
  64. */
  65. QDF_STATUS wmi_extract_reg_11d_new_cc_event(void *wmi_hdl,
  66. uint8_t *evt_buf,
  67. struct reg_11d_new_country *reg_11d_new_cc,
  68. uint32_t len);
  69. #endif /* _WMI_UNIFIED_REG_API_H_ */