qcacmn: Add extscan feature flag
Add config flag to enable / disable extscan feature Change-Id: I6303836226aa2cdcaf3a680d9ce36f2490fde615 CRs-Fixed: 2243749
This commit is contained in:
@@ -58,6 +58,10 @@
|
||||
#include "wmi_unified_twt_api.h"
|
||||
#endif
|
||||
|
||||
#ifdef FEATURE_WLAN_EXTSCAN
|
||||
#include "wmi_unified_extscan_api.h"
|
||||
#endif
|
||||
|
||||
#ifdef IPA_OFFLOAD
|
||||
#include "wlan_ipa_public_struct.h"
|
||||
#endif
|
||||
@@ -804,12 +808,6 @@ QDF_STATUS wmi_unified_set_rssi_monitoring_cmd(void *wmi_hdl,
|
||||
QDF_STATUS wmi_unified_scan_probe_setoui_cmd(void *wmi_hdl,
|
||||
struct scan_mac_oui *psetoui);
|
||||
|
||||
QDF_STATUS wmi_unified_reset_passpoint_network_list_cmd(void *wmi_hdl,
|
||||
struct wifi_passpoint_req_param *req);
|
||||
|
||||
QDF_STATUS wmi_unified_set_passpoint_network_list_cmd(void *wmi_hdl,
|
||||
struct wifi_passpoint_req_param *req);
|
||||
|
||||
#ifdef CONFIG_MCL
|
||||
QDF_STATUS wmi_unified_roam_scan_offload_mode_cmd(void *wmi_hdl,
|
||||
wmi_start_scan_cmd_fixed_param *scan_cmd_fp,
|
||||
@@ -835,38 +833,11 @@ QDF_STATUS wmi_unified_roam_scan_offload_rssi_thresh_cmd(void *wmi_hdl,
|
||||
QDF_STATUS wmi_unified_roam_scan_filter_cmd(void *wmi_hdl,
|
||||
struct roam_scan_filter_params *roam_req);
|
||||
|
||||
QDF_STATUS wmi_unified_set_epno_network_list_cmd(void *wmi_hdl,
|
||||
struct wifi_enhanched_pno_params *req);
|
||||
|
||||
#ifdef IPA_OFFLOAD
|
||||
QDF_STATUS wmi_unified_ipa_offload_control_cmd(void *wmi_hdl,
|
||||
struct ipa_uc_offload_control_params *ipa_offload);
|
||||
#endif
|
||||
|
||||
QDF_STATUS wmi_unified_extscan_get_capabilities_cmd(void *wmi_hdl,
|
||||
struct extscan_capabilities_params *pgetcapab);
|
||||
|
||||
QDF_STATUS wmi_unified_extscan_get_cached_results_cmd(void *wmi_hdl,
|
||||
struct extscan_cached_result_params *pcached_results);
|
||||
|
||||
|
||||
QDF_STATUS wmi_unified_extscan_stop_change_monitor_cmd(void *wmi_hdl,
|
||||
struct extscan_capabilities_reset_params *reset_req);
|
||||
|
||||
|
||||
QDF_STATUS wmi_unified_extscan_start_change_monitor_cmd(void *wmi_hdl,
|
||||
struct extscan_set_sig_changereq_params *
|
||||
psigchange);
|
||||
|
||||
QDF_STATUS wmi_unified_extscan_stop_hotlist_monitor_cmd(void *wmi_hdl,
|
||||
struct extscan_bssid_hotlist_reset_params *photlist_reset);
|
||||
|
||||
QDF_STATUS wmi_unified_stop_extscan_cmd(void *wmi_hdl,
|
||||
struct extscan_stop_req_params *pstopcmd);
|
||||
|
||||
QDF_STATUS wmi_unified_start_extscan_cmd(void *wmi_hdl,
|
||||
struct wifi_scan_cmd_req_params *pstart);
|
||||
|
||||
QDF_STATUS wmi_unified_plm_stop_cmd(void *wmi_hdl,
|
||||
const struct plm_req_params *plm);
|
||||
|
||||
@@ -1125,10 +1096,6 @@ QDF_STATUS wmi_unified_roam_scan_offload_rssi_change_cmd(void *wmi_hdl,
|
||||
QDF_STATUS wmi_unified_set_per_roam_config(void *wmi_hdl,
|
||||
struct wmi_per_roam_config_req *req_buf);
|
||||
|
||||
QDF_STATUS wmi_unified_get_buf_extscan_hotlist_cmd(void *wmi_hdl,
|
||||
struct ext_scan_setbssi_hotlist_params *
|
||||
photlist, int *buf_len);
|
||||
|
||||
/**
|
||||
* wmi_unified_set_active_bpf_mode_cmd() - config active BPF mode in FW
|
||||
* @wmi_hdl: the WMI handle
|
||||
|
57
wmi/inc/wmi_unified_extscan_api.h
Normal file
57
wmi/inc/wmi_unified_extscan_api.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef _WMI_UNIFIED_EXTSCAN_API_H_
|
||||
#define _WMI_UNIFIED_EXTSCAN_API_H_
|
||||
|
||||
QDF_STATUS wmi_unified_reset_passpoint_network_list_cmd(void *wmi_hdl,
|
||||
struct wifi_passpoint_req_param *req);
|
||||
|
||||
QDF_STATUS wmi_unified_set_passpoint_network_list_cmd(void *wmi_hdl,
|
||||
struct wifi_passpoint_req_param *req);
|
||||
|
||||
QDF_STATUS wmi_unified_set_epno_network_list_cmd(void *wmi_hdl,
|
||||
struct wifi_enhanched_pno_params *req);
|
||||
|
||||
QDF_STATUS wmi_unified_extscan_get_capabilities_cmd(void *wmi_hdl,
|
||||
struct extscan_capabilities_params *pgetcapab);
|
||||
|
||||
QDF_STATUS wmi_unified_extscan_get_cached_results_cmd(void *wmi_hdl,
|
||||
struct extscan_cached_result_params *pcached_results);
|
||||
|
||||
QDF_STATUS wmi_unified_extscan_stop_change_monitor_cmd(void *wmi_hdl,
|
||||
struct extscan_capabilities_reset_params *reset_req);
|
||||
|
||||
QDF_STATUS wmi_unified_extscan_start_change_monitor_cmd(void *wmi_hdl,
|
||||
struct extscan_set_sig_changereq_params *
|
||||
psigchange);
|
||||
|
||||
QDF_STATUS wmi_unified_extscan_stop_hotlist_monitor_cmd(void *wmi_hdl,
|
||||
struct extscan_bssid_hotlist_reset_params *photlist_reset);
|
||||
|
||||
QDF_STATUS wmi_unified_stop_extscan_cmd(void *wmi_hdl,
|
||||
struct extscan_stop_req_params *pstopcmd);
|
||||
|
||||
QDF_STATUS wmi_unified_start_extscan_cmd(void *wmi_hdl,
|
||||
struct wifi_scan_cmd_req_params *pstart);
|
||||
|
||||
QDF_STATUS wmi_unified_get_buf_extscan_hotlist_cmd(void *wmi_hdl,
|
||||
struct ext_scan_setbssi_hotlist_params *
|
||||
photlist, int *buf_len);
|
||||
|
||||
#endif /* _WMI_UNIFIED_EXTSCAN_API_H_ */
|
@@ -1753,6 +1753,14 @@ void wmi_tlv_attach(wmi_unified_t wmi_handle);
|
||||
#endif
|
||||
void wmi_non_tlv_attach(wmi_unified_t wmi_handle);
|
||||
|
||||
#ifdef FEATURE_WLAN_EXTSCAN
|
||||
void wmi_extscan_attach_tlv(struct wmi_unified *wmi_handle);
|
||||
#else
|
||||
static inline void wmi_extscan_attach_tlv(struct wmi_unified *wmi_handle)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* wmi_align() - provides word aligned parameter
|
||||
* @param: parameter to be aligned
|
||||
|
@@ -1630,72 +1630,6 @@ QDF_STATUS wmi_unified_scan_probe_setoui_cmd(void *wmi_hdl,
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_reset_passpoint_network_list_cmd() - reset passpoint network list
|
||||
* @wmi_hdl: wmi handle
|
||||
* @req: passpoint network request structure
|
||||
*
|
||||
* This function sends down WMI command with network id set to wildcard id.
|
||||
* firmware shall clear all the config entries
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_reset_passpoint_network_list_cmd(void *wmi_hdl,
|
||||
struct wifi_passpoint_req_param *req)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_reset_passpoint_network_list_cmd)
|
||||
return wmi_handle->ops->send_reset_passpoint_network_list_cmd(wmi_handle,
|
||||
req);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_set_passpoint_network_list_cmd() - set passpoint network list
|
||||
* @wmi_hdl: wmi handle
|
||||
* @req: passpoint network request structure
|
||||
*
|
||||
* This function reads the incoming @req and fill in the destination
|
||||
* WMI structure and send down the passpoint configs down to the firmware
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_set_passpoint_network_list_cmd(void *wmi_hdl,
|
||||
struct wifi_passpoint_req_param *req)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_set_passpoint_network_list_cmd)
|
||||
return wmi_handle->ops->send_set_passpoint_network_list_cmd(wmi_handle,
|
||||
req);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/** wmi_unified_set_epno_network_list_cmd() - set epno network list
|
||||
* @wmi_hdl: wmi handle
|
||||
* @req: epno config params request structure
|
||||
*
|
||||
* This function reads the incoming epno config request structure
|
||||
* and constructs the WMI message to the firmware.
|
||||
*
|
||||
* Returns: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures,
|
||||
* error number otherwise
|
||||
*/
|
||||
QDF_STATUS wmi_unified_set_epno_network_list_cmd(void *wmi_hdl,
|
||||
struct wifi_enhanched_pno_params *req)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_set_epno_network_list_cmd)
|
||||
return wmi_handle->ops->send_set_epno_network_list_cmd(wmi_handle,
|
||||
req);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_MCL
|
||||
/**
|
||||
* wmi_unified_roam_scan_offload_mode_cmd() - set roam scan parameters
|
||||
@@ -1801,155 +1735,6 @@ QDF_STATUS wmi_unified_ipa_offload_control_cmd(void *wmi_hdl,
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* wmi_unified_extscan_get_capabilities_cmd() - extscan get capabilities
|
||||
* @wmi_hdl: wmi handle
|
||||
* @pgetcapab: get capabilities params
|
||||
*
|
||||
* This function send request to fw to get extscan capabilities.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_extscan_get_capabilities_cmd(void *wmi_hdl,
|
||||
struct extscan_capabilities_params *pgetcapab)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_extscan_get_capabilities_cmd)
|
||||
return wmi_handle->ops->send_extscan_get_capabilities_cmd(wmi_handle,
|
||||
pgetcapab);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_extscan_get_cached_results_cmd() - extscan get cached results
|
||||
* @wmi_hdl: wmi handle
|
||||
* @pcached_results: cached results parameters
|
||||
*
|
||||
* This function send request to fw to get cached results.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_extscan_get_cached_results_cmd(void *wmi_hdl,
|
||||
struct extscan_cached_result_params *pcached_results)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_extscan_get_cached_results_cmd)
|
||||
return wmi_handle->ops->send_extscan_get_cached_results_cmd(wmi_handle,
|
||||
pcached_results);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_extscan_stop_change_monitor_cmd() - send stop change monitor cmd
|
||||
* @wmi_hdl: wmi handle
|
||||
* @reset_req: Reset change request params
|
||||
*
|
||||
* This function sends stop change monitor request to fw.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_extscan_stop_change_monitor_cmd(void *wmi_hdl,
|
||||
struct extscan_capabilities_reset_params *reset_req)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_extscan_stop_change_monitor_cmd)
|
||||
return wmi_handle->ops->send_extscan_stop_change_monitor_cmd(wmi_handle,
|
||||
reset_req);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* wmi_unified_extscan_start_change_monitor_cmd() - start change monitor cmd
|
||||
* @wmi_hdl: wmi handle
|
||||
* @psigchange: change monitor request params
|
||||
*
|
||||
* This function sends start change monitor request to fw.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_extscan_start_change_monitor_cmd(void *wmi_hdl,
|
||||
struct extscan_set_sig_changereq_params *
|
||||
psigchange)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_extscan_start_change_monitor_cmd)
|
||||
return wmi_handle->ops->send_extscan_start_change_monitor_cmd(wmi_handle,
|
||||
psigchange);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_extscan_stop_hotlist_monitor_cmd() - stop hotlist monitor
|
||||
* @wmi_hdl: wmi handle
|
||||
* @photlist_reset: hotlist reset params
|
||||
*
|
||||
* This function configures hotlist monitor to stop in fw.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_extscan_stop_hotlist_monitor_cmd(void *wmi_hdl,
|
||||
struct extscan_bssid_hotlist_reset_params *photlist_reset)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_extscan_stop_hotlist_monitor_cmd)
|
||||
return wmi_handle->ops->send_extscan_stop_hotlist_monitor_cmd(wmi_handle,
|
||||
photlist_reset);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_stop_extscan_cmd() - stop extscan command to fw.
|
||||
* @wmi_hdl: wmi handle
|
||||
* @pstopcmd: stop scan command request params
|
||||
*
|
||||
* This function sends stop extscan request to fw.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
||||
*/
|
||||
QDF_STATUS wmi_unified_stop_extscan_cmd(void *wmi_hdl,
|
||||
struct extscan_stop_req_params *pstopcmd)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_stop_extscan_cmd)
|
||||
return wmi_handle->ops->send_stop_extscan_cmd(wmi_handle,
|
||||
pstopcmd);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_start_extscan_cmd() - start extscan command to fw.
|
||||
* @wmi_hdl: wmi handle
|
||||
* @pstart: scan command request params
|
||||
*
|
||||
* This function sends start extscan request to fw.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
||||
*/
|
||||
QDF_STATUS wmi_unified_start_extscan_cmd(void *wmi_hdl,
|
||||
struct wifi_scan_cmd_req_params *pstart)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_start_extscan_cmd)
|
||||
return wmi_handle->ops->send_start_extscan_cmd(wmi_handle,
|
||||
pstart);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_plm_stop_cmd() - plm stop request
|
||||
@@ -3372,30 +3157,6 @@ QDF_STATUS wmi_unified_roam_send_hlp_cmd(void *wmi_hdl,
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* wmi_unified_get_buf_extscan_hotlist_cmd() - prepare hotlist command
|
||||
* @wmi_hdl: wmi handle
|
||||
* @photlist: hotlist command params
|
||||
* @buf_len: buffer length
|
||||
*
|
||||
* This function fills individual elements for hotlist request and
|
||||
* TLV for bssid entries
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
||||
*/
|
||||
QDF_STATUS wmi_unified_get_buf_extscan_hotlist_cmd(void *wmi_hdl,
|
||||
struct ext_scan_setbssi_hotlist_params *
|
||||
photlist, int *buf_len)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_get_buf_extscan_hotlist_cmd)
|
||||
return wmi_handle->ops->send_get_buf_extscan_hotlist_cmd(wmi_handle,
|
||||
photlist, buf_len);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
QDF_STATUS wmi_unified_set_active_bpf_mode_cmd(void *wmi_hdl,
|
||||
uint8_t vdev_id,
|
||||
enum wmi_host_active_bpf_mode ucast_mode,
|
||||
|
259
wmi/src/wmi_unified_extscan_api.c
Normal file
259
wmi/src/wmi_unified_extscan_api.c
Normal file
@@ -0,0 +1,259 @@
|
||||
/*
|
||||
* 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"
|
||||
|
||||
/**
|
||||
* wmi_unified_reset_passpoint_network_list_cmd() - reset passpoint network list
|
||||
* @wmi_hdl: wmi handle
|
||||
* @req: passpoint network request structure
|
||||
*
|
||||
* This function sends down WMI command with network id set to wildcard id.
|
||||
* firmware shall clear all the config entries
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_reset_passpoint_network_list_cmd(void *wmi_hdl,
|
||||
struct wifi_passpoint_req_param *req)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_reset_passpoint_network_list_cmd)
|
||||
return wmi_handle->ops->send_reset_passpoint_network_list_cmd(wmi_handle,
|
||||
req);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_set_passpoint_network_list_cmd() - set passpoint network list
|
||||
* @wmi_hdl: wmi handle
|
||||
* @req: passpoint network request structure
|
||||
*
|
||||
* This function reads the incoming @req and fill in the destination
|
||||
* WMI structure and send down the passpoint configs down to the firmware
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_set_passpoint_network_list_cmd(void *wmi_hdl,
|
||||
struct wifi_passpoint_req_param *req)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_set_passpoint_network_list_cmd)
|
||||
return wmi_handle->ops->send_set_passpoint_network_list_cmd(wmi_handle,
|
||||
req);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/** wmi_unified_set_epno_network_list_cmd() - set epno network list
|
||||
* @wmi_hdl: wmi handle
|
||||
* @req: epno config params request structure
|
||||
*
|
||||
* This function reads the incoming epno config request structure
|
||||
* and constructs the WMI message to the firmware.
|
||||
*
|
||||
* Returns: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures,
|
||||
* error number otherwise
|
||||
*/
|
||||
QDF_STATUS wmi_unified_set_epno_network_list_cmd(void *wmi_hdl,
|
||||
struct wifi_enhanched_pno_params *req)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_set_epno_network_list_cmd)
|
||||
return wmi_handle->ops->send_set_epno_network_list_cmd(wmi_handle,
|
||||
req);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_extscan_get_capabilities_cmd() - extscan get capabilities
|
||||
* @wmi_hdl: wmi handle
|
||||
* @pgetcapab: get capabilities params
|
||||
*
|
||||
* This function send request to fw to get extscan capabilities.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_extscan_get_capabilities_cmd(void *wmi_hdl,
|
||||
struct extscan_capabilities_params *pgetcapab)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_extscan_get_capabilities_cmd)
|
||||
return wmi_handle->ops->send_extscan_get_capabilities_cmd(wmi_handle,
|
||||
pgetcapab);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_extscan_get_cached_results_cmd() - extscan get cached results
|
||||
* @wmi_hdl: wmi handle
|
||||
* @pcached_results: cached results parameters
|
||||
*
|
||||
* This function send request to fw to get cached results.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_extscan_get_cached_results_cmd(void *wmi_hdl,
|
||||
struct extscan_cached_result_params *pcached_results)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_extscan_get_cached_results_cmd)
|
||||
return wmi_handle->ops->send_extscan_get_cached_results_cmd(wmi_handle,
|
||||
pcached_results);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_extscan_stop_change_monitor_cmd() - send stop change monitor cmd
|
||||
* @wmi_hdl: wmi handle
|
||||
* @reset_req: Reset change request params
|
||||
*
|
||||
* This function sends stop change monitor request to fw.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_extscan_stop_change_monitor_cmd(void *wmi_hdl,
|
||||
struct extscan_capabilities_reset_params *reset_req)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_extscan_stop_change_monitor_cmd)
|
||||
return wmi_handle->ops->send_extscan_stop_change_monitor_cmd(wmi_handle,
|
||||
reset_req);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* wmi_unified_extscan_start_change_monitor_cmd() - start change monitor cmd
|
||||
* @wmi_hdl: wmi handle
|
||||
* @psigchange: change monitor request params
|
||||
*
|
||||
* This function sends start change monitor request to fw.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_extscan_start_change_monitor_cmd(void *wmi_hdl,
|
||||
struct extscan_set_sig_changereq_params *
|
||||
psigchange)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_extscan_start_change_monitor_cmd)
|
||||
return wmi_handle->ops->send_extscan_start_change_monitor_cmd(wmi_handle,
|
||||
psigchange);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_extscan_stop_hotlist_monitor_cmd() - stop hotlist monitor
|
||||
* @wmi_hdl: wmi handle
|
||||
* @photlist_reset: hotlist reset params
|
||||
*
|
||||
* This function configures hotlist monitor to stop in fw.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_extscan_stop_hotlist_monitor_cmd(void *wmi_hdl,
|
||||
struct extscan_bssid_hotlist_reset_params *photlist_reset)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_extscan_stop_hotlist_monitor_cmd)
|
||||
return wmi_handle->ops->send_extscan_stop_hotlist_monitor_cmd(wmi_handle,
|
||||
photlist_reset);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_stop_extscan_cmd() - stop extscan command to fw.
|
||||
* @wmi_hdl: wmi handle
|
||||
* @pstopcmd: stop scan command request params
|
||||
*
|
||||
* This function sends stop extscan request to fw.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
||||
*/
|
||||
QDF_STATUS wmi_unified_stop_extscan_cmd(void *wmi_hdl,
|
||||
struct extscan_stop_req_params *pstopcmd)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_stop_extscan_cmd)
|
||||
return wmi_handle->ops->send_stop_extscan_cmd(wmi_handle,
|
||||
pstopcmd);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_start_extscan_cmd() - start extscan command to fw.
|
||||
* @wmi_hdl: wmi handle
|
||||
* @pstart: scan command request params
|
||||
*
|
||||
* This function sends start extscan request to fw.
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
||||
*/
|
||||
QDF_STATUS wmi_unified_start_extscan_cmd(void *wmi_hdl,
|
||||
struct wifi_scan_cmd_req_params *pstart)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_start_extscan_cmd)
|
||||
return wmi_handle->ops->send_start_extscan_cmd(wmi_handle,
|
||||
pstart);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_get_buf_extscan_hotlist_cmd() - prepare hotlist command
|
||||
* @wmi_hdl: wmi handle
|
||||
* @photlist: hotlist command params
|
||||
* @buf_len: buffer length
|
||||
*
|
||||
* This function fills individual elements for hotlist request and
|
||||
* TLV for bssid entries
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
|
||||
*/
|
||||
QDF_STATUS wmi_unified_get_buf_extscan_hotlist_cmd(void *wmi_hdl,
|
||||
struct ext_scan_setbssi_hotlist_params *
|
||||
photlist, int *buf_len)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_get_buf_extscan_hotlist_cmd)
|
||||
return wmi_handle->ops->send_get_buf_extscan_hotlist_cmd(wmi_handle,
|
||||
photlist, buf_len);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
1112
wmi/src/wmi_unified_extscan_tlv.c
Normal file
1112
wmi/src/wmi_unified_extscan_tlv.c
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user