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:
324
wmi/inc/wmi_unified_roam_api.h
Normal file
324
wmi/inc/wmi_unified_roam_api.h
Normal file
@@ -0,0 +1,324 @@
|
||||
/*
|
||||
* 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 ROAMING component.
|
||||
*/
|
||||
|
||||
#ifndef _WMI_UNIFIED_ROAM_API_H_
|
||||
#define _WMI_UNIFIED_ROAM_API_H_
|
||||
|
||||
#include <wmi_unified_roam_param.h>
|
||||
|
||||
#ifdef FEATURE_LFR_SUBNET_DETECTION
|
||||
/**
|
||||
* wmi_unified_set_gateway_params_cmd() - set gateway parameters
|
||||
* @wmi_hdl: wmi handle
|
||||
* @req: gateway parameter update request structure
|
||||
*
|
||||
* This function reads the incoming @req and fill in the destination
|
||||
* WMI structure and sends down the gateway configs down to the firmware
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures;
|
||||
* error number otherwise
|
||||
*/
|
||||
QDF_STATUS wmi_unified_set_gateway_params_cmd(void *wmi_hdl,
|
||||
struct gateway_update_req_param *req);
|
||||
#endif
|
||||
|
||||
#ifdef FEATURE_RSSI_MONITOR
|
||||
/**
|
||||
* wmi_unified_set_rssi_monitoring_cmd() - set rssi monitoring
|
||||
* @wmi_hdl: wmi handle
|
||||
* @req: rssi monitoring request structure
|
||||
*
|
||||
* This function reads the incoming @req and fill in the destination
|
||||
* WMI structure and send down the rssi monitoring configs down to the firmware
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures;
|
||||
* error number otherwise
|
||||
*/
|
||||
QDF_STATUS wmi_unified_set_rssi_monitoring_cmd(void *wmi_hdl,
|
||||
struct rssi_monitor_param *req);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* wmi_unified_roam_scan_offload_rssi_thresh_cmd() - set roam scan rssi
|
||||
* parameters
|
||||
* @wmi_hdl: wmi handle
|
||||
* @roam_req: roam rssi related parameters
|
||||
*
|
||||
* This function reads the incoming @roam_req and fill in the destination
|
||||
* WMI structure and send down the roam scan rssi configs down to the firmware
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_roam_scan_offload_rssi_thresh_cmd(void *wmi_hdl,
|
||||
struct roam_offload_scan_rssi_params *roam_req);
|
||||
|
||||
/**
|
||||
* wmi_unified_roam_mawc_params_cmd() - configure roaming MAWC parameters
|
||||
* @wmi_hdl: wmi handle
|
||||
* @params: Parameters to be configured
|
||||
*
|
||||
* Pass the MAWC(Motion Aided wireless connectivity) related roaming
|
||||
* parameters from the host to the target
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_roam_mawc_params_cmd(void *wmi_hdl,
|
||||
struct wmi_mawc_roam_params *params);
|
||||
|
||||
/**
|
||||
* wmi_unified_roam_scan_filter_cmd() - send roam scan whitelist,
|
||||
* blacklist and preferred list
|
||||
* @wmi_hdl: wmi handle
|
||||
* @roam_req: roam scan lists related parameters
|
||||
*
|
||||
* This function reads the incoming @roam_req and fill in the destination
|
||||
* WMI structure and send down the different roam scan lists down to the fw
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_roam_scan_filter_cmd(void *wmi_hdl,
|
||||
struct roam_scan_filter_params *roam_req);
|
||||
|
||||
#ifdef FEATURE_WLAN_ESE
|
||||
/**
|
||||
* wmi_unified_plm_stop_cmd() - plm stop request
|
||||
* @wmi_hdl: wmi handle
|
||||
* @plm: plm request parameters
|
||||
*
|
||||
* This function request FW to stop PLM.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_plm_stop_cmd(void *wmi_hdl,
|
||||
const struct plm_req_params *plm);
|
||||
|
||||
/**
|
||||
* wmi_unified_plm_start_cmd() - plm start request
|
||||
* @wmi_hdl: wmi handle
|
||||
* @plm: plm request parameters
|
||||
*
|
||||
* This function request FW to start PLM.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_plm_start_cmd(void *wmi_hdl,
|
||||
const struct plm_req_params *plm,
|
||||
uint32_t *gchannel_list);
|
||||
#endif /* FEATURE_WLAN_ESE */
|
||||
|
||||
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
||||
/* wmi_unified_set_ric_req_cmd() - set ric request element
|
||||
* @wmi_hdl: wmi handle
|
||||
* @msg: message
|
||||
* @is_add_ts: is addts required
|
||||
*
|
||||
* This function sets ric request element for 11r roaming.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_set_ric_req_cmd(void *wmi_hdl, void *msg,
|
||||
uint8_t is_add_ts);
|
||||
|
||||
/**
|
||||
* wmi_unified_roam_synch_complete_cmd() - roam synch complete command to fw.
|
||||
* @wmi_hdl: wmi handle
|
||||
* @vdev_id: vdev id
|
||||
*
|
||||
* This function sends roam synch complete event to fw.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_roam_synch_complete_cmd(void *wmi_hdl,
|
||||
uint8_t vdev_id);
|
||||
|
||||
/**
|
||||
* wmi_unified__roam_invoke_cmd() - send roam invoke command to fw.
|
||||
* @wmi_hdl: wmi handle
|
||||
* @roaminvoke: roam invoke command
|
||||
*
|
||||
* Send roam invoke command to fw for fastreassoc.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_roam_invoke_cmd(void *wmi_hdl,
|
||||
struct wmi_roam_invoke_cmd *roaminvoke,
|
||||
uint32_t ch_hz);
|
||||
#endif /* WLAN_FEATURE_ROAM_OFFLOAD */
|
||||
|
||||
/**
|
||||
* wmi_unified_roam_scan_offload_mode_cmd() - set roam scan parameters
|
||||
* @wmi_hdl: wmi handle
|
||||
* @scan_cmd_fp: scan related parameters
|
||||
* @roam_req: roam related parameters
|
||||
*
|
||||
* This function reads the incoming @roam_req and fill in the destination
|
||||
* WMI structure and send down the roam scan configs down to the firmware
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_roam_scan_offload_mode_cmd(void *wmi_hdl,
|
||||
wmi_start_scan_cmd_fixed_param *scan_cmd_fp,
|
||||
struct roam_offload_scan_params *roam_req);
|
||||
|
||||
/**
|
||||
* wmi_unified_send_roam_scan_offload_ap_cmd() - set roam ap profile in fw
|
||||
* @wmi_hdl: wmi handle
|
||||
* @ap_profile: ap profile params
|
||||
*
|
||||
* Send WMI_ROAM_AP_PROFILE to firmware
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_send_roam_scan_offload_ap_cmd(void *wmi_hdl,
|
||||
struct ap_profile_params *ap_profile);
|
||||
|
||||
/**
|
||||
* wmi_unified_roam_scan_offload_cmd() - set roam offload command
|
||||
* @wmi_hdl: wmi handle
|
||||
* @command: command
|
||||
* @vdev_id: vdev id
|
||||
*
|
||||
* This function set roam offload command to fw.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_roam_scan_offload_cmd(void *wmi_hdl,
|
||||
uint32_t command,
|
||||
uint32_t vdev_id);
|
||||
|
||||
/**
|
||||
* wmi_unified_roam_scan_offload_scan_period() - set roam offload scan period
|
||||
* @wmi_handle: wmi handle
|
||||
* @scan_period: scan period
|
||||
* @scan_age: scan age
|
||||
* @vdev_id: vdev id
|
||||
*
|
||||
* Send WMI_ROAM_SCAN_PERIOD parameters to fw.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_roam_scan_offload_scan_period(void *wmi_hdl,
|
||||
uint32_t scan_period,
|
||||
uint32_t scan_age,
|
||||
uint32_t vdev_id);
|
||||
|
||||
/**
|
||||
* wmi_unified_roam_scan_offload_chan_list_cmd() - set roam offload channel list
|
||||
* @wmi_handle: wmi handle
|
||||
* @chan_count: channel count
|
||||
* @chan_list: channel list
|
||||
* @list_type: list type
|
||||
* @vdev_id: vdev id
|
||||
*
|
||||
* Set roam offload channel list.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_roam_scan_offload_chan_list_cmd(void *wmi_hdl,
|
||||
uint8_t chan_count,
|
||||
uint32_t *chan_list,
|
||||
uint8_t list_type,
|
||||
uint32_t vdev_id);
|
||||
|
||||
/**
|
||||
* wmi_unified_roam_scan_offload_rssi_change_cmd() - set roam offload RSSI th
|
||||
* @wmi_hdl: wmi handle
|
||||
* @rssi_change_thresh: RSSI Change threshold
|
||||
* @bcn_rssi_weight: beacon RSSI weight
|
||||
* @vdev_id: vdev id
|
||||
*
|
||||
* Send WMI_ROAM_SCAN_RSSI_CHANGE_THRESHOLD parameters to fw.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_roam_scan_offload_rssi_change_cmd(void *wmi_hdl,
|
||||
uint32_t vdev_id,
|
||||
int32_t rssi_change_thresh,
|
||||
uint32_t bcn_rssi_weight,
|
||||
uint32_t hirssi_delay_btw_scans);
|
||||
|
||||
/**
|
||||
* wmi_unified_set_per_roam_config() - set PER roam config in FW
|
||||
* @wmi_hdl: wmi handle
|
||||
* @req_buf: per roam config request buffer
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_set_per_roam_config(void *wmi_hdl,
|
||||
struct wmi_per_roam_config_req *req_buf);
|
||||
|
||||
/**
|
||||
* wmi_unified_send_limit_off_chan_cmd() - send wmi cmd of limit off channel
|
||||
* configuration params
|
||||
* @wmi_hdl: wmi handler
|
||||
* @limit_off_chan_param: pointer to wmi_limit_off_chan_param
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF failure reason code on failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_send_limit_off_chan_cmd(void *wmi_hdl,
|
||||
struct wmi_limit_off_chan_param *wmi_param);
|
||||
|
||||
#ifdef WLAN_FEATURE_FILS_SK
|
||||
/*
|
||||
* wmi_unified_roam_send_hlp_cmd() -send HLP command info
|
||||
* @wmi_hdl: wma handle
|
||||
* @req_buf: Pointer to HLP params
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_roam_send_hlp_cmd(void *wmi_hdl,
|
||||
struct hlp_params *req_buf);
|
||||
#endif /* WLAN_FEATURE_FILS_SK */
|
||||
|
||||
/**
|
||||
* wmi_unified_send_btm_config() - Send BTM config to fw
|
||||
* @wmi_hdl: wmi handle
|
||||
* @params: pointer to wmi_btm_config
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS wmi_unified_send_btm_config(void *wmi_hdl,
|
||||
struct wmi_btm_config *params);
|
||||
|
||||
/**
|
||||
* wmi_unified_offload_11k_cmd() - send 11k offload command
|
||||
* @wmi_hdl: wmi handle
|
||||
* @params: 11k offload params
|
||||
*
|
||||
* This function passes the 11k offload command params to FW
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_offload_11k_cmd(void *wmi_hdl,
|
||||
struct wmi_11k_offload_params *params);
|
||||
/**
|
||||
* wmi_unified_invoke_neighbor_report_cmd() - send invoke neighbor report cmd
|
||||
* @wmi_hdl: wmi handle
|
||||
* @params: invoke neighbor report params
|
||||
*
|
||||
* This function passes the invoke neighbor report command to fw
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_invoke_neighbor_report_cmd(void *wmi_hdl,
|
||||
struct wmi_invoke_neighbor_report_params *params);
|
||||
|
||||
#endif /* _WMI_UNIFIED_ROAM_API_H_ */
|
Reference in New Issue
Block a user