wmi_unified_11be_api.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2022 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. /*
  18. * This file contains the API definitions for the Unified Wireless Module
  19. * Interface (WMI) specific to 11be.
  20. */
  21. #ifndef _WMI_UNIFIED_11BE_API_H_
  22. #define _WMI_UNIFIED_11BE_API_H_
  23. #include <wmi_unified_api.h>
  24. #include <wmi_unified_priv.h>
  25. #ifdef WLAN_FEATURE_11BE_MLO
  26. /**
  27. * wmi_extract_mlo_link_set_active_resp() - extract mlo link set active
  28. * response event
  29. * @wmi: wmi handle
  30. * @evt_buf: pointer to event buffer
  31. * @evt: Pointer to hold mlo link set active response event
  32. *
  33. * This function gets called to extract mlo link set active response event
  34. *
  35. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  36. */
  37. QDF_STATUS
  38. wmi_extract_mlo_link_set_active_resp(wmi_unified_t wmi,
  39. void *evt_buf,
  40. struct mlo_link_set_active_resp *evt);
  41. /**
  42. * wmi_send_mlo_link_set_active_cmd() - send mlo link set active command
  43. * @wmi: WMI handle for this pdev
  44. * @param: Pointer to mlo link set active param
  45. *
  46. * Return: QDF_STATUS code
  47. */
  48. QDF_STATUS
  49. wmi_send_mlo_link_set_active_cmd(wmi_unified_t wmi_handle,
  50. struct mlo_link_set_active_param *param);
  51. #endif /*WLAN_FEATURE_11BE_MLO*/
  52. #ifdef WLAN_FEATURE_11BE
  53. /**
  54. * wmi_send_mlo_peer_tid_to_link_map_cmd() - send TID-to-link mapping command
  55. * @wmi: WMI handle for this pdev
  56. * @params: Pointer to TID-to-link mapping params
  57. */
  58. QDF_STATUS wmi_send_mlo_peer_tid_to_link_map_cmd(
  59. wmi_unified_t wmi,
  60. struct wmi_host_tid_to_link_map_params *params);
  61. #endif /* WLAN_FEATURE_11BE */
  62. #endif /*_WMI_UNIFIED_11BE_API_H_*/