wmi_unified_11be_setup_api.h 2.6 KB

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