Fixed Build warning wfd_util_get_access_list
[platform/core/connectivity/wifi-direct-manager.git] / plugin / wpasupplicant / wfd-plugin-wpasupplicant-emul.c
1 #include <stdio.h>
2 #include <string.h>
3 #include <sys/types.h>
4 #include <sys/socket.h>
5 #include <unistd.h>
6 #include <poll.h>
7 #include <errno.h>
8
9 #include <glib.h>
10
11 #include "wifi-direct-oem.h"
12 #include "wfd-plugin-wpasupplicant.h"
13
14 static wfd_oem_ops_s supplicant_ops = {
15         .init = ws_init,
16         .deinit = ws_deinit,
17         .activate = ws_activate,
18         .deactivate = ws_deactivate,
19
20         .start_scan = ws_start_scan,
21         .stop_scan = ws_stop_scan,
22         .get_visibility = ws_get_visibility,
23         .set_visibility = ws_set_visibility,
24         .get_scan_result = ws_get_scan_result,
25         .get_peer_info = ws_get_peer_info,
26
27         .prov_disc_req = ws_prov_disc_req,
28
29         .connect = ws_connect,
30         .disconnect = ws_disconnect,
31         .reject_connection = ws_reject_connection,
32         .cancel_connection = ws_cancel_connection,
33         .get_connected_peers = ws_get_connected_peers,
34         .get_pin = ws_get_pin,
35         .set_pin = ws_set_pin,
36         .get_supported_wps_mode = ws_get_supported_wps_mode,
37
38         .create_group = ws_create_group,
39         .destroy_group = ws_destroy_group,
40         .invite = ws_invite,
41         .wps_start = ws_wps_start,
42
43         .get_dev_name = ws_get_dev_name,
44         .set_dev_name = ws_set_dev_name,
45         .get_dev_mac = ws_get_dev_mac,
46         .get_dev_type = ws_get_dev_type,
47         .set_dev_type = ws_set_dev_type,
48         .get_go_intent = ws_get_go_intent,
49         .set_go_intent = ws_set_go_intent,
50         .get_persistent_groups = ws_get_persistent_groups,
51         .remove_persistent_group = ws_remove_persistent_group,
52         .set_persistent_reconnect = ws_set_persistent_reconnect,
53         };
54
55 static ws_plugin_data_s *g_pd;
56
57 int wfd_plugin_load( struct wfd_oem_ops_s **ops)
58 {
59
60         return -1;
61 }
62
63 int ws_init(wfd_oem_event_cb callback, void *user_data)
64 {
65         __WDP_LOG_FUNC_ENTER__;
66
67         __WDP_LOG_FUNC_EXIT__;
68         return -1;
69 }
70
71 int ws_deinit()
72 {
73         __WDP_LOG_FUNC_ENTER__;
74
75         __WDP_LOG_FUNC_EXIT__;
76         return -1;
77 }
78
79 int ws_activate()
80 {
81         __WDP_LOG_FUNC_ENTER__;
82
83         __WDP_LOG_FUNC_EXIT__;
84         return -1;
85 }
86
87 int ws_deactivate()
88 {
89         __WDP_LOG_FUNC_ENTER__;
90
91         __WDP_LOG_FUNC_EXIT__;
92         return -1;
93 }
94
95 int ws_start_scan(wfd_oem_scan_param_s *param)
96 {
97         __WDP_LOG_FUNC_ENTER__;
98
99         __WDP_LOG_FUNC_EXIT__;
100         return -1;
101 }
102
103 int ws_stop_scan()
104 {
105         __WDP_LOG_FUNC_ENTER__;
106
107         __WDP_LOG_FUNC_EXIT__;
108         return -1;
109 }
110
111 int ws_get_visibility(int *visibility)
112 {
113         __WDP_LOG_FUNC_ENTER__;
114
115         __WDP_LOG_FUNC_EXIT__;
116         return -1;
117 }
118
119 int ws_set_visibility(int visibility)
120 {
121         __WDP_LOG_FUNC_ENTER__;
122
123         __WDP_LOG_FUNC_EXIT__;
124         return -1;
125 }
126
127 int ws_get_scan_result(GList **peers, int *peer_count)
128 {
129         __WDP_LOG_FUNC_ENTER__;
130
131         __WDP_LOG_FUNC_EXIT__;
132         return -1;
133 }
134
135 int ws_get_peer_info(unsigned char *peer_addr, wfd_oem_device_s **peer)
136 {
137         __WDP_LOG_FUNC_ENTER__;
138
139         __WDP_LOG_FUNC_EXIT__;
140         return -1;
141 }
142
143 int ws_prov_disc_req(unsigned char *peer_addr, wfd_oem_wps_mode_e wps_mode, int join)
144 {
145         __WDP_LOG_FUNC_ENTER__;
146
147         __WDP_LOG_FUNC_EXIT__;
148         return -1;
149 }
150
151 int ws_connect(unsigned char *peer_addr, wfd_oem_conn_param_s *param)
152 {
153         __WDP_LOG_FUNC_ENTER__;
154
155         __WDP_LOG_FUNC_EXIT__;
156         return -1;
157 }
158
159 int ws_disconnect(unsigned char *peer_addr)
160 {
161         __WDP_LOG_FUNC_ENTER__;
162
163         __WDP_LOG_FUNC_EXIT__;
164         return -1;
165 }
166
167 int ws_reject_connection(unsigned char *peer_addr)
168 {
169         __WDP_LOG_FUNC_ENTER__;
170
171         __WDP_LOG_FUNC_EXIT__;
172         return 0;
173 }
174
175 int ws_cancel_connection(unsigned char *peer_addr)
176 {
177         __WDP_LOG_FUNC_ENTER__;
178
179         __WDP_LOG_FUNC_EXIT__;
180         return 0;
181 }
182
183 int ws_get_connected_peers(GList **peers, int *peer_count)
184 {
185         __WDP_LOG_FUNC_ENTER__;
186
187         __WDP_LOG_FUNC_EXIT__;
188         return -1;
189 }
190
191 int ws_get_pin(char *pin)
192 {
193         __WDP_LOG_FUNC_ENTER__;
194
195         __WDP_LOG_FUNC_EXIT__;
196         return -1;
197 }
198
199 int ws_set_pin(char *pin)
200 {
201         __WDP_LOG_FUNC_ENTER__;
202
203         __WDP_LOG_FUNC_EXIT__;
204         return -1;
205 }
206
207 int ws_get_supported_wps_mode()
208 {
209         __WDP_LOG_FUNC_ENTER__;
210
211         __WDP_LOG_FUNC_EXIT__;
212         return -1;
213 }
214
215 int ws_create_group(int persistent, int freq)
216 {
217         __WDP_LOG_FUNC_ENTER__;
218
219         __WDP_LOG_FUNC_EXIT__;
220         return -1;
221 }
222
223 int ws_destroy_group(const char *ifname)
224 {
225         __WDP_LOG_FUNC_ENTER__;
226
227         __WDP_LOG_FUNC_EXIT__;
228         return -1;
229 }
230
231 int ws_invite(unsigned char *peer_addr, wfd_oem_invite_param_s *param)
232 {
233         __WDP_LOG_FUNC_ENTER__;
234
235         __WDP_LOG_FUNC_EXIT__;
236         return -1;
237 }
238
239 // Only group owner can use this command
240 int ws_wps_start(unsigned char *peer_addr, int wps_mode, const char *pin)
241 {
242         __WDP_LOG_FUNC_ENTER__;
243
244         __WDP_LOG_FUNC_EXIT__;
245         return -1;
246 }
247
248 int ws_get_dev_name(char *dev_name)
249 {
250         __WDP_LOG_FUNC_ENTER__;
251
252         __WDP_LOG_FUNC_EXIT__;
253         return -1;
254 }
255
256 int ws_set_dev_name(char *dev_name)
257 {
258         __WDP_LOG_FUNC_ENTER__;
259
260         __WDP_LOG_FUNC_EXIT__;
261         return -1;
262 }
263
264 int ws_get_dev_mac(char *dev_mac)
265 {
266         __WDP_LOG_FUNC_ENTER__;
267
268         __WDP_LOG_FUNC_EXIT__;
269         return -1;
270 }
271
272 int ws_get_dev_type(int *pri_dev_type, int *sec_dev_type)
273 {
274         __WDP_LOG_FUNC_ENTER__;
275
276         __WDP_LOG_FUNC_EXIT__;
277         return -1;
278 }
279
280 int ws_set_dev_type(int pri_dev_type, int sec_dev_type)
281 {
282         __WDP_LOG_FUNC_ENTER__;
283
284         __WDP_LOG_FUNC_EXIT__;
285         return -1;
286 }
287
288 int ws_get_go_intent(int *go_intent)
289 {
290         __WDP_LOG_FUNC_ENTER__;
291
292         __WDP_LOG_FUNC_EXIT__;
293         return -1;
294 }
295
296 int ws_set_go_intent(int go_intent)
297 {
298         __WDP_LOG_FUNC_ENTER__;
299
300         __WDP_LOG_FUNC_EXIT__;
301         return -1;
302 }
303
304 int ws_get_persistent_groups(wfd_oem_persistent_group_s **groups, int *group_count)
305 {
306         __WDP_LOG_FUNC_ENTER__;
307
308         __WDP_LOG_FUNC_EXIT__;
309         return -1;
310 }
311
312 int ws_remove_persistent_group(char *ssid, unsigned char *bssid)
313 {
314         __WDP_LOG_FUNC_ENTER__;
315
316         __WDP_LOG_FUNC_EXIT__;
317         return -1;
318 }
319
320 int ws_set_persistent_reconnect(unsigned char *bssid, int reconnect)
321 {
322         __WDP_LOG_FUNC_ENTER__;
323
324         __WDP_LOG_FUNC_EXIT__;
325         return -1;
326 }