qcacmn: Fix for removal of void pointer usage
Add changes to remove usage of void pointer for wmi_handle Instead use an opaque pointer(set 2) Change-Id: I06a89adaf15c6b398dbc901518aa83927b7ca16a CRs-Fixed: 2479298
This commit is contained in:
@@ -118,7 +118,7 @@ QDF_STATUS target_if_crypto_set_key(struct wlan_objmgr_vdev *vdev,
|
|||||||
struct cdp_peer *peer = NULL;
|
struct cdp_peer *peer = NULL;
|
||||||
uint8_t peer_id;
|
uint8_t peer_id;
|
||||||
uint8_t def_tx_idx;
|
uint8_t def_tx_idx;
|
||||||
void *pdev_wmi_handle;
|
wmi_unified_t pdev_wmi_handle;
|
||||||
bool pairwise;
|
bool pairwise;
|
||||||
QDF_STATUS status;
|
QDF_STATUS status;
|
||||||
|
|
||||||
|
@@ -285,7 +285,7 @@ static QDF_STATUS target_if_dfs_set_phyerr_filter_offload(
|
|||||||
bool dfs_phyerr_filter_offload)
|
bool dfs_phyerr_filter_offload)
|
||||||
{
|
{
|
||||||
QDF_STATUS status;
|
QDF_STATUS status;
|
||||||
void *wmi_handle;
|
wmi_unified_t wmi_handle;
|
||||||
|
|
||||||
if (!pdev) {
|
if (!pdev) {
|
||||||
target_if_err("null pdev");
|
target_if_err("null pdev");
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -140,7 +140,7 @@ QDF_STATUS target_if_green_ap_enable_egap(
|
|||||||
struct wlan_green_ap_egap_params *egap_params)
|
struct wlan_green_ap_egap_params *egap_params)
|
||||||
{
|
{
|
||||||
struct wlan_pdev_green_ap_ctx *green_ap_ctx;
|
struct wlan_pdev_green_ap_ctx *green_ap_ctx;
|
||||||
void *wmi_hdl;
|
wmi_unified_t wmi_hdl;
|
||||||
|
|
||||||
if (!pdev) {
|
if (!pdev) {
|
||||||
green_ap_err("pdev context passed is NULL");
|
green_ap_err("pdev context passed is NULL");
|
||||||
@@ -175,7 +175,7 @@ QDF_STATUS target_if_green_ap_enable_egap(
|
|||||||
QDF_STATUS target_if_green_ap_set_ps_on_off(struct wlan_objmgr_pdev *pdev,
|
QDF_STATUS target_if_green_ap_set_ps_on_off(struct wlan_objmgr_pdev *pdev,
|
||||||
bool value, uint8_t pdev_id)
|
bool value, uint8_t pdev_id)
|
||||||
{
|
{
|
||||||
void *wmi_hdl;
|
wmi_unified_t wmi_hdl;
|
||||||
|
|
||||||
if (!pdev) {
|
if (!pdev) {
|
||||||
green_ap_err("pdev context passed is NULL");
|
green_ap_err("pdev context passed is NULL");
|
||||||
|
@@ -117,7 +117,8 @@ int init_deinit_populate_service_bitmap(void *wmi_handle, uint8_t *event,
|
|||||||
*
|
*
|
||||||
* Return: zero on successful population of fw_version command or failure flag
|
* Return: zero on successful population of fw_version command or failure flag
|
||||||
*/
|
*/
|
||||||
int init_deinit_populate_fw_version_cmd(void *wmi_handle, uint8_t *event);
|
int
|
||||||
|
init_deinit_populate_fw_version_cmd(wmi_unified_t wmi_handle, uint8_t *event);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* init_deinit_populate_target_cap() - populate target cap
|
* init_deinit_populate_target_cap() - populate target cap
|
||||||
|
@@ -142,7 +142,8 @@ int init_deinit_populate_service_bitmap(void *wmi_handle, uint8_t *event,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int init_deinit_populate_fw_version_cmd(void *wmi_handle, uint8_t *event)
|
int init_deinit_populate_fw_version_cmd(wmi_unified_t wmi_handle,
|
||||||
|
uint8_t *event)
|
||||||
{
|
{
|
||||||
QDF_STATUS status;
|
QDF_STATUS status;
|
||||||
|
|
||||||
|
@@ -269,7 +269,7 @@ static QDF_STATUS wifi_pos_oem_data_req(struct wlan_objmgr_psoc *psoc,
|
|||||||
struct oem_data_req *req)
|
struct oem_data_req *req)
|
||||||
{
|
{
|
||||||
QDF_STATUS status;
|
QDF_STATUS status;
|
||||||
void *wmi_hdl = GET_WMI_HDL_FROM_PSOC(psoc);
|
wmi_unified_t wmi_hdl = GET_WMI_HDL_FROM_PSOC(psoc);
|
||||||
|
|
||||||
target_if_debug("Send oem data req to target");
|
target_if_debug("Send oem data req to target");
|
||||||
|
|
||||||
@@ -564,7 +564,7 @@ static QDF_STATUS target_if_wifi_pos_cfg_fw(struct wlan_objmgr_psoc *psoc,
|
|||||||
{
|
{
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
QDF_STATUS status;
|
QDF_STATUS status;
|
||||||
void *wmi_hdl = GET_WMI_HDL_FROM_PSOC(psoc);
|
wmi_unified_t wmi_hdl = GET_WMI_HDL_FROM_PSOC(psoc);
|
||||||
wmi_oem_dma_ring_cfg_req_fixed_param cfg = {0};
|
wmi_oem_dma_ring_cfg_req_fixed_param cfg = {0};
|
||||||
|
|
||||||
if (!wmi_hdl) {
|
if (!wmi_hdl) {
|
||||||
|
@@ -847,79 +847,271 @@ QDF_STATUS wmi_unified_pdev_utf_cmd_send(wmi_unified_t wmi_handle,
|
|||||||
uint8_t mac_id);
|
uint8_t mac_id);
|
||||||
|
|
||||||
#ifdef FEATURE_FW_LOG_PARSING
|
#ifdef FEATURE_FW_LOG_PARSING
|
||||||
QDF_STATUS wmi_unified_dbglog_cmd_send(void *wmi_hdl,
|
/**
|
||||||
|
* wmi_unified_dbglog_cmd_send() - set debug log level
|
||||||
|
* @wmi_handle: handle to WMI.
|
||||||
|
* @param: pointer to hold dbglog level parameter
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_dbglog_cmd_send(wmi_unified_t wmi_handle,
|
||||||
struct dbglog_params *param);
|
struct dbglog_params *param);
|
||||||
#else
|
#else
|
||||||
static inline QDF_STATUS
|
static inline QDF_STATUS
|
||||||
wmi_unified_dbglog_cmd_send(void *wmi_hdl,
|
wmi_unified_dbglog_cmd_send(wmi_unified_t wmi_handle,
|
||||||
struct dbglog_params *param)
|
struct dbglog_params *param)
|
||||||
{
|
{
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QDF_STATUS wmi_mgmt_unified_cmd_send(void *wmi_hdl,
|
/**
|
||||||
struct wmi_mgmt_params *param);
|
* wmi_mgmt_unified_cmd_send() - management cmd over wmi layer
|
||||||
|
* @wmi_handle: handle to WMI.
|
||||||
|
* @param: pointer to hold mgmt cmd parameter
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_mgmt_unified_cmd_send(wmi_unified_t wmi_handle,
|
||||||
|
struct wmi_mgmt_params *param);
|
||||||
|
|
||||||
QDF_STATUS wmi_offchan_data_tx_cmd_send(void *wmi_hdl,
|
/**
|
||||||
struct wmi_offchan_data_tx_params *param);
|
* wmi_offchan_data_tx_cmd_send() - Send offchan data tx cmd over wmi layer
|
||||||
|
* @wmi_handle: handle to WMI.
|
||||||
|
* @param: pointer to hold offchan data cmd parameter
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_offchan_data_tx_cmd_send(
|
||||||
|
wmi_unified_t wmi_handle,
|
||||||
|
struct wmi_offchan_data_tx_params *param);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_modem_power_state(void *wmi_hdl,
|
/**
|
||||||
uint32_t param_value);
|
* wmi_unified_modem_power_state() - set modem power state to fw
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @param_value: parameter value
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_modem_power_state(wmi_unified_t wmi_handle,
|
||||||
|
uint32_t param_value);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_set_sta_ps_mode(void *wmi_hdl,
|
/**
|
||||||
uint32_t vdev_id, uint8_t val);
|
* wmi_unified_set_sta_ps_mode() - set sta powersave params in fw
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @vdev_id: vdev id
|
||||||
|
* @val: value
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_set_sta_ps_mode(wmi_unified_t wmi_handle,
|
||||||
|
uint32_t vdev_id,
|
||||||
|
uint8_t val);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* wmi_unified_set_sta_uapsd_auto_trig_cmd() - set uapsd auto trigger command
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @param: uapsd cmd parameter strcture
|
||||||
|
*
|
||||||
|
* This function sets the trigger
|
||||||
|
* uapsd params such as service interval, delay interval
|
||||||
|
* and suspend interval which will be used by the firmware
|
||||||
|
* to send trigger frames periodically when there is no
|
||||||
|
* traffic on the transmit side.
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
||||||
|
*/
|
||||||
QDF_STATUS
|
QDF_STATUS
|
||||||
wmi_unified_set_sta_uapsd_auto_trig_cmd(void *wmi_hdl,
|
wmi_unified_set_sta_uapsd_auto_trig_cmd(wmi_unified_t wmi_handle,
|
||||||
struct sta_uapsd_trig_params *param);
|
struct sta_uapsd_trig_params *param);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_get_temperature(void *wmi_hdl);
|
/**
|
||||||
|
* wmi_get_temperature() - get pdev temperature req
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_get_temperature(wmi_unified_t wmi_handle);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_set_smps_params(void *wmi_hdl, uint8_t vdev_id,
|
/**
|
||||||
int value);
|
* wmi_set_smps_params() - set smps params
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @vdev_id: vdev id
|
||||||
|
* @value: value
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_set_smps_params(wmi_unified_t wmi_handle,
|
||||||
|
uint8_t vdev_id,
|
||||||
|
int value);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_set_mimops(void *wmi_hdl, uint8_t vdev_id, int value);
|
/**
|
||||||
|
* wmi_set_mimops() - set MIMO powersave
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @vdev_id: vdev id
|
||||||
|
* @value: value
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_set_mimops(wmi_unified_t wmi_handle,
|
||||||
|
uint8_t vdev_id, int value);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_lro_config_cmd(void *wmi_hdl,
|
/**
|
||||||
struct wmi_lro_config_cmd_t *wmi_lro_cmd);
|
* wmi_unified_lro_config_cmd() - process the LRO config command
|
||||||
|
* @wmi_handle: Pointer to wmi handle
|
||||||
|
* @wmi_lro_cmd: Pointer to LRO configuration parameters
|
||||||
|
*
|
||||||
|
* This function sends down the LRO configuration parameters to
|
||||||
|
* the firmware to enable LRO, sets the TCP flags and sets the
|
||||||
|
* seed values for the toeplitz hash generation
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS
|
||||||
|
wmi_unified_lro_config_cmd(wmi_unified_t wmi_handle,
|
||||||
|
struct wmi_lro_config_cmd_t *wmi_lro_cmd);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_set_thermal_mgmt_cmd(void *wmi_hdl,
|
/**
|
||||||
struct thermal_cmd_params *thermal_info);
|
* wmi_unified_set_thermal_mgmt_cmd() - set thermal mgmt command to fw
|
||||||
|
* @wmi_handle: Pointer to wmi handle
|
||||||
|
* @thermal_info: Thermal command information
|
||||||
|
*
|
||||||
|
* This function sends the thermal management command
|
||||||
|
* to the firmware
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS
|
||||||
|
wmi_unified_set_thermal_mgmt_cmd(wmi_unified_t wmi_handle,
|
||||||
|
struct thermal_cmd_params *thermal_info);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_peer_rate_report_cmd(void *wmi_hdl,
|
/**
|
||||||
|
* wmi_unified_peer_rate_report_cmd() - process the peer rate report command
|
||||||
|
* @wmi_handle: Pointer to wmi handle
|
||||||
|
* @rate_report_params: Pointer to peer rate report parameters
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS for success otherwise failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS
|
||||||
|
wmi_unified_peer_rate_report_cmd(
|
||||||
|
wmi_unified_t wmi_handle,
|
||||||
struct wmi_peer_rate_report_params *rate_report_params);
|
struct wmi_peer_rate_report_params *rate_report_params);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_process_update_edca_param(void *wmi_hdl,
|
/**
|
||||||
uint8_t vdev_id, bool mu_edca_param,
|
* wmi_unified_process_update_edca_param() - update EDCA params
|
||||||
struct wmi_host_wme_vparams wmm_vparams[WMI_MAX_NUM_AC]);
|
* @wmi_handle: wmi handle
|
||||||
|
* @vdev_id: vdev id.
|
||||||
|
* @mu_edca_param: mu_edca_param.
|
||||||
|
* @wmm_vparams: edca parameters
|
||||||
|
*
|
||||||
|
* This function updates EDCA parameters to the target
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS
|
||||||
|
wmi_unified_process_update_edca_param(
|
||||||
|
wmi_unified_t wmi_handle,
|
||||||
|
uint8_t vdev_id,
|
||||||
|
bool mu_edca_param,
|
||||||
|
struct wmi_host_wme_vparams wmm_vparams[WMI_MAX_NUM_AC]);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_probe_rsp_tmpl_send_cmd(void *wmi_hdl,
|
/**
|
||||||
uint8_t vdev_id,
|
* wmi_unified_probe_rsp_tmpl_send_cmd() - send probe response template to fw
|
||||||
struct wmi_probe_resp_params *probe_rsp_info);
|
* @wmi_handle: wmi handle
|
||||||
|
* @vdev_id: vdev id
|
||||||
|
* @probe_rsp_info: probe response info
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS
|
||||||
|
wmi_unified_probe_rsp_tmpl_send_cmd(
|
||||||
|
wmi_unified_t wmi_handle,
|
||||||
|
uint8_t vdev_id,
|
||||||
|
struct wmi_probe_resp_params *probe_rsp_info);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_setup_install_key_cmd(void *wmi_hdl,
|
/**
|
||||||
struct set_key_params *key_params);
|
* wmi_unified_setup_install_key_cmd - send key to install to fw
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @key_params: key parameters
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS
|
||||||
|
wmi_unified_setup_install_key_cmd(wmi_unified_t wmi_handle,
|
||||||
|
struct set_key_params *key_params);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_p2p_go_set_beacon_ie_cmd(void *wmi_hdl,
|
/**
|
||||||
uint32_t vdev_id, uint8_t *p2p_ie);
|
* wmi_unified_p2p_go_set_beacon_ie_cmd() - set beacon IE for p2p go
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @vdev_id: vdev id
|
||||||
|
* @p2p_ie: p2p IE
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_p2p_go_set_beacon_ie_cmd(wmi_unified_t wmi_hdl,
|
||||||
|
uint32_t vdev_id,
|
||||||
|
uint8_t *p2p_ie);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_scan_probe_setoui_cmd(void *wmi_hdl,
|
/**
|
||||||
struct scan_mac_oui *psetoui);
|
* wmi_unified_scan_probe_setoui_cmd() - set scan probe OUI
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @psetoui: OUI parameters
|
||||||
|
*
|
||||||
|
* set scan probe OUI parameters in firmware
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_scan_probe_setoui_cmd(wmi_unified_t wmi_handle,
|
||||||
|
struct scan_mac_oui *psetoui);
|
||||||
|
|
||||||
#ifdef IPA_OFFLOAD
|
#ifdef IPA_OFFLOAD
|
||||||
QDF_STATUS wmi_unified_ipa_offload_control_cmd(void *wmi_hdl,
|
/** wmi_unified_ipa_offload_control_cmd() - ipa offload control parameter
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @ipa_offload: ipa offload control parameter
|
||||||
|
*
|
||||||
|
* Returns: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures,
|
||||||
|
* error number otherwise
|
||||||
|
*/
|
||||||
|
QDF_STATUS
|
||||||
|
wmi_unified_ipa_offload_control_cmd(
|
||||||
|
wmi_unified_t wmi_handle,
|
||||||
struct ipa_uc_offload_control_params *ipa_offload);
|
struct ipa_uc_offload_control_params *ipa_offload);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_pno_stop_cmd(void *wmi_hdl, uint8_t vdev_id);
|
/**
|
||||||
|
* wmi_unified_pno_stop_cmd() - PNO stop request
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @vdev_id: vdev id
|
||||||
|
*
|
||||||
|
* This function request FW to stop ongoing PNO operation.
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_pno_stop_cmd(wmi_unified_t wmi_handle, uint8_t vdev_id);
|
||||||
|
|
||||||
#ifdef FEATURE_WLAN_SCAN_PNO
|
#ifdef FEATURE_WLAN_SCAN_PNO
|
||||||
QDF_STATUS wmi_unified_pno_start_cmd(void *wmi_hdl,
|
/**
|
||||||
struct pno_scan_req_params *pno);
|
* wmi_unified_pno_start_cmd() - PNO start request
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @pno: PNO request
|
||||||
|
*
|
||||||
|
* This function request FW to start PNO request.
|
||||||
|
* Request: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_pno_start_cmd(wmi_unified_t wmi_handle,
|
||||||
|
struct pno_scan_req_params *pno);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_nlo_mawc_cmd(void *wmi_hdl,
|
/**
|
||||||
struct nlo_mawc_params *params);
|
* wmi_unified_nlo_mawc_cmd() - NLO MAWC cmd configuration
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @params: Configuration parameters
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_nlo_mawc_cmd(wmi_unified_t wmi_handle,
|
||||||
|
struct nlo_mawc_params *params);
|
||||||
|
|
||||||
#ifdef WLAN_FEATURE_LINK_LAYER_STATS
|
#ifdef WLAN_FEATURE_LINK_LAYER_STATS
|
||||||
/**
|
/**
|
||||||
@@ -955,17 +1147,31 @@ QDF_STATUS wmi_unified_process_ll_stats_get_cmd(wmi_unified_t wmi_handle,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* wmi_unified_congestion_request_cmd() - send request to fw to get CCA
|
* wmi_unified_congestion_request_cmd() - send request to fw to get CCA
|
||||||
* @wmi_hdl: wma handle
|
* @wmi_handle: wma handle
|
||||||
* @vdev_id: vdev id
|
* @vdev_id: vdev id
|
||||||
*
|
*
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
*/
|
*/
|
||||||
QDF_STATUS wmi_unified_congestion_request_cmd(void *wmi_hdl,
|
QDF_STATUS wmi_unified_congestion_request_cmd(wmi_unified_t wmi_handle,
|
||||||
uint8_t vdev_id);
|
uint8_t vdev_id);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_snr_request_cmd(void *wmi_hdl);
|
/**
|
||||||
|
* wmi_unified_snr_request_cmd() - send request to fw to get RSSI stats
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @rssi_req: get RSSI request
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_snr_request_cmd(wmi_unified_t wmi_handle);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_snr_cmd(void *wmi_hdl, uint8_t vdev_id);
|
/**
|
||||||
|
* wmi_unified_snr_cmd() - get RSSI from fw
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @vdev_id: vdev id
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_snr_cmd(wmi_unified_t wmi_handle, uint8_t vdev_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wmi_unified_link_status_req_cmd() - process link status request from UMAC
|
* wmi_unified_link_status_req_cmd() - process link status request from UMAC
|
||||||
@@ -978,11 +1184,28 @@ QDF_STATUS wmi_unified_link_status_req_cmd(wmi_unified_t wmi_handle,
|
|||||||
struct link_status_params *params);
|
struct link_status_params *params);
|
||||||
|
|
||||||
#ifdef WLAN_SUPPORT_GREEN_AP
|
#ifdef WLAN_SUPPORT_GREEN_AP
|
||||||
QDF_STATUS wmi_unified_egap_conf_params_cmd(void *wmi_hdl,
|
/**
|
||||||
|
* wmi_unified_egap_conf_params_cmd() - send wmi cmd of egap config params
|
||||||
|
* @wmi_handle: wmi handler
|
||||||
|
* @egap_params: pointer to egap_params
|
||||||
|
*
|
||||||
|
* Return: 0 for success, otherwise appropriate error code
|
||||||
|
*/
|
||||||
|
QDF_STATUS
|
||||||
|
wmi_unified_egap_conf_params_cmd(
|
||||||
|
wmi_unified_t wmi_handle,
|
||||||
struct wlan_green_ap_egap_params *egap_params);
|
struct wlan_green_ap_egap_params *egap_params);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_csa_offload_enable(void *wmi_hdl, uint8_t vdev_id);
|
/**
|
||||||
|
* wmi_unified_csa_offload_enable() - send CSA offload enable command
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @vdev_id: vdev id
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_csa_offload_enable(wmi_unified_t wmi_handle,
|
||||||
|
uint8_t vdev_id);
|
||||||
|
|
||||||
#ifdef WLAN_FEATURE_CIF_CFR
|
#ifdef WLAN_FEATURE_CIF_CFR
|
||||||
/**
|
/**
|
||||||
@@ -993,55 +1216,177 @@ QDF_STATUS wmi_unified_csa_offload_enable(void *wmi_hdl, uint8_t vdev_id);
|
|||||||
*
|
*
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
*/
|
*/
|
||||||
QDF_STATUS wmi_unified_oem_dma_ring_cfg(void *wmi_hdl,
|
QDF_STATUS
|
||||||
wmi_oem_dma_ring_cfg_req_fixed_param *cfg);
|
wmi_unified_oem_dma_ring_cfg(wmi_unified_t wmi_handle,
|
||||||
|
wmi_oem_dma_ring_cfg_req_fixed_param *cfg);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_start_oem_data_cmd(void *wmi_hdl,
|
/**
|
||||||
uint32_t data_len,
|
* wmi_unified_start_oem_data_cmd() - start OEM data request to target
|
||||||
uint8_t *data);
|
* @wmi_handle: wmi handle
|
||||||
|
* @data_len: length of OEM data
|
||||||
|
* @data: OEM data
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_start_oem_data_cmd(wmi_unified_t wmi_handle,
|
||||||
|
uint32_t data_len,
|
||||||
|
uint8_t *data);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_dfs_phyerr_filter_offload_en_cmd(void *wmi_hdl,
|
/**
|
||||||
bool dfs_phyerr_filter_offload);
|
* wmi_unified_dfs_phyerr_filter_offload_en_cmd() - enable dfs phyerr filter
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @dfs_phyerr_filter_offload: is dfs phyerr filter offload
|
||||||
|
*
|
||||||
|
* Send WMI_DFS_PHYERR_FILTER_ENA_CMDID or
|
||||||
|
* WMI_DFS_PHYERR_FILTER_DIS_CMDID command
|
||||||
|
* to firmware based on phyerr filtering
|
||||||
|
* offload status.
|
||||||
|
*
|
||||||
|
* Return: 1 success, 0 failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS
|
||||||
|
wmi_unified_dfs_phyerr_filter_offload_en_cmd(wmi_unified_t wmi_handle,
|
||||||
|
bool dfs_phyerr_filter_offload);
|
||||||
|
|
||||||
#if !defined(REMOVE_PKT_LOG) && defined(FEATURE_PKTLOG)
|
#if !defined(REMOVE_PKT_LOG) && defined(FEATURE_PKTLOG)
|
||||||
QDF_STATUS wmi_unified_pktlog_wmi_send_cmd(void *wmi_hdl,
|
/**
|
||||||
WMI_PKTLOG_EVENT pktlog_event,
|
* wmi_unified_pktlog_wmi_send_cmd() - send pktlog event command to target
|
||||||
uint32_t cmd_id,
|
* @wmi_handle: wmi handle
|
||||||
uint8_t user_triggered);
|
* @pktlog_event: pktlog event
|
||||||
|
* @cmd_id: pktlog cmd id
|
||||||
|
* @user_triggered: user triggered input for PKTLOG enable mode
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_pktlog_wmi_send_cmd(wmi_unified_t wmi_handle,
|
||||||
|
WMI_PKTLOG_EVENT pktlog_event,
|
||||||
|
uint32_t cmd_id,
|
||||||
|
uint8_t user_triggered);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_stats_ext_req_cmd(void *wmi_hdl,
|
/**
|
||||||
struct stats_ext_params *preq);
|
* wmi_unified_stats_ext_req_cmd() - request ext stats from fw
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @preq: stats ext params
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_stats_ext_req_cmd(wmi_unified_t wmi_handle,
|
||||||
|
struct stats_ext_params *preq);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_process_dhcpserver_offload_cmd(void *wmi_hdl,
|
/**
|
||||||
struct dhcp_offload_info_params *params);
|
* wmi_unified_process_dhcpserver_offload_cmd() - enable DHCP server offload
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @pDhcpSrvOffloadInfo: DHCP server offload info
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_process_dhcpserver_offload_cmd(
|
||||||
|
wmi_unified_t wmi_handle,
|
||||||
|
struct dhcp_offload_info_params *params);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_send_regdomain_info_to_fw_cmd(void *wmi_hdl,
|
/**
|
||||||
uint32_t reg_dmn, uint16_t regdmn2G,
|
* wmi_unified_send_regdomain_info_to_fw_cmd() - send regdomain info to fw
|
||||||
uint16_t regdmn5G, uint8_t ctl2G,
|
* @wmi_handle: wmi handle
|
||||||
uint8_t ctl5G);
|
* @reg_dmn: reg domain
|
||||||
|
* @regdmn2G: 2G reg domain
|
||||||
|
* @regdmn5G: 5G reg domain
|
||||||
|
* @ctl2G: 2G test limit
|
||||||
|
* @ctl5G: 5G test limit
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_send_regdomain_info_to_fw_cmd(wmi_unified_t wmi_handle,
|
||||||
|
uint32_t reg_dmn,
|
||||||
|
uint16_t regdmn2G,
|
||||||
|
uint16_t regdmn5G,
|
||||||
|
uint8_t ctl2G,
|
||||||
|
uint8_t ctl5G);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_process_fw_mem_dump_cmd(void *wmi_hdl,
|
QDF_STATUS
|
||||||
struct fw_dump_req_param *mem_dump_req);
|
wmi_unified_process_fw_mem_dump_cmd(wmi_unified_t wmi_hdl,
|
||||||
|
struct fw_dump_req_param *mem_dump_req);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_cfg_action_frm_tb_ppdu_cmd(void *wmi_hdl,
|
/**
|
||||||
struct cfg_action_frm_tb_ppdu_param *cfg_info);
|
* wmi_unified_cfg_action_frm_tb_ppdu_cmd()-send action frame TB PPDU cfg to FW
|
||||||
|
* @wmi_handle: Pointer to WMi handle
|
||||||
|
* @cfg_info: Pointer to cfg msg
|
||||||
|
*
|
||||||
|
* This function sends action frame TB PPDU cfg to firmware
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
QDF_STATUS
|
||||||
|
wmi_unified_cfg_action_frm_tb_ppdu_cmd(
|
||||||
|
wmi_unified_t wmi_handle,
|
||||||
|
struct cfg_action_frm_tb_ppdu_param *cfg_info);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_save_fw_version_cmd(void *wmi_hdl,
|
/**
|
||||||
void *evt_buf);
|
* wmi_unified_save_fw_version_cmd() - save fw version
|
||||||
|
* @wmi_handle: pointer to wmi handle
|
||||||
|
* @evt_buf: Event buffer
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_save_fw_version_cmd(wmi_unified_t wmi_handle,
|
||||||
|
void *evt_buf);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_log_supported_evt_cmd(void *wmi_hdl,
|
/**
|
||||||
uint8_t *event,
|
* wmi_unified_log_supported_evt_cmd() - Enable/Disable FW diag/log events
|
||||||
uint32_t len);
|
* @wmi_handle: wmi handle
|
||||||
|
* @event: Event received from FW
|
||||||
|
* @len: Length of the event
|
||||||
|
*
|
||||||
|
* Enables the low frequency events and disables the high frequency
|
||||||
|
* events. Bit 17 indicates if the event if low/high frequency.
|
||||||
|
* 1 - high frequency, 0 - low frequency
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_log_supported_evt_cmd(wmi_unified_t wmi_handle,
|
||||||
|
uint8_t *event,
|
||||||
|
uint32_t len);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_enable_specific_fw_logs_cmd(void *wmi_hdl,
|
/**
|
||||||
struct wmi_wifi_start_log *start_log);
|
* wmi_unified_enable_specific_fw_logs_cmd() - Start/Stop logging of diag log id
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @start_log: Start logging related parameters
|
||||||
|
*
|
||||||
|
* Send the command to the FW based on which specific logging of diag
|
||||||
|
* event/log id can be started/stopped
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS
|
||||||
|
wmi_unified_enable_specific_fw_logs_cmd(wmi_unified_t wmi_handle,
|
||||||
|
struct wmi_wifi_start_log *start_log);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_flush_logs_to_fw_cmd(void *wmi_hdl);
|
/**
|
||||||
|
* wmi_unified_flush_logs_to_fw_cmd() - Send log flush command to FW
|
||||||
|
* @wmi_handle: WMI handle
|
||||||
|
*
|
||||||
|
* This function is used to send the flush command to the FW,
|
||||||
|
* that will flush the fw logs that are residue in the FW
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_flush_logs_to_fw_cmd(wmi_unified_t wmi_handle);
|
||||||
|
|
||||||
QDF_STATUS wmi_unified_unit_test_cmd(void *wmi_hdl,
|
/**
|
||||||
struct wmi_unit_test_cmd *wmi_utest);
|
* wmi_unified_unit_test_cmd() - send unit test command to fw.
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @wmi_utest: unit test command
|
||||||
|
*
|
||||||
|
* This function send unit test command to fw.
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_unified_unit_test_cmd(wmi_unified_t wmi_handle,
|
||||||
|
struct wmi_unit_test_cmd *wmi_utest);
|
||||||
|
|
||||||
#ifdef FEATURE_WLAN_APF
|
#ifdef FEATURE_WLAN_APF
|
||||||
/**
|
/**
|
||||||
|
@@ -448,19 +448,10 @@ QDF_STATUS wmi_crash_inject(wmi_unified_t wmi_handle,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef FEATURE_FW_LOG_PARSING
|
#ifdef FEATURE_FW_LOG_PARSING
|
||||||
/**
|
|
||||||
* wmi_unified_dbglog_cmd_send() - set debug log level
|
|
||||||
* @param wmi_handle : handle to WMI.
|
|
||||||
* @param param : pointer to hold dbglog level parameter
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS
|
QDF_STATUS
|
||||||
wmi_unified_dbglog_cmd_send(void *wmi_hdl,
|
wmi_unified_dbglog_cmd_send(wmi_unified_t wmi_handle,
|
||||||
struct dbglog_params *dbglog_param)
|
struct dbglog_params *dbglog_param)
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_dbglog_cmd)
|
if (wmi_handle->ops->send_dbglog_cmd)
|
||||||
return wmi_handle->ops->send_dbglog_cmd(wmi_handle,
|
return wmi_handle->ops->send_dbglog_cmd(wmi_handle,
|
||||||
dbglog_param);
|
dbglog_param);
|
||||||
@@ -599,18 +590,9 @@ wmi_unified_scan_chan_list_cmd_send(wmi_unified_t wmi_handle,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_mgmt_unified_cmd_send(wmi_unified_t wmi_handle,
|
||||||
* wmi_mgmt_unified_cmd_send() - management cmd over wmi layer
|
struct wmi_mgmt_params *param)
|
||||||
* @wmi_hdl : handle to WMI.
|
|
||||||
* @param : pointer to hold mgmt cmd parameter
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_mgmt_unified_cmd_send(void *wmi_hdl,
|
|
||||||
struct wmi_mgmt_params *param)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_mgmt_cmd)
|
if (wmi_handle->ops->send_mgmt_cmd)
|
||||||
return wmi_handle->ops->send_mgmt_cmd(wmi_handle,
|
return wmi_handle->ops->send_mgmt_cmd(wmi_handle,
|
||||||
param);
|
param);
|
||||||
@@ -618,18 +600,10 @@ QDF_STATUS wmi_mgmt_unified_cmd_send(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS
|
||||||
* wmi_offchan_data_tx_cmd_send() - Send offchan data tx cmd over wmi layer
|
wmi_offchan_data_tx_cmd_send(wmi_unified_t wmi_handle,
|
||||||
* @wmi_hdl : handle to WMI.
|
struct wmi_offchan_data_tx_params *param)
|
||||||
* @param : pointer to hold offchan data cmd parameter
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_offchan_data_tx_cmd_send(void *wmi_hdl,
|
|
||||||
struct wmi_offchan_data_tx_params *param)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_offchan_data_tx_cmd)
|
if (wmi_handle->ops->send_offchan_data_tx_cmd)
|
||||||
return wmi_handle->ops->send_offchan_data_tx_cmd(wmi_handle,
|
return wmi_handle->ops->send_offchan_data_tx_cmd(wmi_handle,
|
||||||
param);
|
param);
|
||||||
@@ -637,18 +611,9 @@ QDF_STATUS wmi_offchan_data_tx_cmd_send(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_modem_power_state(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_modem_power_state() - set modem power state to fw
|
uint32_t param_value)
|
||||||
* @wmi_hdl: wmi handle
|
|
||||||
* @param_value: parameter value
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_modem_power_state(void *wmi_hdl,
|
|
||||||
uint32_t param_value)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_modem_power_state_cmd)
|
if (wmi_handle->ops->send_modem_power_state_cmd)
|
||||||
return wmi_handle->ops->send_modem_power_state_cmd(wmi_handle,
|
return wmi_handle->ops->send_modem_power_state_cmd(wmi_handle,
|
||||||
param_value);
|
param_value);
|
||||||
@@ -656,19 +621,9 @@ QDF_STATUS wmi_unified_modem_power_state(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_set_sta_ps_mode(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_set_sta_ps_mode() - set sta powersave params in fw
|
uint32_t vdev_id, uint8_t val)
|
||||||
* @wmi_hdl: wmi handle
|
|
||||||
* @vdev_id: vdev id
|
|
||||||
* @val: value
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_set_sta_ps_mode(void *wmi_hdl,
|
|
||||||
uint32_t vdev_id, uint8_t val)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_set_sta_ps_mode_cmd)
|
if (wmi_handle->ops->send_set_sta_ps_mode_cmd)
|
||||||
return wmi_handle->ops->send_set_sta_ps_mode_cmd(wmi_handle,
|
return wmi_handle->ops->send_set_sta_ps_mode_cmd(wmi_handle,
|
||||||
vdev_id, val);
|
vdev_id, val);
|
||||||
@@ -686,18 +641,9 @@ wmi_unified_send_idle_trigger_monitor(wmi_unified_t wmi_handle, uint8_t val)
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_set_mimops(wmi_unified_t wmi_handle, uint8_t vdev_id,
|
||||||
* wmi_set_mimops() - set MIMO powersave
|
int value)
|
||||||
* @wmi_hdl: wmi handle
|
|
||||||
* @vdev_id: vdev id
|
|
||||||
* @value: value
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_set_mimops(void *wmi_hdl, uint8_t vdev_id, int value)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_set_mimops_cmd)
|
if (wmi_handle->ops->send_set_mimops_cmd)
|
||||||
return wmi_handle->ops->send_set_mimops_cmd(wmi_handle,
|
return wmi_handle->ops->send_set_mimops_cmd(wmi_handle,
|
||||||
vdev_id, value);
|
vdev_id, value);
|
||||||
@@ -705,19 +651,10 @@ QDF_STATUS wmi_unified_set_mimops(void *wmi_hdl, uint8_t vdev_id, int value)
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_set_smps_params(wmi_unified_t wmi_handle,
|
||||||
* wmi_set_smps_params() - set smps params
|
uint8_t vdev_id,
|
||||||
* @wmi_hdl: wmi handle
|
int value)
|
||||||
* @vdev_id: vdev id
|
|
||||||
* @value: value
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_set_smps_params(void *wmi_hdl, uint8_t vdev_id,
|
|
||||||
int value)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_set_smps_params_cmd)
|
if (wmi_handle->ops->send_set_smps_params_cmd)
|
||||||
return wmi_handle->ops->send_set_smps_params_cmd(wmi_handle,
|
return wmi_handle->ops->send_set_smps_params_cmd(wmi_handle,
|
||||||
vdev_id, value);
|
vdev_id, value);
|
||||||
@@ -725,41 +662,18 @@ QDF_STATUS wmi_unified_set_smps_params(void *wmi_hdl, uint8_t vdev_id,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_get_temperature(wmi_unified_t wmi_handle)
|
||||||
* wmi_get_temperature() - get pdev temperature req
|
|
||||||
* @wmi_hdl: wmi handle
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_get_temperature(void *wmi_hdl)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_get_temperature_cmd)
|
if (wmi_handle->ops->send_get_temperature_cmd)
|
||||||
return wmi_handle->ops->send_get_temperature_cmd(wmi_handle);
|
return wmi_handle->ops->send_get_temperature_cmd(wmi_handle);
|
||||||
|
|
||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* wmi_unified_set_sta_uapsd_auto_trig_cmd() - set uapsd auto trigger command
|
|
||||||
* @wmi_hdl: wmi handle
|
|
||||||
* @end_set_sta_ps_mode_cmd: cmd parameter strcture
|
|
||||||
*
|
|
||||||
* This function sets the trigger
|
|
||||||
* uapsd params such as service interval, delay interval
|
|
||||||
* and suspend interval which will be used by the firmware
|
|
||||||
* to send trigger frames periodically when there is no
|
|
||||||
* traffic on the transmit side.
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
|
||||||
*/
|
|
||||||
QDF_STATUS
|
QDF_STATUS
|
||||||
wmi_unified_set_sta_uapsd_auto_trig_cmd(void *wmi_hdl,
|
wmi_unified_set_sta_uapsd_auto_trig_cmd(wmi_unified_t wmi_handle,
|
||||||
struct sta_uapsd_trig_params *param)
|
struct sta_uapsd_trig_params *param)
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_set_sta_uapsd_auto_trig_cmd)
|
if (wmi_handle->ops->send_set_sta_uapsd_auto_trig_cmd)
|
||||||
return wmi_handle->ops->send_set_sta_uapsd_auto_trig_cmd(wmi_handle,
|
return wmi_handle->ops->send_set_sta_uapsd_auto_trig_cmd(wmi_handle,
|
||||||
param);
|
param);
|
||||||
@@ -767,22 +681,10 @@ wmi_unified_set_sta_uapsd_auto_trig_cmd(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QDF_STATUS
|
||||||
/**
|
wmi_unified_set_thermal_mgmt_cmd(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_set_thermal_mgmt_cmd() - set thermal mgmt command to fw
|
struct thermal_cmd_params *thermal_info)
|
||||||
* @wmi_handle: Pointer to wmi handle
|
|
||||||
* @thermal_info: Thermal command information
|
|
||||||
*
|
|
||||||
* This function sends the thermal management command
|
|
||||||
* to the firmware
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_set_thermal_mgmt_cmd(void *wmi_hdl,
|
|
||||||
struct thermal_cmd_params *thermal_info)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_set_thermal_mgmt_cmd)
|
if (wmi_handle->ops->send_set_thermal_mgmt_cmd)
|
||||||
return wmi_handle->ops->send_set_thermal_mgmt_cmd(wmi_handle,
|
return wmi_handle->ops->send_set_thermal_mgmt_cmd(wmi_handle,
|
||||||
thermal_info);
|
thermal_info);
|
||||||
@@ -790,23 +692,10 @@ QDF_STATUS wmi_unified_set_thermal_mgmt_cmd(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QDF_STATUS
|
||||||
/**
|
wmi_unified_lro_config_cmd(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_lro_config_cmd() - process the LRO config command
|
struct wmi_lro_config_cmd_t *wmi_lro_cmd)
|
||||||
* @wmi: Pointer to wmi handle
|
|
||||||
* @wmi_lro_cmd: Pointer to LRO configuration parameters
|
|
||||||
*
|
|
||||||
* This function sends down the LRO configuration parameters to
|
|
||||||
* the firmware to enable LRO, sets the TCP flags and sets the
|
|
||||||
* seed values for the toeplitz hash generation
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_lro_config_cmd(void *wmi_hdl,
|
|
||||||
struct wmi_lro_config_cmd_t *wmi_lro_cmd)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_lro_config_cmd)
|
if (wmi_handle->ops->send_lro_config_cmd)
|
||||||
return wmi_handle->ops->send_lro_config_cmd(wmi_handle,
|
return wmi_handle->ops->send_lro_config_cmd(wmi_handle,
|
||||||
wmi_lro_cmd);
|
wmi_lro_cmd);
|
||||||
@@ -814,19 +703,11 @@ QDF_STATUS wmi_unified_lro_config_cmd(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS
|
||||||
* wmi_unified_peer_rate_report_cmd() - process the peer rate report command
|
wmi_unified_peer_rate_report_cmd(
|
||||||
* @wmi_hdl: Pointer to wmi handle
|
wmi_unified_t wmi_handle,
|
||||||
* @rate_report_params: Pointer to peer rate report parameters
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS for success otherwise failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_peer_rate_report_cmd(void *wmi_hdl,
|
|
||||||
struct wmi_peer_rate_report_params *rate_report_params)
|
struct wmi_peer_rate_report_params *rate_report_params)
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_peer_rate_report_cmd)
|
if (wmi_handle->ops->send_peer_rate_report_cmd)
|
||||||
return wmi_handle->ops->send_peer_rate_report_cmd(wmi_handle,
|
return wmi_handle->ops->send_peer_rate_report_cmd(wmi_handle,
|
||||||
rate_report_params);
|
rate_report_params);
|
||||||
@@ -834,23 +715,13 @@ QDF_STATUS wmi_unified_peer_rate_report_cmd(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS
|
||||||
* wmi_unified_process_update_edca_param() - update EDCA params
|
wmi_unified_process_update_edca_param(
|
||||||
* @wmi_hdl: wmi handle
|
wmi_unified_t wmi_handle,
|
||||||
* @vdev_id: vdev id.
|
uint8_t vdev_id,
|
||||||
* @mu_edca_param: mu_edca_param.
|
bool mu_edca_param,
|
||||||
* @wmm_vparams: edca parameters
|
struct wmi_host_wme_vparams wmm_vparams[WMI_MAX_NUM_AC])
|
||||||
*
|
|
||||||
* This function updates EDCA parameters to the target
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_process_update_edca_param(void *wmi_hdl,
|
|
||||||
uint8_t vdev_id, bool mu_edca_param,
|
|
||||||
struct wmi_host_wme_vparams wmm_vparams[WMI_MAX_NUM_AC])
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_process_update_edca_param_cmd)
|
if (wmi_handle->ops->send_process_update_edca_param_cmd)
|
||||||
return wmi_handle->ops->send_process_update_edca_param_cmd(wmi_handle,
|
return wmi_handle->ops->send_process_update_edca_param_cmd(wmi_handle,
|
||||||
vdev_id, mu_edca_param, wmm_vparams);
|
vdev_id, mu_edca_param, wmm_vparams);
|
||||||
@@ -858,20 +729,12 @@ QDF_STATUS wmi_unified_process_update_edca_param(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS
|
||||||
* wmi_unified_probe_rsp_tmpl_send_cmd() - send probe response template to fw
|
wmi_unified_probe_rsp_tmpl_send_cmd(
|
||||||
* @wmi_hdl: wmi handle
|
wmi_unified_t wmi_handle,
|
||||||
* @vdev_id: vdev id
|
uint8_t vdev_id,
|
||||||
* @probe_rsp_info: probe response info
|
struct wmi_probe_resp_params *probe_rsp_info)
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_probe_rsp_tmpl_send_cmd(void *wmi_hdl,
|
|
||||||
uint8_t vdev_id,
|
|
||||||
struct wmi_probe_resp_params *probe_rsp_info)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_probe_rsp_tmpl_send_cmd)
|
if (wmi_handle->ops->send_probe_rsp_tmpl_send_cmd)
|
||||||
return wmi_handle->ops->send_probe_rsp_tmpl_send_cmd(wmi_handle,
|
return wmi_handle->ops->send_probe_rsp_tmpl_send_cmd(wmi_handle,
|
||||||
vdev_id, probe_rsp_info);
|
vdev_id, probe_rsp_info);
|
||||||
@@ -879,18 +742,9 @@ QDF_STATUS wmi_unified_probe_rsp_tmpl_send_cmd(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_setup_install_key_cmd(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_setup_install_key_cmd - send key to install to fw
|
struct set_key_params *key_params)
|
||||||
* @wmi_hdl: wmi handle
|
|
||||||
* @key_params: key parameters
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_setup_install_key_cmd(void *wmi_hdl,
|
|
||||||
struct set_key_params *key_params)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_setup_install_key_cmd)
|
if (wmi_handle->ops->send_setup_install_key_cmd)
|
||||||
return wmi_handle->ops->send_setup_install_key_cmd(wmi_handle,
|
return wmi_handle->ops->send_setup_install_key_cmd(wmi_handle,
|
||||||
key_params);
|
key_params);
|
||||||
@@ -898,19 +752,10 @@ QDF_STATUS wmi_unified_setup_install_key_cmd(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_p2p_go_set_beacon_ie_cmd(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_p2p_go_set_beacon_ie_cmd() - set beacon IE for p2p go
|
uint32_t vdev_id,
|
||||||
* @wma_handle: wma handle
|
uint8_t *p2p_ie)
|
||||||
* @vdev_id: vdev id
|
|
||||||
* @p2p_ie: p2p IE
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_p2p_go_set_beacon_ie_cmd(void *wmi_hdl,
|
|
||||||
uint32_t vdev_id, uint8_t *p2p_ie)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_p2p_go_set_beacon_ie_cmd)
|
if (wmi_handle->ops->send_p2p_go_set_beacon_ie_cmd)
|
||||||
return wmi_handle->ops->send_p2p_go_set_beacon_ie_cmd(wmi_handle,
|
return wmi_handle->ops->send_p2p_go_set_beacon_ie_cmd(wmi_handle,
|
||||||
vdev_id, p2p_ie);
|
vdev_id, p2p_ie);
|
||||||
@@ -918,20 +763,9 @@ QDF_STATUS wmi_unified_p2p_go_set_beacon_ie_cmd(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_scan_probe_setoui_cmd(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_scan_probe_setoui_cmd() - set scan probe OUI
|
struct scan_mac_oui *psetoui)
|
||||||
* @wmi_hdl: wmi handle
|
|
||||||
* @psetoui: OUI parameters
|
|
||||||
*
|
|
||||||
* set scan probe OUI parameters in firmware
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_scan_probe_setoui_cmd(void *wmi_hdl,
|
|
||||||
struct scan_mac_oui *psetoui)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_scan_probe_setoui_cmd)
|
if (wmi_handle->ops->send_scan_probe_setoui_cmd)
|
||||||
return wmi_handle->ops->send_scan_probe_setoui_cmd(wmi_handle,
|
return wmi_handle->ops->send_scan_probe_setoui_cmd(wmi_handle,
|
||||||
psetoui);
|
psetoui);
|
||||||
@@ -940,18 +774,11 @@ QDF_STATUS wmi_unified_scan_probe_setoui_cmd(void *wmi_hdl,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef IPA_OFFLOAD
|
#ifdef IPA_OFFLOAD
|
||||||
/** wmi_unified_ipa_offload_control_cmd() - ipa offload control parameter
|
QDF_STATUS
|
||||||
* @wmi_hdl: wmi handle
|
wmi_unified_ipa_offload_control_cmd(
|
||||||
* @ipa_offload: ipa offload control parameter
|
wmi_unified_t wmi_handle,
|
||||||
*
|
|
||||||
* Returns: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures,
|
|
||||||
* error number otherwise
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_ipa_offload_control_cmd(void *wmi_hdl,
|
|
||||||
struct ipa_uc_offload_control_params *ipa_offload)
|
struct ipa_uc_offload_control_params *ipa_offload)
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (!wmi_handle)
|
if (!wmi_handle)
|
||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
|
|
||||||
@@ -963,19 +790,8 @@ QDF_STATUS wmi_unified_ipa_offload_control_cmd(void *wmi_hdl,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_pno_stop_cmd(wmi_unified_t wmi_handle, uint8_t vdev_id)
|
||||||
* send_pno_stop_cmd() - PNO stop request
|
|
||||||
* @wmi_hdl: wmi handle
|
|
||||||
* @vdev_id: vdev id
|
|
||||||
*
|
|
||||||
* This function request FW to stop ongoing PNO operation.
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_pno_stop_cmd(void *wmi_hdl, uint8_t vdev_id)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_pno_stop_cmd)
|
if (wmi_handle->ops->send_pno_stop_cmd)
|
||||||
return wmi_handle->ops->send_pno_stop_cmd(wmi_handle,
|
return wmi_handle->ops->send_pno_stop_cmd(wmi_handle,
|
||||||
vdev_id);
|
vdev_id);
|
||||||
@@ -983,20 +799,10 @@ QDF_STATUS wmi_unified_pno_stop_cmd(void *wmi_hdl, uint8_t vdev_id)
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* wmi_unified_pno_start_cmd() - PNO start request
|
|
||||||
* @wmi_hdl: wmi handle
|
|
||||||
* @pno: PNO request
|
|
||||||
*
|
|
||||||
* This function request FW to start PNO request.
|
|
||||||
* Request: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
#ifdef FEATURE_WLAN_SCAN_PNO
|
#ifdef FEATURE_WLAN_SCAN_PNO
|
||||||
QDF_STATUS wmi_unified_pno_start_cmd(void *wmi_hdl,
|
QDF_STATUS wmi_unified_pno_start_cmd(wmi_unified_t wmi_handle,
|
||||||
struct pno_scan_req_params *pno)
|
struct pno_scan_req_params *pno)
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_pno_start_cmd)
|
if (wmi_handle->ops->send_pno_start_cmd)
|
||||||
return wmi_handle->ops->send_pno_start_cmd(wmi_handle,
|
return wmi_handle->ops->send_pno_start_cmd(wmi_handle,
|
||||||
pno);
|
pno);
|
||||||
@@ -1005,18 +811,9 @@ QDF_STATUS wmi_unified_pno_start_cmd(void *wmi_hdl,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_nlo_mawc_cmd(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_nlo_mawc_cmd() - NLO MAWC cmd configuration
|
struct nlo_mawc_params *params)
|
||||||
* @wmi_hdl: wmi handle
|
|
||||||
* @params: Configuration parameters
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_nlo_mawc_cmd(void *wmi_hdl,
|
|
||||||
struct nlo_mawc_params *params)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_nlo_mawc_cmd)
|
if (wmi_handle->ops->send_nlo_mawc_cmd)
|
||||||
return wmi_handle->ops->send_nlo_mawc_cmd(wmi_handle, params);
|
return wmi_handle->ops->send_nlo_mawc_cmd(wmi_handle, params);
|
||||||
|
|
||||||
@@ -1055,18 +852,9 @@ QDF_STATUS wmi_unified_process_ll_stats_get_cmd(wmi_unified_t wmi_handle,
|
|||||||
}
|
}
|
||||||
#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
|
#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_congestion_request_cmd(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_congestion_request_cmd() - send request to fw to get CCA
|
uint8_t vdev_id)
|
||||||
* @wmi_hdl: wma handle
|
|
||||||
* @vdev_id: vdev id
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_congestion_request_cmd(void *wmi_hdl,
|
|
||||||
uint8_t vdev_id)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_congestion_cmd)
|
if (wmi_handle->ops->send_congestion_cmd)
|
||||||
return wmi_handle->ops->send_congestion_cmd(wmi_handle,
|
return wmi_handle->ops->send_congestion_cmd(wmi_handle,
|
||||||
vdev_id);
|
vdev_id);
|
||||||
@@ -1074,34 +862,16 @@ QDF_STATUS wmi_unified_congestion_request_cmd(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_snr_request_cmd(wmi_unified_t wmi_handle)
|
||||||
* wmi_unified_snr_request_cmd() - send request to fw to get RSSI stats
|
|
||||||
* @wmi_handle: wmi handle
|
|
||||||
* @rssi_req: get RSSI request
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_snr_request_cmd(void *wmi_hdl)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_snr_request_cmd)
|
if (wmi_handle->ops->send_snr_request_cmd)
|
||||||
return wmi_handle->ops->send_snr_request_cmd(wmi_handle);
|
return wmi_handle->ops->send_snr_request_cmd(wmi_handle);
|
||||||
|
|
||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_snr_cmd(wmi_unified_t wmi_handle, uint8_t vdev_id)
|
||||||
* wmi_unified_snr_cmd() - get RSSI from fw
|
|
||||||
* @wmi_handle: wmi handle
|
|
||||||
* @vdev_id: vdev id
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_snr_cmd(void *wmi_hdl, uint8_t vdev_id)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_snr_cmd)
|
if (wmi_handle->ops->send_snr_cmd)
|
||||||
return wmi_handle->ops->send_snr_cmd(wmi_handle,
|
return wmi_handle->ops->send_snr_cmd(wmi_handle,
|
||||||
vdev_id);
|
vdev_id);
|
||||||
@@ -1127,18 +897,10 @@ QDF_STATUS wmi_unified_link_status_req_cmd(wmi_unified_t wmi_handle,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WLAN_SUPPORT_GREEN_AP
|
#ifdef WLAN_SUPPORT_GREEN_AP
|
||||||
/**
|
QDF_STATUS
|
||||||
* wmi_unified_egap_conf_params_cmd() - send wmi cmd of egap configuration params
|
wmi_unified_egap_conf_params_cmd(wmi_unified_t wmi_handle,
|
||||||
* @wmi_handle: wmi handler
|
struct wlan_green_ap_egap_params *egap_params)
|
||||||
* @egap_params: pointer to egap_params
|
|
||||||
*
|
|
||||||
* Return: 0 for success, otherwise appropriate error code
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_egap_conf_params_cmd(void *wmi_hdl,
|
|
||||||
struct wlan_green_ap_egap_params *egap_params)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_egap_conf_params_cmd)
|
if (wmi_handle->ops->send_egap_conf_params_cmd)
|
||||||
return wmi_handle->ops->send_egap_conf_params_cmd(wmi_handle,
|
return wmi_handle->ops->send_egap_conf_params_cmd(wmi_handle,
|
||||||
egap_params);
|
egap_params);
|
||||||
@@ -1147,17 +909,9 @@ QDF_STATUS wmi_unified_egap_conf_params_cmd(void *wmi_hdl,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_csa_offload_enable(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_csa_offload_enable() - send CSA offload enable command
|
uint8_t vdev_id)
|
||||||
* @wmi_hdl: wmi handle
|
|
||||||
* @vdev_id: vdev id
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_csa_offload_enable(void *wmi_hdl, uint8_t vdev_id)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_csa_offload_enable_cmd)
|
if (wmi_handle->ops->send_csa_offload_enable_cmd)
|
||||||
return wmi_handle->ops->send_csa_offload_enable_cmd(wmi_handle,
|
return wmi_handle->ops->send_csa_offload_enable_cmd(wmi_handle,
|
||||||
vdev_id);
|
vdev_id);
|
||||||
@@ -1166,11 +920,10 @@ QDF_STATUS wmi_unified_csa_offload_enable(void *wmi_hdl, uint8_t vdev_id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WLAN_FEATURE_CIF_CFR
|
#ifdef WLAN_FEATURE_CIF_CFR
|
||||||
QDF_STATUS wmi_unified_oem_dma_ring_cfg(void *wmi_hdl,
|
QDF_STATUS
|
||||||
wmi_oem_dma_ring_cfg_req_fixed_param *cfg)
|
wmi_unified_oem_dma_ring_cfg(wmi_unified_t wmi_handle,
|
||||||
|
wmi_oem_dma_ring_cfg_req_fixed_param *cfg)
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_start_oem_data_cmd)
|
if (wmi_handle->ops->send_start_oem_data_cmd)
|
||||||
return wmi_handle->ops->send_oem_dma_cfg_cmd(wmi_handle, cfg);
|
return wmi_handle->ops->send_oem_dma_cfg_cmd(wmi_handle, cfg);
|
||||||
|
|
||||||
@@ -1178,19 +931,10 @@ QDF_STATUS wmi_unified_oem_dma_ring_cfg(void *wmi_hdl,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_start_oem_data_cmd(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_start_oem_data_cmd() - start OEM data request to target
|
uint32_t data_len,
|
||||||
* @wmi_handle: wmi handle
|
uint8_t *data)
|
||||||
* @startOemDataReq: start request params
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_start_oem_data_cmd(void *wmi_hdl,
|
|
||||||
uint32_t data_len,
|
|
||||||
uint8_t *data)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_start_oem_data_cmd)
|
if (wmi_handle->ops->send_start_oem_data_cmd)
|
||||||
return wmi_handle->ops->send_start_oem_data_cmd(wmi_handle,
|
return wmi_handle->ops->send_start_oem_data_cmd(wmi_handle,
|
||||||
data_len, data);
|
data_len, data);
|
||||||
@@ -1198,24 +942,10 @@ QDF_STATUS wmi_unified_start_oem_data_cmd(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* wmi_unified_dfs_phyerr_filter_offload_en_cmd() - enable dfs phyerr filter
|
|
||||||
* @wmi_handle: wmi handle
|
|
||||||
* @dfs_phyerr_filter_offload: is dfs phyerr filter offload
|
|
||||||
*
|
|
||||||
* Send WMI_DFS_PHYERR_FILTER_ENA_CMDID or
|
|
||||||
* WMI_DFS_PHYERR_FILTER_DIS_CMDID command
|
|
||||||
* to firmware based on phyerr filtering
|
|
||||||
* offload status.
|
|
||||||
*
|
|
||||||
* Return: 1 success, 0 failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS
|
QDF_STATUS
|
||||||
wmi_unified_dfs_phyerr_filter_offload_en_cmd(void *wmi_hdl,
|
wmi_unified_dfs_phyerr_filter_offload_en_cmd(wmi_unified_t wmi_handle,
|
||||||
bool dfs_phyerr_filter_offload)
|
bool dfs_phyerr_filter_offload)
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_dfs_phyerr_filter_offload_en_cmd)
|
if (wmi_handle->ops->send_dfs_phyerr_filter_offload_en_cmd)
|
||||||
return wmi_handle->ops->send_dfs_phyerr_filter_offload_en_cmd(wmi_handle,
|
return wmi_handle->ops->send_dfs_phyerr_filter_offload_en_cmd(wmi_handle,
|
||||||
dfs_phyerr_filter_offload);
|
dfs_phyerr_filter_offload);
|
||||||
@@ -1224,22 +954,11 @@ wmi_unified_dfs_phyerr_filter_offload_en_cmd(void *wmi_hdl,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(REMOVE_PKT_LOG) && defined(FEATURE_PKTLOG)
|
#if !defined(REMOVE_PKT_LOG) && defined(FEATURE_PKTLOG)
|
||||||
/**
|
QDF_STATUS wmi_unified_pktlog_wmi_send_cmd(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_pktlog_wmi_send_cmd() - send pktlog enable/disable command to target
|
WMI_PKTLOG_EVENT pktlog_event,
|
||||||
* @wmi_handle: wmi handle
|
uint32_t cmd_id,
|
||||||
* @pktlog_event: pktlog event
|
uint8_t user_triggered)
|
||||||
* @cmd_id: pktlog cmd id
|
|
||||||
* @user_triggered: user triggered input for PKTLOG enable mode
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_pktlog_wmi_send_cmd(void *wmi_hdl,
|
|
||||||
WMI_PKTLOG_EVENT pktlog_event,
|
|
||||||
uint32_t cmd_id,
|
|
||||||
uint8_t user_triggered)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_pktlog_wmi_send_cmd)
|
if (wmi_handle->ops->send_pktlog_wmi_send_cmd)
|
||||||
return wmi_handle->ops->send_pktlog_wmi_send_cmd(wmi_handle,
|
return wmi_handle->ops->send_pktlog_wmi_send_cmd(wmi_handle,
|
||||||
pktlog_event, cmd_id, user_triggered);
|
pktlog_event, cmd_id, user_triggered);
|
||||||
@@ -1248,18 +967,9 @@ QDF_STATUS wmi_unified_pktlog_wmi_send_cmd(void *wmi_hdl,
|
|||||||
}
|
}
|
||||||
#endif /* !REMOVE_PKT_LOG && FEATURE_PKTLOG */
|
#endif /* !REMOVE_PKT_LOG && FEATURE_PKTLOG */
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_stats_ext_req_cmd(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_stats_ext_req_cmd() - request ext stats from fw
|
struct stats_ext_params *preq)
|
||||||
* @wmi_handle: wmi handle
|
|
||||||
* @preq: stats ext params
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_stats_ext_req_cmd(void *wmi_hdl,
|
|
||||||
struct stats_ext_params *preq)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_stats_ext_req_cmd)
|
if (wmi_handle->ops->send_stats_ext_req_cmd)
|
||||||
return wmi_handle->ops->send_stats_ext_req_cmd(wmi_handle,
|
return wmi_handle->ops->send_stats_ext_req_cmd(wmi_handle,
|
||||||
preq);
|
preq);
|
||||||
@@ -1267,18 +977,10 @@ QDF_STATUS wmi_unified_stats_ext_req_cmd(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_process_dhcpserver_offload_cmd(
|
||||||
* wmi_unified_process_dhcpserver_offload_cmd() - enable DHCP server offload
|
wmi_unified_t wmi_handle,
|
||||||
* @wmi_handle: wmi handle
|
struct dhcp_offload_info_params *params)
|
||||||
* @pDhcpSrvOffloadInfo: DHCP server offload info
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_process_dhcpserver_offload_cmd(void *wmi_hdl,
|
|
||||||
struct dhcp_offload_info_params *params)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_process_dhcpserver_offload_cmd)
|
if (wmi_handle->ops->send_process_dhcpserver_offload_cmd)
|
||||||
return wmi_handle->ops->send_process_dhcpserver_offload_cmd(wmi_handle,
|
return wmi_handle->ops->send_process_dhcpserver_offload_cmd(wmi_handle,
|
||||||
params);
|
params);
|
||||||
@@ -1286,24 +988,13 @@ QDF_STATUS wmi_unified_process_dhcpserver_offload_cmd(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_send_regdomain_info_to_fw_cmd(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_send_regdomain_info_to_fw_cmd() - send regdomain info to fw
|
uint32_t reg_dmn,
|
||||||
* @wmi_handle: wmi handle
|
uint16_t regdmn2G,
|
||||||
* @reg_dmn: reg domain
|
uint16_t regdmn5G,
|
||||||
* @regdmn2G: 2G reg domain
|
uint8_t ctl2G,
|
||||||
* @regdmn5G: 5G reg domain
|
uint8_t ctl5G)
|
||||||
* @ctl2G: 2G test limit
|
|
||||||
* @ctl5G: 5G test limit
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_send_regdomain_info_to_fw_cmd(void *wmi_hdl,
|
|
||||||
uint32_t reg_dmn, uint16_t regdmn2G,
|
|
||||||
uint16_t regdmn5G, uint8_t ctl2G,
|
|
||||||
uint8_t ctl5G)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_regdomain_info_to_fw_cmd)
|
if (wmi_handle->ops->send_regdomain_info_to_fw_cmd)
|
||||||
return wmi_handle->ops->send_regdomain_info_to_fw_cmd(wmi_handle,
|
return wmi_handle->ops->send_regdomain_info_to_fw_cmd(wmi_handle,
|
||||||
reg_dmn, regdmn2G,
|
reg_dmn, regdmn2G,
|
||||||
@@ -1313,23 +1004,11 @@ QDF_STATUS wmi_unified_send_regdomain_info_to_fw_cmd(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* wmi_unified_cfg_action_frm_tb_ppdu_cmd()-send action frame TB PPDU cfg to FW
|
|
||||||
* @wmi_handle: Pointer to WMi handle
|
|
||||||
* @cfg_info: Pointer to cfg msg
|
|
||||||
*
|
|
||||||
* This function sends action frame TB PPDU cfg to firmware
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
QDF_STATUS
|
QDF_STATUS
|
||||||
wmi_unified_cfg_action_frm_tb_ppdu_cmd(void *wmi_hdl,
|
wmi_unified_cfg_action_frm_tb_ppdu_cmd(
|
||||||
struct cfg_action_frm_tb_ppdu_param
|
wmi_unified_t wmi_handle,
|
||||||
*cfg_info)
|
struct cfg_action_frm_tb_ppdu_param *cfg_info)
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_cfg_action_frm_tb_ppdu_cmd)
|
if (wmi_handle->ops->send_cfg_action_frm_tb_ppdu_cmd)
|
||||||
return wmi_handle->ops->send_cfg_action_frm_tb_ppdu_cmd(
|
return wmi_handle->ops->send_cfg_action_frm_tb_ppdu_cmd(
|
||||||
wmi_handle, cfg_info);
|
wmi_handle, cfg_info);
|
||||||
@@ -1337,23 +1016,9 @@ wmi_unified_cfg_action_frm_tb_ppdu_cmd(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_save_fw_version_cmd(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_save_fw_version_cmd() - save fw version
|
void *evt_buf)
|
||||||
* @wmi_handle: pointer to wmi handle
|
|
||||||
* @res_cfg: resource config
|
|
||||||
* @num_mem_chunks: no of mem chunck
|
|
||||||
* @mem_chunk: pointer to mem chunck structure
|
|
||||||
*
|
|
||||||
* This function sends IE information to firmware
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_save_fw_version_cmd(void *wmi_hdl,
|
|
||||||
void *evt_buf)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->save_fw_version_cmd)
|
if (wmi_handle->ops->save_fw_version_cmd)
|
||||||
return wmi_handle->ops->save_fw_version_cmd(wmi_handle,
|
return wmi_handle->ops->save_fw_version_cmd(wmi_handle,
|
||||||
evt_buf);
|
evt_buf);
|
||||||
@@ -1361,24 +1026,10 @@ QDF_STATUS wmi_unified_save_fw_version_cmd(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_log_supported_evt_cmd(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_log_supported_evt_cmd() - Enable/Disable FW diag/log events
|
uint8_t *event,
|
||||||
* @wmi_hdl: wmi handle
|
uint32_t len)
|
||||||
* @event: Event received from FW
|
|
||||||
* @len: Length of the event
|
|
||||||
*
|
|
||||||
* Enables the low frequency events and disables the high frequency
|
|
||||||
* events. Bit 17 indicates if the event if low/high frequency.
|
|
||||||
* 1 - high frequency, 0 - low frequency
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_log_supported_evt_cmd(void *wmi_hdl,
|
|
||||||
uint8_t *event,
|
|
||||||
uint32_t len)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_log_supported_evt_cmd)
|
if (wmi_handle->ops->send_log_supported_evt_cmd)
|
||||||
return wmi_handle->ops->send_log_supported_evt_cmd(wmi_handle,
|
return wmi_handle->ops->send_log_supported_evt_cmd(wmi_handle,
|
||||||
event, len);
|
event, len);
|
||||||
@@ -1393,21 +1044,11 @@ void wmi_send_time_stamp_sync_cmd_tlv(void *wmi_hdl)
|
|||||||
wmi_handle->ops->send_time_stamp_sync_cmd(wmi_handle);
|
wmi_handle->ops->send_time_stamp_sync_cmd(wmi_handle);
|
||||||
|
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* wmi_unified_enable_specific_fw_logs_cmd() - Start/Stop logging of diag log id
|
|
||||||
* @wmi_hdl: wmi handle
|
|
||||||
* @start_log: Start logging related parameters
|
|
||||||
*
|
|
||||||
* Send the command to the FW based on which specific logging of diag
|
|
||||||
* event/log id can be started/stopped
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_enable_specific_fw_logs_cmd(void *wmi_hdl,
|
|
||||||
struct wmi_wifi_start_log *start_log)
|
|
||||||
{
|
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
|
QDF_STATUS
|
||||||
|
wmi_unified_enable_specific_fw_logs_cmd(wmi_unified_t wmi_handle,
|
||||||
|
struct wmi_wifi_start_log *start_log)
|
||||||
|
{
|
||||||
if (wmi_handle->ops->send_enable_specific_fw_logs_cmd)
|
if (wmi_handle->ops->send_enable_specific_fw_logs_cmd)
|
||||||
return wmi_handle->ops->send_enable_specific_fw_logs_cmd(wmi_handle,
|
return wmi_handle->ops->send_enable_specific_fw_logs_cmd(wmi_handle,
|
||||||
start_log);
|
start_log);
|
||||||
@@ -1415,19 +1056,8 @@ QDF_STATUS wmi_unified_enable_specific_fw_logs_cmd(void *wmi_hdl,
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_flush_logs_to_fw_cmd(wmi_unified_t wmi_handle)
|
||||||
* wmi_unified_flush_logs_to_fw_cmd() - Send log flush command to FW
|
|
||||||
* @wmi_hdl: WMI handle
|
|
||||||
*
|
|
||||||
* This function is used to send the flush command to the FW,
|
|
||||||
* that will flush the fw logs that are residue in the FW
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_flush_logs_to_fw_cmd(void *wmi_hdl)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_flush_logs_to_fw_cmd)
|
if (wmi_handle->ops->send_flush_logs_to_fw_cmd)
|
||||||
return wmi_handle->ops->send_flush_logs_to_fw_cmd(wmi_handle);
|
return wmi_handle->ops->send_flush_logs_to_fw_cmd(wmi_handle);
|
||||||
|
|
||||||
@@ -1456,20 +1086,9 @@ QDF_STATUS wmi_unified_fw_test_cmd(void *wmi_hdl,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wmi_unified_unit_test_cmd(wmi_unified_t wmi_handle,
|
||||||
* wmi_unified_unit_test_cmd() - send unit test command to fw.
|
struct wmi_unit_test_cmd *wmi_utest)
|
||||||
* @wmi_hdl: wmi handle
|
|
||||||
* @wmi_utest: unit test command
|
|
||||||
*
|
|
||||||
* This function send unit test command to fw.
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
|
||||||
*/
|
|
||||||
QDF_STATUS wmi_unified_unit_test_cmd(void *wmi_hdl,
|
|
||||||
struct wmi_unit_test_cmd *wmi_utest)
|
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
||||||
|
|
||||||
if (wmi_handle->ops->send_unit_test_cmd)
|
if (wmi_handle->ops->send_unit_test_cmd)
|
||||||
return wmi_handle->ops->send_unit_test_cmd(wmi_handle,
|
return wmi_handle->ops->send_unit_test_cmd(wmi_handle,
|
||||||
wmi_utest);
|
wmi_utest);
|
||||||
|
Reference in New Issue
Block a user