wmi_unified_11be_setup_api.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #ifndef _WMI_UNIFIED_11BE_API_H_
  17. #define _WMI_UNIFIED_11BE_API_H_
  18. #include <wmi_unified_11be_param.h>
  19. #ifdef WLAN_FEATURE_11BE_MLO
  20. /**
  21. * wmi_mlo_setup_cmd_send() - Send MLO setup command
  22. * @wmi_handle: WMI handle for this pdev
  23. * @params: MLO setup params
  24. *
  25. * Return: QDF_STATUS code
  26. */
  27. QDF_STATUS wmi_mlo_setup_cmd_send(wmi_unified_t wmi_handle,
  28. struct wmi_mlo_setup_params *params);
  29. /**
  30. * wmi_mlo_teardown_cmd_send() - Send MLO teardown command
  31. * @wmi_handle: WMI handle for this pdev
  32. * @params: MLO teardown params
  33. *
  34. * Return: QDF_STATUS code
  35. */
  36. QDF_STATUS wmi_mlo_teardown_cmd_send(wmi_unified_t wmi_handle,
  37. struct wmi_mlo_teardown_params *params);
  38. /**
  39. * wmi_mlo_ready_cmd_send() - Send MLO ready command
  40. * @wmi_handle: WMI handle for this pdev
  41. * @params: MLO ready params
  42. *
  43. * Return: QDF_STATUS code
  44. */
  45. QDF_STATUS wmi_mlo_ready_cmd_send(wmi_unified_t wmi_handle,
  46. struct wmi_mlo_ready_params *params);
  47. /**
  48. * wmi_extract_mlo_setup_cmpl_event() - Extract MLO setup completion event
  49. * @wmi_handle: WMI handle for this pdev
  50. * @buf: Event buffer
  51. * @params: MLO setup event params
  52. *
  53. * Return: QDF_STATUS code
  54. */
  55. QDF_STATUS
  56. wmi_extract_mlo_setup_cmpl_event(wmi_unified_t wmi_handle,
  57. uint8_t *buf,
  58. struct wmi_mlo_setup_complete_params *params);
  59. /**
  60. * wmi_extract_mlo_teardown_cmpl_event() - Extract MLO teardown completion
  61. * @wmi_handle: WMI handle for this pdev
  62. * @buf: Event buffer
  63. * @params: MLO teardown event params
  64. *
  65. * Return: QDF_STATUS code
  66. */
  67. QDF_STATUS
  68. wmi_extract_mlo_teardown_cmpl_event(wmi_unified_t wmi_handle,
  69. uint8_t *buf,
  70. struct wmi_mlo_teardown_cmpl_params *param);
  71. #endif /*WLAN_FEATURE_11BE_MLO*/
  72. #endif /*_WMI_UNIFIED_11BE_API_H_*/