wmi_unified_11be_api.c 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. * DOC: Implement API's specific to 11be.
  19. */
  20. #include "wmi_unified_11be_api.h"
  21. /**
  22. * wmi_extract_mlo_link_set_active_resp() - extract mlo link set active resp
  23. * from event
  24. * @wmi: WMI handle for this pdev
  25. * @evt_buf: pointer to event buffer
  26. * @resp: Pointer to hold mlo link set active resp
  27. *
  28. * Return: QDF_STATUS code
  29. */
  30. QDF_STATUS
  31. wmi_extract_mlo_link_set_active_resp(wmi_unified_t wmi,
  32. void *evt_buf,
  33. struct mlo_link_set_active_resp *resp)
  34. {
  35. if (wmi->ops->extract_mlo_link_set_active_resp) {
  36. return wmi->ops->extract_mlo_link_set_active_resp(wmi,
  37. evt_buf,
  38. resp);
  39. }
  40. return QDF_STATUS_E_FAILURE;
  41. }
  42. /**
  43. * wmi_send_mlo_link_set_active_cmd() - send mlo link set active command
  44. * @wmi: WMI handle for this pdev
  45. * @param: Pointer to mlo link set active param
  46. *
  47. * Return: QDF_STATUS code
  48. */
  49. QDF_STATUS
  50. wmi_send_mlo_link_set_active_cmd(wmi_unified_t wmi,
  51. struct mlo_link_set_active_param *param)
  52. {
  53. if (wmi->ops->send_mlo_link_set_active_cmd)
  54. return wmi->ops->send_mlo_link_set_active_cmd(wmi, param);
  55. return QDF_STATUS_E_FAILURE;
  56. }
  57. #ifdef WLAN_FEATURE_11BE
  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. {
  62. if (wmi->ops->send_mlo_peer_tid_to_link_map)
  63. return wmi->ops->send_mlo_peer_tid_to_link_map(wmi, params);
  64. return QDF_STATUS_E_FAILURE;
  65. }
  66. #endif /* WLAN_FEATURE_11BE */