xref: /wlan-driver/qca-wifi-host-cmn/wmi/src/wmi_unified_extscan_api.c (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
3*5113495bSYour Name  *
4*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for
5*5113495bSYour Name  * any purpose with or without fee is hereby granted, provided that the
6*5113495bSYour Name  * above copyright notice and this permission notice appear in all
7*5113495bSYour Name  * copies.
8*5113495bSYour Name  *
9*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10*5113495bSYour Name  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11*5113495bSYour Name  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12*5113495bSYour Name  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13*5113495bSYour Name  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14*5113495bSYour Name  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15*5113495bSYour Name  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16*5113495bSYour Name  * PERFORMANCE OF THIS SOFTWARE.
17*5113495bSYour Name  */
18*5113495bSYour Name 
19*5113495bSYour Name #include "wmi_unified_priv.h"
20*5113495bSYour Name 
wmi_unified_reset_passpoint_network_list_cmd(wmi_unified_t wmi_handle,struct wifi_passpoint_req_param * req)21*5113495bSYour Name QDF_STATUS wmi_unified_reset_passpoint_network_list_cmd(
22*5113495bSYour Name 	wmi_unified_t wmi_handle,
23*5113495bSYour Name 	struct wifi_passpoint_req_param *req)
24*5113495bSYour Name {
25*5113495bSYour Name 	if (wmi_handle->ops->send_reset_passpoint_network_list_cmd)
26*5113495bSYour Name 		return wmi_handle->ops->send_reset_passpoint_network_list_cmd(wmi_handle,
27*5113495bSYour Name 			    req);
28*5113495bSYour Name 
29*5113495bSYour Name 	return QDF_STATUS_E_FAILURE;
30*5113495bSYour Name }
31*5113495bSYour Name 
wmi_unified_set_passpoint_network_list_cmd(wmi_unified_t wmi_handle,struct wifi_passpoint_req_param * req)32*5113495bSYour Name QDF_STATUS wmi_unified_set_passpoint_network_list_cmd(
33*5113495bSYour Name 		wmi_unified_t wmi_handle,
34*5113495bSYour Name 		struct wifi_passpoint_req_param *req)
35*5113495bSYour Name {
36*5113495bSYour Name 	if (wmi_handle->ops->send_set_passpoint_network_list_cmd)
37*5113495bSYour Name 		return wmi_handle->ops->send_set_passpoint_network_list_cmd(wmi_handle,
38*5113495bSYour Name 			    req);
39*5113495bSYour Name 
40*5113495bSYour Name 	return QDF_STATUS_E_FAILURE;
41*5113495bSYour Name }
42*5113495bSYour Name 
wmi_unified_set_epno_network_list_cmd(wmi_unified_t wmi_handle,struct wifi_enhanced_pno_params * req)43*5113495bSYour Name QDF_STATUS wmi_unified_set_epno_network_list_cmd(
44*5113495bSYour Name 		wmi_unified_t wmi_handle,
45*5113495bSYour Name 		struct wifi_enhanced_pno_params *req)
46*5113495bSYour Name {
47*5113495bSYour Name 	if (wmi_handle->ops->send_set_epno_network_list_cmd)
48*5113495bSYour Name 		return wmi_handle->ops->send_set_epno_network_list_cmd(wmi_handle,
49*5113495bSYour Name 			    req);
50*5113495bSYour Name 
51*5113495bSYour Name 	return QDF_STATUS_E_FAILURE;
52*5113495bSYour Name }
53*5113495bSYour Name 
wmi_unified_extscan_get_capabilities_cmd(wmi_unified_t wmi_handle,struct extscan_capabilities_params * pgetcapab)54*5113495bSYour Name QDF_STATUS wmi_unified_extscan_get_capabilities_cmd(
55*5113495bSYour Name 		wmi_unified_t wmi_handle,
56*5113495bSYour Name 		struct extscan_capabilities_params *pgetcapab)
57*5113495bSYour Name {
58*5113495bSYour Name 	if (wmi_handle->ops->send_extscan_get_capabilities_cmd)
59*5113495bSYour Name 		return wmi_handle->ops->send_extscan_get_capabilities_cmd(wmi_handle,
60*5113495bSYour Name 			    pgetcapab);
61*5113495bSYour Name 
62*5113495bSYour Name 	return QDF_STATUS_E_FAILURE;
63*5113495bSYour Name }
64*5113495bSYour Name 
wmi_unified_extscan_get_cached_results_cmd(wmi_unified_t wmi_handle,struct extscan_cached_result_params * pcached_results)65*5113495bSYour Name QDF_STATUS wmi_unified_extscan_get_cached_results_cmd(
66*5113495bSYour Name 		wmi_unified_t wmi_handle,
67*5113495bSYour Name 		struct extscan_cached_result_params *pcached_results)
68*5113495bSYour Name {
69*5113495bSYour Name 	if (wmi_handle->ops->send_extscan_get_cached_results_cmd)
70*5113495bSYour Name 		return wmi_handle->ops->send_extscan_get_cached_results_cmd(wmi_handle,
71*5113495bSYour Name 			    pcached_results);
72*5113495bSYour Name 
73*5113495bSYour Name 	return QDF_STATUS_E_FAILURE;
74*5113495bSYour Name }
75*5113495bSYour Name 
wmi_unified_extscan_stop_change_monitor_cmd(wmi_unified_t wmi_handle,struct extscan_capabilities_reset_params * reset_req)76*5113495bSYour Name QDF_STATUS wmi_unified_extscan_stop_change_monitor_cmd(
77*5113495bSYour Name 		wmi_unified_t wmi_handle,
78*5113495bSYour Name 		struct extscan_capabilities_reset_params *reset_req)
79*5113495bSYour Name {
80*5113495bSYour Name 	if (wmi_handle->ops->send_extscan_stop_change_monitor_cmd)
81*5113495bSYour Name 		return wmi_handle->ops->send_extscan_stop_change_monitor_cmd(wmi_handle,
82*5113495bSYour Name 			    reset_req);
83*5113495bSYour Name 
84*5113495bSYour Name 	return QDF_STATUS_E_FAILURE;
85*5113495bSYour Name }
86*5113495bSYour Name 
wmi_unified_extscan_start_change_monitor_cmd(wmi_unified_t wmi_handle,struct extscan_set_sig_changereq_params * psigchange)87*5113495bSYour Name QDF_STATUS wmi_unified_extscan_start_change_monitor_cmd(
88*5113495bSYour Name 		wmi_unified_t wmi_handle,
89*5113495bSYour Name 		struct extscan_set_sig_changereq_params *psigchange)
90*5113495bSYour Name {
91*5113495bSYour Name 	if (wmi_handle->ops->send_extscan_start_change_monitor_cmd)
92*5113495bSYour Name 		return wmi_handle->ops->send_extscan_start_change_monitor_cmd(wmi_handle,
93*5113495bSYour Name 			    psigchange);
94*5113495bSYour Name 
95*5113495bSYour Name 	return QDF_STATUS_E_FAILURE;
96*5113495bSYour Name }
97*5113495bSYour Name 
wmi_unified_extscan_stop_hotlist_monitor_cmd(wmi_unified_t wmi_handle,struct extscan_bssid_hotlist_reset_params * photlist_reset)98*5113495bSYour Name QDF_STATUS wmi_unified_extscan_stop_hotlist_monitor_cmd(
99*5113495bSYour Name 		wmi_unified_t wmi_handle,
100*5113495bSYour Name 		struct extscan_bssid_hotlist_reset_params *photlist_reset)
101*5113495bSYour Name {
102*5113495bSYour Name 	if (wmi_handle->ops->send_extscan_stop_hotlist_monitor_cmd)
103*5113495bSYour Name 		return wmi_handle->ops->send_extscan_stop_hotlist_monitor_cmd(wmi_handle,
104*5113495bSYour Name 			    photlist_reset);
105*5113495bSYour Name 
106*5113495bSYour Name 	return QDF_STATUS_E_FAILURE;
107*5113495bSYour Name }
108*5113495bSYour Name 
wmi_unified_extscan_start_hotlist_monitor_cmd(wmi_unified_t wmi_handle,struct extscan_bssid_hotlist_set_params * params)109*5113495bSYour Name QDF_STATUS wmi_unified_extscan_start_hotlist_monitor_cmd(
110*5113495bSYour Name 		wmi_unified_t wmi_handle,
111*5113495bSYour Name 		struct extscan_bssid_hotlist_set_params *params)
112*5113495bSYour Name {
113*5113495bSYour Name 	if (wmi_handle->ops->send_extscan_start_hotlist_monitor_cmd)
114*5113495bSYour Name 		return wmi_handle->ops->send_extscan_start_hotlist_monitor_cmd(wmi_handle,
115*5113495bSYour Name 									       params);
116*5113495bSYour Name 
117*5113495bSYour Name 	return QDF_STATUS_E_FAILURE;
118*5113495bSYour Name }
119*5113495bSYour Name 
wmi_unified_stop_extscan_cmd(wmi_unified_t wmi_handle,struct extscan_stop_req_params * pstopcmd)120*5113495bSYour Name QDF_STATUS wmi_unified_stop_extscan_cmd(
121*5113495bSYour Name 		wmi_unified_t wmi_handle,
122*5113495bSYour Name 		struct extscan_stop_req_params *pstopcmd)
123*5113495bSYour Name {
124*5113495bSYour Name 	if (wmi_handle->ops->send_stop_extscan_cmd)
125*5113495bSYour Name 		return wmi_handle->ops->send_stop_extscan_cmd(wmi_handle,
126*5113495bSYour Name 			    pstopcmd);
127*5113495bSYour Name 
128*5113495bSYour Name 	return QDF_STATUS_E_FAILURE;
129*5113495bSYour Name }
130*5113495bSYour Name 
wmi_unified_start_extscan_cmd(wmi_unified_t wmi_handle,struct wifi_scan_cmd_req_params * pstart)131*5113495bSYour Name QDF_STATUS wmi_unified_start_extscan_cmd(
132*5113495bSYour Name 		wmi_unified_t wmi_handle,
133*5113495bSYour Name 		struct wifi_scan_cmd_req_params *pstart)
134*5113495bSYour Name {
135*5113495bSYour Name 	if (wmi_handle->ops->send_start_extscan_cmd)
136*5113495bSYour Name 		return wmi_handle->ops->send_start_extscan_cmd(wmi_handle,
137*5113495bSYour Name 			    pstart);
138*5113495bSYour Name 
139*5113495bSYour Name 	return QDF_STATUS_E_FAILURE;
140*5113495bSYour Name }
141