
In the existing converged component, WMI TLV APIs are implemented in a generic manner without proper featurization. All the APIs exposed outside of WMI are implemented in wmi_unified_api.c and all the APIs forming the CMD or extracting the EVT is implemented in wmi_unified_tlv.c. Since WIN and MCL have a unified WMI layer in the converged component and there are features within WIN and MCL that are not common, there exists a good number of WMI APIs which are specific to WIN but compiled by MCL and vice-versa. Due to this inadvertent problem, there is a chunk of code and memory used up by WIN and MCL for features that are not used in their products. Featurize WMI APIs and TLVs that are specific to WIN - Air Time Fareness (ATF) - Direct Buffer Rx (DBR) - Smart Antenna (SMART_ANT) - Generic WIN specific WMI (AP) Change-Id: I7b27c8993da04c9e9651a9682de370daaa40d187 CRs-Fixed: 2320273
77 lines
2.2 KiB
C
77 lines
2.2 KiB
C
/*
|
|
* Copyright (c) 2016-2018 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
|
|
* above copyright notice and this permission notice appear in all
|
|
* copies.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
|
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
|
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
|
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
|
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
* PERFORMANCE OF THIS SOFTWARE.
|
|
*/
|
|
|
|
#include "wmi_unified_priv.h"
|
|
#include "qdf_module.h"
|
|
|
|
QDF_STATUS wmi_unified_dbr_ring_cfg(void *wmi_hdl,
|
|
struct direct_buf_rx_cfg_req *cfg)
|
|
{
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
|
if (wmi_handle->ops->send_dbr_cfg_cmd)
|
|
return wmi_handle->ops->send_dbr_cfg_cmd(wmi_handle, cfg);
|
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
}
|
|
|
|
QDF_STATUS wmi_extract_dbr_buf_release_fixed(
|
|
void *wmi_hdl,
|
|
uint8_t *evt_buf,
|
|
struct direct_buf_rx_rsp *param)
|
|
{
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
|
if (wmi_handle->ops->extract_dbr_buf_release_fixed)
|
|
return wmi_handle->ops->extract_dbr_buf_release_fixed(
|
|
wmi_handle,
|
|
evt_buf, param);
|
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
}
|
|
|
|
QDF_STATUS wmi_extract_dbr_buf_release_entry(
|
|
void *wmi_hdl,
|
|
uint8_t *evt_buf, uint8_t idx,
|
|
struct direct_buf_rx_entry *param)
|
|
{
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
|
if (wmi_handle->ops->extract_dbr_buf_release_entry)
|
|
return wmi_handle->ops->extract_dbr_buf_release_entry(
|
|
wmi_handle,
|
|
evt_buf, idx, param);
|
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
}
|
|
|
|
QDF_STATUS wmi_extract_dbr_buf_metadata(
|
|
void *wmi_hdl,
|
|
uint8_t *evt_buf, uint8_t idx,
|
|
struct direct_buf_rx_metadata *param)
|
|
{
|
|
wmi_unified_t wmi_handle = (wmi_unified_t)wmi_hdl;
|
|
|
|
if (wmi_handle->ops->extract_dbr_buf_metadata)
|
|
return wmi_handle->ops->extract_dbr_buf_metadata(
|
|
wmi_handle,
|
|
evt_buf, idx, param);
|
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
}
|