wmi_unified_cfr_api.c 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright (c) 2019, 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. #include "wmi_unified_priv.h"
  17. #ifdef WLAN_CFR_ENABLE
  18. QDF_STATUS wmi_unified_send_peer_cfr_capture_cmd(wmi_unified_t wmi_handle,
  19. struct peer_cfr_params *param)
  20. {
  21. if (wmi_handle->ops->send_peer_cfr_capture_cmd)
  22. return wmi_handle->ops->send_peer_cfr_capture_cmd(wmi_handle,
  23. param);
  24. return QDF_STATUS_E_FAILURE;
  25. }
  26. /**
  27. * wmi_extract_cfr_peer_tx_event_param() - extract tx event params from event
  28. */
  29. QDF_STATUS
  30. wmi_extract_cfr_peer_tx_event_param(wmi_unified_t wmi_handle, void *evt_buf,
  31. wmi_cfr_peer_tx_event_param *peer_tx_event)
  32. {
  33. if (wmi_handle->ops->extract_cfr_peer_tx_event_param)
  34. return wmi_handle->ops->extract_cfr_peer_tx_event_param(
  35. wmi_handle,
  36. evt_buf,
  37. peer_tx_event);
  38. return QDF_STATUS_E_FAILURE;
  39. }
  40. #ifdef WLAN_ENH_CFR_ENABLE
  41. QDF_STATUS wmi_unified_send_cfr_rcc_cmd(wmi_unified_t wmi_handle,
  42. struct cfr_rcc_param *cfg)
  43. {
  44. if (wmi_handle->ops->send_cfr_rcc_cmd)
  45. return wmi_handle->ops->send_cfr_rcc_cmd(wmi_handle, cfg);
  46. return QDF_STATUS_E_FAILURE;
  47. }
  48. #endif /* WLAN_ENH_CFR_ENABLE */
  49. #endif /* WLAN_CFR_ENABLE */