wmi_unified_smart_ant_api.h 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. * Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /**
  19. * DOC: Implement API's specific to Smart Antenna component.
  20. */
  21. #ifndef _WMI_UNIFIED_SMART_ANT_API_H_
  22. #define _WMI_UNIFIED_SMART_ANT_API_H_
  23. #include "wmi_unified_smart_ant_param.h"
  24. /**
  25. * wmi_unified_smart_ant_enable_cmd_send() - WMI smart ant enable function
  26. * @wmi_handle: handle to WMI.
  27. * @param: pointer to hold antenna param
  28. *
  29. * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  30. */
  31. QDF_STATUS wmi_unified_smart_ant_enable_cmd_send(
  32. wmi_unified_t wmi_handle,
  33. struct smart_ant_enable_params *param);
  34. /**
  35. * wmi_unified_smart_ant_set_rx_ant_cmd_send() - WMI set rx antenna function
  36. * @wmi_handle: handle to WMI.
  37. * @param: pointer to hold antenna param
  38. *
  39. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  40. */
  41. QDF_STATUS wmi_unified_smart_ant_set_rx_ant_cmd_send(
  42. wmi_unified_t wmi_handle,
  43. struct smart_ant_rx_ant_params *param);
  44. /**
  45. * wmi_unified_smart_ant_set_tx_ant_cmd_send() - WMI set tx antenna function
  46. * @wmi_handle: handle to WMI.
  47. * @param: pointer to hold antenna param
  48. *
  49. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  50. */
  51. QDF_STATUS wmi_unified_smart_ant_set_tx_ant_cmd_send(
  52. wmi_unified_t wmi_handle,
  53. uint8_t macaddr[QDF_MAC_ADDR_SIZE],
  54. struct smart_ant_tx_ant_params *param);
  55. /**
  56. * wmi_unified_smart_ant_set_training_info_cmd_send() - WMI set tx antenna function
  57. * @wmi_handle: handle to WMI.
  58. * @param: pointer to hold antenna param
  59. *
  60. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  61. */
  62. QDF_STATUS wmi_unified_smart_ant_set_training_info_cmd_send(
  63. wmi_unified_t wmi_handle,
  64. uint8_t macaddr[QDF_MAC_ADDR_SIZE],
  65. struct smart_ant_training_info_params *param);
  66. /**
  67. * wmi_unified_smart_ant_node_config_cmd_send() - WMI set node config function
  68. * @wmi_handle: handle to WMI.
  69. * @macaddr: MAC address
  70. * @param: pointer to hold node parameter
  71. *
  72. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  73. */
  74. QDF_STATUS wmi_unified_smart_ant_node_config_cmd_send(
  75. wmi_unified_t wmi_handle,
  76. uint8_t macaddr[QDF_MAC_ADDR_SIZE],
  77. struct smart_ant_node_config_params *param);
  78. /**
  79. * wmi_unified_set_ant_switch_tbl_cmd_send() - WMI ant switch tbl cmd function
  80. * @wmi_handle: handle to WMI.
  81. * @param: pointer to hold ant switch tbl param
  82. *
  83. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  84. */
  85. QDF_STATUS wmi_unified_set_ant_switch_tbl_cmd_send(
  86. wmi_unified_t wmi_handle,
  87. struct ant_switch_tbl_params *param);
  88. #endif /* _WMI_UNIFIED_SMART_ANT_API_H_ */