xref: /wlan-driver/qca-wifi-host-cmn/wmi/inc/wmi_unified_extscan_api.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2013-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 #ifndef _WMI_UNIFIED_EXTSCAN_API_H_
20*5113495bSYour Name #define _WMI_UNIFIED_EXTSCAN_API_H_
21*5113495bSYour Name 
22*5113495bSYour Name /**
23*5113495bSYour Name  * wmi_unified_reset_passpoint_network_list_cmd() - reset passpoint network list
24*5113495bSYour Name  * @wmi_handle: wmi handle
25*5113495bSYour Name  * @req: passpoint network request structure
26*5113495bSYour Name  *
27*5113495bSYour Name  * This function sends down WMI command with network id set to wildcard id.
28*5113495bSYour Name  * firmware shall clear all the config entries
29*5113495bSYour Name  *
30*5113495bSYour Name  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
31*5113495bSYour Name  */
32*5113495bSYour Name QDF_STATUS wmi_unified_reset_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 /**
37*5113495bSYour Name  * wmi_unified_set_passpoint_network_list_cmd() - set passpoint network list
38*5113495bSYour Name  * @wmi_handle: wmi handle
39*5113495bSYour Name  * @req: passpoint network request structure
40*5113495bSYour Name  *
41*5113495bSYour Name  * This function reads the incoming @req and fill in the destination
42*5113495bSYour Name  * WMI structure and send down the passpoint configs down to the firmware
43*5113495bSYour Name  *
44*5113495bSYour Name  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
45*5113495bSYour Name  */
46*5113495bSYour Name 
47*5113495bSYour Name QDF_STATUS wmi_unified_set_passpoint_network_list_cmd(
48*5113495bSYour Name 		wmi_unified_t wmi_handle,
49*5113495bSYour Name 		struct wifi_passpoint_req_param *req);
50*5113495bSYour Name 
51*5113495bSYour Name /** wmi_unified_set_epno_network_list_cmd() - set epno network list
52*5113495bSYour Name  * @wmi_handle: wmi handle
53*5113495bSYour Name  * @req: epno config params request structure
54*5113495bSYour Name  *
55*5113495bSYour Name  * This function reads the incoming epno config request structure
56*5113495bSYour Name  * and constructs the WMI message to the firmware.
57*5113495bSYour Name  *
58*5113495bSYour Name  * Returns: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failures,
59*5113495bSYour Name  *          error number otherwise
60*5113495bSYour Name  */
61*5113495bSYour Name QDF_STATUS wmi_unified_set_epno_network_list_cmd(
62*5113495bSYour Name 		wmi_unified_t wmi_handle,
63*5113495bSYour Name 		struct wifi_enhanced_pno_params *req);
64*5113495bSYour Name 
65*5113495bSYour Name /**
66*5113495bSYour Name  * wmi_unified_extscan_get_capabilities_cmd() - extscan get capabilities
67*5113495bSYour Name  * @wmi_handle: wmi handle
68*5113495bSYour Name  * @pgetcapab: get capabilities params
69*5113495bSYour Name  *
70*5113495bSYour Name  * This function send request to fw to get extscan capabilities.
71*5113495bSYour Name  *
72*5113495bSYour Name  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
73*5113495bSYour Name  */
74*5113495bSYour Name QDF_STATUS wmi_unified_extscan_get_capabilities_cmd(
75*5113495bSYour Name 		wmi_unified_t wmi_handle,
76*5113495bSYour Name 		struct extscan_capabilities_params *pgetcapab);
77*5113495bSYour Name 
78*5113495bSYour Name /**
79*5113495bSYour Name  * wmi_unified_extscan_get_cached_results_cmd() - extscan get cached results
80*5113495bSYour Name  * @wmi_handle: wmi handle
81*5113495bSYour Name  * @pcached_results: cached results parameters
82*5113495bSYour Name  *
83*5113495bSYour Name  * This function send request to fw to get cached results.
84*5113495bSYour Name  *
85*5113495bSYour Name  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
86*5113495bSYour Name  */
87*5113495bSYour Name QDF_STATUS wmi_unified_extscan_get_cached_results_cmd(
88*5113495bSYour Name 		wmi_unified_t wmi_handle,
89*5113495bSYour Name 		struct extscan_cached_result_params *pcached_results);
90*5113495bSYour Name 
91*5113495bSYour Name /**
92*5113495bSYour Name  * wmi_unified_extscan_stop_change_monitor_cmd() - send stop change monitor cmd
93*5113495bSYour Name  * @wmi_handle: wmi handle
94*5113495bSYour Name  * @reset_req: Reset change request params
95*5113495bSYour Name  *
96*5113495bSYour Name  * This function sends stop change monitor request to fw.
97*5113495bSYour Name  *
98*5113495bSYour Name  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
99*5113495bSYour Name  */
100*5113495bSYour Name QDF_STATUS wmi_unified_extscan_stop_change_monitor_cmd(
101*5113495bSYour Name 		wmi_unified_t wmi_handle,
102*5113495bSYour Name 		struct extscan_capabilities_reset_params *reset_req);
103*5113495bSYour Name 
104*5113495bSYour Name /**
105*5113495bSYour Name  * wmi_unified_extscan_start_change_monitor_cmd() - start change monitor cmd
106*5113495bSYour Name  * @wmi_handle: wmi handle
107*5113495bSYour Name  * @psigchange: change monitor request params
108*5113495bSYour Name  *
109*5113495bSYour Name  * This function sends start change monitor request to fw.
110*5113495bSYour Name  *
111*5113495bSYour Name  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
112*5113495bSYour Name  */
113*5113495bSYour Name QDF_STATUS wmi_unified_extscan_start_change_monitor_cmd(
114*5113495bSYour Name 		wmi_unified_t wmi_handle,
115*5113495bSYour Name 		struct extscan_set_sig_changereq_params *psigchange);
116*5113495bSYour Name 
117*5113495bSYour Name /**
118*5113495bSYour Name  * wmi_unified_extscan_stop_hotlist_monitor_cmd() - stop hotlist monitor
119*5113495bSYour Name  * @wmi_handle: wmi handle
120*5113495bSYour Name  * @photlist_reset: hotlist reset params
121*5113495bSYour Name  *
122*5113495bSYour Name  * This function configures hotlist monitor to stop in fw.
123*5113495bSYour Name  *
124*5113495bSYour Name  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
125*5113495bSYour Name  */
126*5113495bSYour Name QDF_STATUS wmi_unified_extscan_stop_hotlist_monitor_cmd(
127*5113495bSYour Name 		wmi_unified_t wmi_handle,
128*5113495bSYour Name 		struct extscan_bssid_hotlist_reset_params *photlist_reset);
129*5113495bSYour Name 
130*5113495bSYour Name /**
131*5113495bSYour Name  * wmi_unified_extscan_start_hotlist_monitor_cmd() - start hotlist monitor
132*5113495bSYour Name  * @wmi_handle: wmi handle
133*5113495bSYour Name  * @params: hotlist params
134*5113495bSYour Name  *
135*5113495bSYour Name  * This function configures hotlist monitor to start in fw.
136*5113495bSYour Name  *
137*5113495bSYour Name  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
138*5113495bSYour Name  */
139*5113495bSYour Name QDF_STATUS wmi_unified_extscan_start_hotlist_monitor_cmd(
140*5113495bSYour Name 		wmi_unified_t wmi_handle,
141*5113495bSYour Name 		struct extscan_bssid_hotlist_set_params *params);
142*5113495bSYour Name 
143*5113495bSYour Name /**
144*5113495bSYour Name  * wmi_unified_stop_extscan_cmd() - stop extscan command to fw.
145*5113495bSYour Name  * @wmi_handle: wmi handle
146*5113495bSYour Name  * @pstopcmd: stop scan command request params
147*5113495bSYour Name  *
148*5113495bSYour Name  * This function sends stop extscan request to fw.
149*5113495bSYour Name  *
150*5113495bSYour Name  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
151*5113495bSYour Name  */
152*5113495bSYour Name QDF_STATUS wmi_unified_stop_extscan_cmd(
153*5113495bSYour Name 		wmi_unified_t wmi_handle,
154*5113495bSYour Name 		struct extscan_stop_req_params *pstopcmd);
155*5113495bSYour Name 
156*5113495bSYour Name /**
157*5113495bSYour Name  * wmi_unified_start_extscan_cmd() - start extscan command to fw.
158*5113495bSYour Name  * @wmi_handle: wmi handle
159*5113495bSYour Name  * @pstart: scan command request params
160*5113495bSYour Name  *
161*5113495bSYour Name  * This function sends start extscan request to fw.
162*5113495bSYour Name  *
163*5113495bSYour Name  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
164*5113495bSYour Name  */
165*5113495bSYour Name QDF_STATUS wmi_unified_start_extscan_cmd(
166*5113495bSYour Name 		wmi_unified_t wmi_handle,
167*5113495bSYour Name 		struct wifi_scan_cmd_req_params *pstart);
168*5113495bSYour Name 
169*5113495bSYour Name #endif /* _WMI_UNIFIED_EXTSCAN_API_H_ */
170