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