qcacmn: Featurize WMI APIs and TLVs that are specific to MCL
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 MCL - - DSRC - NAN - P2P - PMO - roaming - concurrency - STA - Generic MCL specific WMI (STA) Change-Id: I03a68b0db30a3aa585b269ab0a1745b37bc7e0b7 CRs-Fixed: 2316935
This commit is contained in:
135
wmi/inc/wmi_unified_nan_api.h
Normal file
135
wmi/inc/wmi_unified_nan_api.h
Normal file
@@ -0,0 +1,135 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2013-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.
|
||||
*/
|
||||
/**
|
||||
* DOC: Implement API's specific to NAN component.
|
||||
*/
|
||||
|
||||
#ifndef _WMI_UNIFIED_NAN_API_H_
|
||||
#define _WMI_UNIFIED_NAN_API_H_
|
||||
|
||||
#include <nan_public_structs.h>
|
||||
|
||||
/**
|
||||
* wmi_unified_ndp_initiator_req_cmd_send - api to send initiator request to FW
|
||||
* @wmi_hdl: wmi handle
|
||||
* @req: pointer to request buffer
|
||||
*
|
||||
* Return: status of operation
|
||||
*/
|
||||
QDF_STATUS wmi_unified_ndp_initiator_req_cmd_send(void *wmi_hdl,
|
||||
struct nan_datapath_initiator_req *req);
|
||||
|
||||
/**
|
||||
* wmi_unified_ndp_responder_req_cmd_send - api to send responder request to FW
|
||||
* @wmi_hdl: wmi handle
|
||||
* @req: pointer to request buffer
|
||||
*
|
||||
* Return: status of operation
|
||||
*/
|
||||
QDF_STATUS wmi_unified_ndp_responder_req_cmd_send(void *wmi_hdl,
|
||||
struct nan_datapath_responder_req *req);
|
||||
|
||||
/**
|
||||
* wmi_unified_ndp_end_req_cmd_send - api to send end request to FW
|
||||
* @wmi_hdl: wmi handle
|
||||
* @req: pointer to request buffer
|
||||
*
|
||||
* Return: status of operation
|
||||
*/
|
||||
QDF_STATUS wmi_unified_ndp_end_req_cmd_send(void *wmi_hdl,
|
||||
struct nan_datapath_end_req *req);
|
||||
|
||||
/**
|
||||
* wmi_extract_ndp_initiator_rsp - api to extract initiator rsp from even buffer
|
||||
* @wmi_hdl: wmi handle
|
||||
* @data: event buffer
|
||||
* @rsp: buffer to populate
|
||||
*
|
||||
* Return: status of operation
|
||||
*/
|
||||
QDF_STATUS wmi_extract_ndp_initiator_rsp(wmi_unified_t wmi_handle,
|
||||
uint8_t *data, struct nan_datapath_initiator_rsp *rsp);
|
||||
|
||||
/**
|
||||
* wmi_extract_ndp_ind - api to extract ndp indication struct from even buffer
|
||||
* @wmi_hdl: wmi handle
|
||||
* @data: event buffer
|
||||
* @ind: buffer to populate
|
||||
*
|
||||
* Return: status of operation
|
||||
*/
|
||||
QDF_STATUS wmi_extract_ndp_ind(wmi_unified_t wmi_handle, uint8_t *data,
|
||||
struct nan_datapath_indication_event *ind);
|
||||
|
||||
/**
|
||||
* wmi_extract_ndp_confirm - api to extract ndp confim struct from even buffer
|
||||
* @wmi_hdl: wmi handle
|
||||
* @data: event buffer
|
||||
* @ev: buffer to populate
|
||||
*
|
||||
* Return: status of operation
|
||||
*/
|
||||
QDF_STATUS wmi_extract_ndp_confirm(wmi_unified_t wmi_handle, uint8_t *data,
|
||||
struct nan_datapath_confirm_event *ev);
|
||||
|
||||
/**
|
||||
* wmi_extract_ndp_responder_rsp - api to extract responder rsp from even buffer
|
||||
* @wmi_hdl: wmi handle
|
||||
* @data: event buffer
|
||||
* @rsp: buffer to populate
|
||||
*
|
||||
* Return: status of operation
|
||||
*/
|
||||
QDF_STATUS wmi_extract_ndp_responder_rsp(wmi_unified_t wmi_handle,
|
||||
uint8_t *data, struct nan_datapath_responder_rsp *rsp);
|
||||
|
||||
/**
|
||||
* wmi_extract_ndp_end_rsp - api to extract ndp end rsp from even buffer
|
||||
* @wmi_hdl: wmi handle
|
||||
* @data: event buffer
|
||||
* @rsp: buffer to populate
|
||||
*
|
||||
* Return: status of operation
|
||||
*/
|
||||
QDF_STATUS wmi_extract_ndp_end_rsp(wmi_unified_t wmi_handle, uint8_t *data,
|
||||
struct nan_datapath_end_rsp_event *rsp);
|
||||
|
||||
/**
|
||||
* wmi_extract_ndp_end_ind - api to extract ndp end indication from even buffer
|
||||
* @wmi_hdl: wmi handle
|
||||
* @data: event buffer
|
||||
* @ind: buffer to populate
|
||||
*
|
||||
* Return: status of operation
|
||||
*/
|
||||
QDF_STATUS wmi_extract_ndp_end_ind(wmi_unified_t wmi_handle, uint8_t *data,
|
||||
struct nan_datapath_end_indication_event **ind);
|
||||
|
||||
/**
|
||||
* wmi_extract_ndp_sch_update - api to extract ndp sch update from event buffer
|
||||
* @wmi_hdl: wmi handle
|
||||
* @data: event buffer
|
||||
* @ind: buffer to populate
|
||||
*
|
||||
* Return: status of operation
|
||||
*/
|
||||
QDF_STATUS wmi_extract_ndp_sch_update(wmi_unified_t wmi_handle, uint8_t *data,
|
||||
struct nan_datapath_sch_update_event *ind);
|
||||
|
||||
#endif /* _WMI_UNIFIED_NAN_API_H_ */
|
Reference in New Issue
Block a user