wmi_unified_dcs_api.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * Copyright (c) 2020-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. /**
  17. * DOC: This file contains the API definitions for the Unified Wireless Module
  18. * Interface (WMI) which are specific to DFS module.
  19. */
  20. #ifndef _WMI_UNIFIED_DCS_API_H_
  21. #define _WMI_UNIFIED_DCS_API_H_
  22. #include <qdf_status.h>
  23. #include <wmi_unified_api.h>
  24. #include <wmi_unified_priv.h>
  25. #include <wlan_objmgr_vdev_obj.h>
  26. /**
  27. * wmi_extract_dcs_interference_type() - extract dcs interference type
  28. * @wmi_handle: wmi handle
  29. * @evt_buf: pointer to event buffer
  30. * @param: Pointer to hold dcs interference param
  31. *
  32. * This function gets called to extract dcs interference type from dcs FW event
  33. *
  34. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  35. */
  36. QDF_STATUS wmi_extract_dcs_interference_type(
  37. void *wmi_hdl,
  38. void *evt_buf,
  39. struct wlan_host_dcs_interference_param *param);
  40. /**
  41. * wmi_extract_dcs_im_tgt_stats() - extract dcs im target stats
  42. * @wmi_handle: wmi handle
  43. * @evt_buf: pointer to event buffer
  44. * @wlan_stat: Pointer to hold wlan stats
  45. *
  46. * This function gets called to extract dcs im target stats from event
  47. *
  48. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  49. */
  50. QDF_STATUS wmi_extract_dcs_im_tgt_stats(
  51. void *wmi_hdl,
  52. void *evt_buf,
  53. struct wlan_host_dcs_im_tgt_stats *wlan_stat);
  54. /*
  55. * wmi_extract_dcs_awgn_info() - extract DCS AWGN interference info from event
  56. * @wmi_handle: WMI handle
  57. * @evt_buf: Pointer to event buffer
  58. * @awgn_info: Pointer to hold AWGN interference info
  59. *
  60. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  61. */
  62. QDF_STATUS
  63. wmi_extract_dcs_awgn_info(wmi_unified_t wmi_hdl, void *evt_buf,
  64. struct wlan_host_dcs_awgn_info *awgn_info);
  65. /**
  66. * wmi_send_dcs_pdev_param() - send dcs pdev param
  67. * @wmi_handle: wmi handle
  68. * @pdev_idx: pdev id
  69. * @is_host_pdev_id: host pdev_id or not
  70. * @dcs_enable: value of dcs enable
  71. *
  72. * This functions gets called to send dcs pdev param
  73. *
  74. * Return: QDF_STATUS
  75. */
  76. QDF_STATUS wmi_send_dcs_pdev_param(wmi_unified_t wmi_handle,
  77. uint32_t pdev_idx,
  78. bool is_host_pdev_id,
  79. uint32_t dcs_enable);
  80. #endif /* _WMI_UNIFIED_DCS_API_H_ */