|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -20,18 +20,10 @@
|
|
|
#include "wmi_unified_param.h"
|
|
|
#include "qdf_module.h"
|
|
|
|
|
|
-/**
|
|
|
- * wmi_unified_set_ant_switch_tbl_cmd_send() - WMI ant switch tbl cmd function
|
|
|
- * @param wmi_handle : handle to WMI.
|
|
|
- * @param param : pointer to hold ant switch tbl param
|
|
|
- *
|
|
|
- * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
|
- */
|
|
|
-QDF_STATUS wmi_unified_set_ant_switch_tbl_cmd_send(void *wmi_hdl,
|
|
|
- struct ant_switch_tbl_params *param)
|
|
|
+QDF_STATUS wmi_unified_set_ant_switch_tbl_cmd_send(
|
|
|
+ wmi_unified_t wmi_handle,
|
|
|
+ struct ant_switch_tbl_params *param)
|
|
|
{
|
|
|
- wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
-
|
|
|
if (wmi_handle->ops->send_set_ant_switch_tbl_cmd)
|
|
|
return wmi_handle->ops->send_set_ant_switch_tbl_cmd(wmi_handle,
|
|
|
param);
|
|
@@ -39,18 +31,10 @@ QDF_STATUS wmi_unified_set_ant_switch_tbl_cmd_send(void *wmi_hdl,
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * wmi_unified_smart_ant_enable_cmd_send() - WMI smart ant enable function
|
|
|
- * @param wmi_handle : handle to WMI.
|
|
|
- * @param param : pointer to hold antenna param
|
|
|
- *
|
|
|
- * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
|
- */
|
|
|
-QDF_STATUS wmi_unified_smart_ant_enable_cmd_send(void *wmi_hdl,
|
|
|
- struct smart_ant_enable_params *param)
|
|
|
+QDF_STATUS wmi_unified_smart_ant_enable_cmd_send(
|
|
|
+ wmi_unified_t wmi_handle,
|
|
|
+ struct smart_ant_enable_params *param)
|
|
|
{
|
|
|
- wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
-
|
|
|
if (wmi_handle->ops->send_smart_ant_enable_cmd)
|
|
|
return wmi_handle->ops->send_smart_ant_enable_cmd(wmi_handle,
|
|
|
param);
|
|
@@ -58,81 +42,49 @@ QDF_STATUS wmi_unified_smart_ant_enable_cmd_send(void *wmi_hdl,
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * wmi_unified_smart_ant_set_rx_ant_cmd_send() - WMI set rx antenna function
|
|
|
- * @param wmi_handle : handle to WMI.
|
|
|
- * @param param : pointer to hold antenna param
|
|
|
- *
|
|
|
- * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
|
- */
|
|
|
-QDF_STATUS wmi_unified_smart_ant_set_rx_ant_cmd_send(void *wmi_hdl,
|
|
|
- struct smart_ant_rx_ant_params *param)
|
|
|
+QDF_STATUS wmi_unified_smart_ant_set_rx_ant_cmd_send(
|
|
|
+ wmi_unified_t wmi_handle,
|
|
|
+ struct smart_ant_rx_ant_params *param)
|
|
|
{
|
|
|
- wmi_unified_t wmi = (wmi_unified_t) wmi_hdl;
|
|
|
-
|
|
|
- if (wmi->ops->send_smart_ant_set_rx_ant_cmd)
|
|
|
- return wmi->ops->send_smart_ant_set_rx_ant_cmd(wmi, param);
|
|
|
+ if (wmi_handle->ops->send_smart_ant_set_rx_ant_cmd)
|
|
|
+ return wmi_handle->ops->send_smart_ant_set_rx_ant_cmd(
|
|
|
+ wmi_handle, param);
|
|
|
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * wmi_unified_smart_ant_set_tx_ant_cmd_send() - WMI set tx antenna function
|
|
|
- * @param wmi_handle : handle to WMI.
|
|
|
- * @param param : pointer to hold antenna param
|
|
|
- *
|
|
|
- * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
|
- */
|
|
|
-QDF_STATUS wmi_unified_smart_ant_set_tx_ant_cmd_send(void *wmi_hdl,
|
|
|
+QDF_STATUS wmi_unified_smart_ant_set_tx_ant_cmd_send(
|
|
|
+ wmi_unified_t wmi_handle,
|
|
|
uint8_t macaddr[QDF_MAC_ADDR_SIZE],
|
|
|
- struct smart_ant_tx_ant_params *param)
|
|
|
+ struct smart_ant_tx_ant_params *param)
|
|
|
{
|
|
|
- wmi_unified_t wmi = (wmi_unified_t) wmi_hdl;
|
|
|
-
|
|
|
- if (wmi->ops->send_smart_ant_set_tx_ant_cmd)
|
|
|
- return wmi->ops->send_smart_ant_set_tx_ant_cmd(wmi, macaddr,
|
|
|
- param);
|
|
|
+ if (wmi_handle->ops->send_smart_ant_set_tx_ant_cmd)
|
|
|
+ return wmi_handle->ops->send_smart_ant_set_tx_ant_cmd(
|
|
|
+ wmi_handle, macaddr, param);
|
|
|
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * wmi_unified_smart_ant_set_training_info_cmd_send() - WMI set tx antenna function
|
|
|
- * @param wmi_handle : handle to WMI.
|
|
|
- * @param param : pointer to hold antenna param
|
|
|
- *
|
|
|
- * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
|
- */
|
|
|
-QDF_STATUS wmi_unified_smart_ant_set_training_info_cmd_send(void *wmi_hdl,
|
|
|
+QDF_STATUS wmi_unified_smart_ant_set_training_info_cmd_send(
|
|
|
+ wmi_unified_t wmi_handle,
|
|
|
uint8_t macaddr[QDF_MAC_ADDR_SIZE],
|
|
|
- struct smart_ant_training_info_params *param)
|
|
|
+ struct smart_ant_training_info_params *param)
|
|
|
{
|
|
|
- wmi_unified_t wmi = (wmi_unified_t) wmi_hdl;
|
|
|
-
|
|
|
- if (wmi->ops->send_smart_ant_set_training_info_cmd)
|
|
|
- return wmi->ops->send_smart_ant_set_training_info_cmd(wmi,
|
|
|
- macaddr, param);
|
|
|
+ if (wmi_handle->ops->send_smart_ant_set_training_info_cmd)
|
|
|
+ return wmi_handle->ops->send_smart_ant_set_training_info_cmd(
|
|
|
+ wmi_handle, macaddr, param);
|
|
|
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * wmi_unified_smart_ant_node_config_cmd_send() - WMI set node config function
|
|
|
- * @param wmi_handle : handle to WMI.
|
|
|
- * @param macaddr : MAC address
|
|
|
- * @param param : pointer to hold node parameter
|
|
|
- *
|
|
|
- * @return QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
|
- */
|
|
|
-QDF_STATUS wmi_unified_smart_ant_node_config_cmd_send(void *wmi_hdl,
|
|
|
- uint8_t macaddr[QDF_MAC_ADDR_SIZE],
|
|
|
- struct smart_ant_node_config_params *param)
|
|
|
+QDF_STATUS wmi_unified_smart_ant_node_config_cmd_send(
|
|
|
+ wmi_unified_t wmi_handle,
|
|
|
+ uint8_t macaddr[QDF_MAC_ADDR_SIZE],
|
|
|
+ struct smart_ant_node_config_params *param)
|
|
|
{
|
|
|
- wmi_unified_t wmi = (wmi_unified_t) wmi_hdl;
|
|
|
-
|
|
|
- if (wmi->ops->send_smart_ant_set_node_config_cmd)
|
|
|
- return wmi->ops->send_smart_ant_set_node_config_cmd(wmi,
|
|
|
- macaddr, param);
|
|
|
+ if (wmi_handle->ops->send_smart_ant_set_node_config_cmd)
|
|
|
+ return wmi_handle->ops->send_smart_ant_set_node_config_cmd(
|
|
|
+ wmi_handle, macaddr, param);
|
|
|
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|