/src/hostap/wpa_supplicant/dbus/dbus_new.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * WPA Supplicant / dbus-based control interface |
3 | | * Copyright (c) 2006, Dan Williams <dcbw@redhat.com> and Red Hat, Inc. |
4 | | * Copyright (c) 2009-2010, Witold Sowa <witold.sowa@gmail.com> |
5 | | * |
6 | | * This software may be distributed under the terms of the BSD license. |
7 | | * See README for more details. |
8 | | */ |
9 | | |
10 | | #ifndef CTRL_IFACE_DBUS_NEW_H |
11 | | #define CTRL_IFACE_DBUS_NEW_H |
12 | | |
13 | | #include "common/defs.h" |
14 | | #include "p2p/p2p.h" |
15 | | |
16 | | struct wpa_global; |
17 | | struct wpa_supplicant; |
18 | | struct wpa_ssid; |
19 | | struct wpa_cred; |
20 | | struct wpa_bss; |
21 | | struct wps_event_m2d; |
22 | | struct wps_event_fail; |
23 | | struct wps_credential; |
24 | | |
25 | | enum wpas_dbus_prop { |
26 | | WPAS_DBUS_PROP_AP_SCAN, |
27 | | WPAS_DBUS_PROP_SCANNING, |
28 | | WPAS_DBUS_PROP_STATE, |
29 | | WPAS_DBUS_PROP_CURRENT_BSS, |
30 | | WPAS_DBUS_PROP_CURRENT_NETWORK, |
31 | | WPAS_DBUS_PROP_CURRENT_AUTH_MODE, |
32 | | WPAS_DBUS_PROP_BSSS, |
33 | | WPAS_DBUS_PROP_STATIONS, |
34 | | WPAS_DBUS_PROP_DISCONNECT_REASON, |
35 | | WPAS_DBUS_PROP_AUTH_STATUS_CODE, |
36 | | WPAS_DBUS_PROP_ASSOC_STATUS_CODE, |
37 | | WPAS_DBUS_PROP_ROAM_TIME, |
38 | | WPAS_DBUS_PROP_ROAM_COMPLETE, |
39 | | WPAS_DBUS_PROP_SESSION_LENGTH, |
40 | | WPAS_DBUS_PROP_BSS_TM_STATUS, |
41 | | WPAS_DBUS_PROP_MAC_ADDRESS, |
42 | | WPAS_DBUS_PROP_SIGNAL_CHANGE, |
43 | | }; |
44 | | |
45 | | enum wpas_dbus_bss_prop { |
46 | | WPAS_DBUS_BSS_PROP_SIGNAL, |
47 | | WPAS_DBUS_BSS_PROP_FREQ, |
48 | | WPAS_DBUS_BSS_PROP_MODE, |
49 | | WPAS_DBUS_BSS_PROP_PRIVACY, |
50 | | WPAS_DBUS_BSS_PROP_RATES, |
51 | | WPAS_DBUS_BSS_PROP_WPA, |
52 | | WPAS_DBUS_BSS_PROP_RSN, |
53 | | WPAS_DBUS_BSS_PROP_WPS, |
54 | | WPAS_DBUS_BSS_PROP_IES, |
55 | | WPAS_DBUS_BSS_PROP_AGE, |
56 | | }; |
57 | | |
58 | | enum wpas_dbus_sta_prop { |
59 | | WPAS_DBUS_STA_PROP_ADDRESS, |
60 | | }; |
61 | | |
62 | | #define WPAS_DBUS_OBJECT_PATH_MAX 150 |
63 | | |
64 | | #define WPAS_DBUS_NEW_SERVICE "fi.w1.wpa_supplicant1" |
65 | | #define WPAS_DBUS_NEW_PATH "/fi/w1/wpa_supplicant1" |
66 | | #define WPAS_DBUS_NEW_INTERFACE "fi.w1.wpa_supplicant1" |
67 | | |
68 | | #define WPAS_DBUS_NEW_PATH_INTERFACES WPAS_DBUS_NEW_PATH "/Interfaces" |
69 | | #define WPAS_DBUS_NEW_IFACE_INTERFACE WPAS_DBUS_NEW_INTERFACE ".Interface" |
70 | | #define WPAS_DBUS_NEW_IFACE_WPS WPAS_DBUS_NEW_IFACE_INTERFACE ".WPS" |
71 | | |
72 | | #define WPAS_DBUS_NEW_NETWORKS_PART "Networks" |
73 | | #define WPAS_DBUS_NEW_IFACE_NETWORK WPAS_DBUS_NEW_INTERFACE ".Network" |
74 | | |
75 | | #define WPAS_DBUS_NEW_BSSIDS_PART "BSSs" |
76 | | #define WPAS_DBUS_NEW_IFACE_BSS WPAS_DBUS_NEW_INTERFACE ".BSS" |
77 | | |
78 | | #define WPAS_DBUS_NEW_STAS_PART "Stations" |
79 | | #define WPAS_DBUS_NEW_IFACE_STA WPAS_DBUS_NEW_INTERFACE ".Station" |
80 | | |
81 | | #define WPAS_DBUS_NEW_IFACE_P2PDEVICE \ |
82 | | WPAS_DBUS_NEW_IFACE_INTERFACE ".P2PDevice" |
83 | | |
84 | | #define WPAS_DBUS_NEW_IFACE_MESH WPAS_DBUS_NEW_IFACE_INTERFACE ".Mesh" |
85 | | |
86 | | /* |
87 | | * Groups correspond to P2P groups where this device is a GO (owner) |
88 | | */ |
89 | | #define WPAS_DBUS_NEW_P2P_GROUPS_PART "Groups" |
90 | | #define WPAS_DBUS_NEW_IFACE_P2P_GROUP WPAS_DBUS_NEW_INTERFACE ".Group" |
91 | | |
92 | | /* |
93 | | * Different dbus object for persistent groups so they do not get confused |
94 | | * with regular (configured) network objects. |
95 | | */ |
96 | | #define WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART "PersistentGroups" |
97 | | #define WPAS_DBUS_NEW_IFACE_PERSISTENT_GROUP \ |
98 | | WPAS_DBUS_NEW_INTERFACE ".PersistentGroup" |
99 | | |
100 | | #define WPAS_DBUS_NEW_P2P_PEERS_PART "Peers" |
101 | | #define WPAS_DBUS_NEW_IFACE_P2P_PEER WPAS_DBUS_NEW_INTERFACE ".Peer" |
102 | | |
103 | | #define WPAS_DBUS_NEW_CREDENTIALS_PART "Credentials" |
104 | | #define WPAS_DBUS_NEW_IFACE_CREDENTIAL WPAS_DBUS_NEW_INTERFACE ".Credential" |
105 | | |
106 | | /* Top-level Errors */ |
107 | | #define WPAS_DBUS_ERROR_UNKNOWN_ERROR \ |
108 | | WPAS_DBUS_NEW_INTERFACE ".UnknownError" |
109 | | #define WPAS_DBUS_ERROR_INVALID_ARGS \ |
110 | | WPAS_DBUS_NEW_INTERFACE ".InvalidArgs" |
111 | | |
112 | | #define WPAS_DBUS_ERROR_IFACE_EXISTS \ |
113 | | WPAS_DBUS_NEW_INTERFACE ".InterfaceExists" |
114 | | #define WPAS_DBUS_ERROR_IFACE_DISABLED \ |
115 | | WPAS_DBUS_NEW_INTERFACE ".InterfaceDisabled" |
116 | | #define WPAS_DBUS_ERROR_IFACE_UNKNOWN \ |
117 | | WPAS_DBUS_NEW_INTERFACE ".InterfaceUnknown" |
118 | | |
119 | | #define WPAS_DBUS_ERROR_NOT_CONNECTED \ |
120 | | WPAS_DBUS_NEW_INTERFACE ".NotConnected" |
121 | | #define WPAS_DBUS_ERROR_NETWORK_UNKNOWN \ |
122 | | WPAS_DBUS_NEW_INTERFACE ".NetworkUnknown" |
123 | | |
124 | | #define WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNAVAILABLE \ |
125 | | WPAS_DBUS_NEW_INTERFACE ".ConnectChannelUnavailable" |
126 | | #define WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNSUPPORTED \ |
127 | | WPAS_DBUS_NEW_INTERFACE ".ConnectChannelUnsupported" |
128 | | #define WPAS_DBUS_ERROR_CONNECT_UNSPECIFIED_ERROR \ |
129 | | WPAS_DBUS_NEW_INTERFACE ".ConnectUnspecifiedError" |
130 | | |
131 | | #define WPAS_DBUS_ERROR_BLOB_EXISTS \ |
132 | | WPAS_DBUS_NEW_INTERFACE ".BlobExists" |
133 | | #define WPAS_DBUS_ERROR_BLOB_UNKNOWN \ |
134 | | WPAS_DBUS_NEW_INTERFACE ".BlobUnknown" |
135 | | |
136 | | #define WPAS_DBUS_ERROR_SUBSCRIPTION_IN_USE \ |
137 | | WPAS_DBUS_NEW_INTERFACE ".SubscriptionInUse" |
138 | | #define WPAS_DBUS_ERROR_NO_SUBSCRIPTION \ |
139 | | WPAS_DBUS_NEW_INTERFACE ".NoSubscription" |
140 | | #define WPAS_DBUS_ERROR_SUBSCRIPTION_EPERM \ |
141 | | WPAS_DBUS_NEW_INTERFACE ".SubscriptionNotYou" |
142 | | |
143 | | /* Interface-level errors */ |
144 | | #define WPAS_DBUS_ERROR_IFACE_SCAN_ERROR \ |
145 | | WPAS_DBUS_NEW_IFACE_INTERFACE ".ScanError" |
146 | | |
147 | | void wpas_dbus_subscribe_noc(struct wpas_dbus_priv *priv); |
148 | | void wpas_dbus_unsubscribe_noc(struct wpas_dbus_priv *priv); |
149 | | |
150 | | |
151 | | #ifdef CONFIG_CTRL_IFACE_DBUS_NEW |
152 | | |
153 | | int wpas_dbus_ctrl_iface_init(struct wpas_dbus_priv *priv); |
154 | | void wpas_dbus_ctrl_iface_deinit(struct wpas_dbus_priv *iface); |
155 | | |
156 | | int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s); |
157 | | int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s); |
158 | | void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s, |
159 | | enum wpas_dbus_prop property); |
160 | | void wpas_dbus_bss_signal_prop_changed(struct wpa_supplicant *wpa_s, |
161 | | enum wpas_dbus_bss_prop property, |
162 | | unsigned int id); |
163 | | void wpas_dbus_signal_network_enabled_changed(struct wpa_supplicant *wpa_s, |
164 | | struct wpa_ssid *ssid); |
165 | | void wpas_dbus_signal_network_selected(struct wpa_supplicant *wpa_s, int id); |
166 | | void wpas_dbus_signal_network_request(struct wpa_supplicant *wpa_s, |
167 | | struct wpa_ssid *ssid, |
168 | | enum wpa_ctrl_req_type rtype, |
169 | | const char *default_text); |
170 | | void wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s, int success); |
171 | | void wpas_dbus_signal_wps_cred(struct wpa_supplicant *wpa_s, |
172 | | const struct wps_credential *cred); |
173 | | void wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant *wpa_s, |
174 | | struct wps_event_m2d *m2d); |
175 | | void wpas_dbus_signal_wps_event_fail(struct wpa_supplicant *wpa_s, |
176 | | struct wps_event_fail *fail); |
177 | | void wpas_dbus_signal_wps_event_success(struct wpa_supplicant *wpa_s); |
178 | | void wpas_dbus_signal_wps_event_pbc_overlap(struct wpa_supplicant *wpa_s); |
179 | | int wpas_dbus_register_network(struct wpa_supplicant *wpa_s, |
180 | | struct wpa_ssid *ssid); |
181 | | int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s, int nid); |
182 | | int wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s, |
183 | | u8 bssid[ETH_ALEN], unsigned int id); |
184 | | int wpas_dbus_register_bss(struct wpa_supplicant *wpa_s, |
185 | | u8 bssid[ETH_ALEN], unsigned int id); |
186 | | int wpas_dbus_unregister_sta(struct wpa_supplicant *wpa_s, const u8 *sta); |
187 | | int wpas_dbus_register_sta(struct wpa_supplicant *wpa_s, const u8 *sta); |
188 | | void wpas_dbus_signal_blob_added(struct wpa_supplicant *wpa_s, |
189 | | const char *name); |
190 | | void wpas_dbus_signal_blob_removed(struct wpa_supplicant *wpa_s, |
191 | | const char *name); |
192 | | void wpas_dbus_signal_debug_level_changed(struct wpa_global *global); |
193 | | void wpas_dbus_signal_debug_timestamp_changed(struct wpa_global *global); |
194 | | void wpas_dbus_signal_debug_show_keys_changed(struct wpa_global *global); |
195 | | |
196 | | int wpas_dbus_register_peer(struct wpa_supplicant *wpa_s, const u8 *dev_addr); |
197 | | void wpas_dbus_signal_p2p_find_stopped(struct wpa_supplicant *wpa_s); |
198 | | void wpas_dbus_signal_peer_device_found(struct wpa_supplicant *wpa_s, |
199 | | const u8 *dev_addr); |
200 | | int wpas_dbus_unregister_peer(struct wpa_supplicant *wpa_s, |
201 | | const u8 *dev_addr); |
202 | | void wpas_dbus_signal_peer_device_lost(struct wpa_supplicant *wpa_s, |
203 | | const u8 *dev_addr); |
204 | | void wpas_dbus_signal_peer_groups_changed(struct wpa_supplicant *wpa_s, |
205 | | const u8 *dev_addr); |
206 | | void wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant *wpa_s, |
207 | | const char *role); |
208 | | void wpas_dbus_signal_p2p_provision_discovery(struct wpa_supplicant *wpa_s, |
209 | | const u8 *dev_addr, int request, |
210 | | enum p2p_prov_disc_status status, |
211 | | u16 config_methods, |
212 | | unsigned int generated_pin); |
213 | | void wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant *wpa_s, |
214 | | const u8 *src, u16 dev_passwd_id, |
215 | | u8 go_intent); |
216 | | void wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s, |
217 | | int client, int persistent, |
218 | | const u8 *ip); |
219 | | void wpas_dbus_signal_p2p_group_formation_failure(struct wpa_supplicant *wpa_s, |
220 | | const char *reason); |
221 | | void wpas_dbus_register_p2p_group(struct wpa_supplicant *wpa_s, |
222 | | struct wpa_ssid *ssid); |
223 | | void wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant *wpa_s, |
224 | | struct p2p_go_neg_results *res); |
225 | | void wpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s, |
226 | | const struct wpa_ssid *ssid); |
227 | | int wpas_dbus_register_persistent_group(struct wpa_supplicant *wpa_s, |
228 | | struct wpa_ssid *ssid); |
229 | | int wpas_dbus_unregister_persistent_group(struct wpa_supplicant *wpa_s, |
230 | | int nid); |
231 | | void wpas_dbus_signal_p2p_invitation_result(struct wpa_supplicant *wpa_s, |
232 | | int status, const u8 *bssid); |
233 | | void wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant *wpa_s, |
234 | | const u8 *member); |
235 | | void wpas_dbus_signal_p2p_sd_request(struct wpa_supplicant *wpa_s, |
236 | | int freq, const u8 *sa, u8 dialog_token, |
237 | | u16 update_indic, const u8 *tlvs, |
238 | | size_t tlvs_len); |
239 | | void wpas_dbus_signal_p2p_sd_response(struct wpa_supplicant *wpa_s, |
240 | | const u8 *sa, u16 update_indic, |
241 | | const u8 *tlvs, size_t tlvs_len); |
242 | | void wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s, |
243 | | const u8 *member); |
244 | | void wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant *wpa_s, |
245 | | struct wps_event_fail *fail); |
246 | | void wpas_dbus_signal_certification(struct wpa_supplicant *wpa_s, |
247 | | int depth, const char *subject, |
248 | | const char *altsubject[], |
249 | | int num_altsubject, |
250 | | const char *cert_hash, |
251 | | const struct wpabuf *cert); |
252 | | void wpas_dbus_signal_preq(struct wpa_supplicant *wpa_s, |
253 | | const u8 *addr, const u8 *dst, const u8 *bssid, |
254 | | const u8 *ie, size_t ie_len, u32 ssi_signal); |
255 | | void wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s, |
256 | | const char *status, const char *parameter); |
257 | | void wpas_dbus_signal_psk_mismatch(struct wpa_supplicant *wpa_s); |
258 | | void wpas_dbus_signal_sta_authorized(struct wpa_supplicant *wpa_s, |
259 | | const u8 *sta); |
260 | | void wpas_dbus_signal_sta_deauthorized(struct wpa_supplicant *wpa_s, |
261 | | const u8 *sta); |
262 | | void wpas_dbus_signal_p2p_invitation_received(struct wpa_supplicant *wpa_s, |
263 | | const u8 *sa, const u8 *dev_addr, |
264 | | const u8 *bssid, int id, |
265 | | int op_freq); |
266 | | void wpas_dbus_signal_mesh_group_started(struct wpa_supplicant *wpa_s, |
267 | | struct wpa_ssid *ssid); |
268 | | void wpas_dbus_signal_mesh_group_removed(struct wpa_supplicant *wpa_s, |
269 | | const u8 *meshid, u8 meshid_len, |
270 | | int reason); |
271 | | void wpas_dbus_signal_mesh_peer_connected(struct wpa_supplicant *wpa_s, |
272 | | const u8 *peer_addr); |
273 | | void wpas_dbus_signal_mesh_peer_disconnected(struct wpa_supplicant *wpa_s, |
274 | | const u8 *peer_addr, int reason); |
275 | | void wpas_dbus_signal_interworking_ap_added(struct wpa_supplicant *wpa_s, |
276 | | struct wpa_bss *bss, |
277 | | struct wpa_cred *cred, |
278 | | const char *type, int excluded, |
279 | | int bh, int bss_load, |
280 | | int conn_capab); |
281 | | void wpas_dbus_signal_interworking_select_done(struct wpa_supplicant *wpa_s); |
282 | | |
283 | | #else /* CONFIG_CTRL_IFACE_DBUS_NEW */ |
284 | | |
285 | | static inline int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s) |
286 | 0 | { |
287 | 0 | return 0; |
288 | 0 | } |
289 | | |
290 | | static inline int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s) |
291 | 0 | { |
292 | 0 | return 0; |
293 | 0 | } |
294 | | |
295 | | #define wpas_dbus_signal_state_changed(w, n, o) do { } while (0) |
296 | | |
297 | | static inline void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s, |
298 | | enum wpas_dbus_prop property) |
299 | 51 | { |
300 | 51 | } |
301 | | |
302 | | static inline void wpas_dbus_bss_signal_prop_changed( |
303 | | struct wpa_supplicant *wpa_s, enum wpas_dbus_bss_prop property, |
304 | | unsigned int id) |
305 | 0 | { |
306 | 0 | } |
307 | | |
308 | | static inline void wpas_dbus_signal_network_enabled_changed( |
309 | | struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) |
310 | 0 | { |
311 | 0 | } |
312 | | |
313 | | static inline void wpas_dbus_signal_network_selected( |
314 | | struct wpa_supplicant *wpa_s, int id) |
315 | 0 | { |
316 | 0 | } |
317 | | |
318 | | static inline void wpas_dbus_signal_network_request( |
319 | | struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, |
320 | | enum wpa_ctrl_req_type rtype, const char *default_txt) |
321 | 0 | { |
322 | 0 | } |
323 | | |
324 | | static inline void wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s, |
325 | | int success) |
326 | 0 | { |
327 | 0 | } |
328 | | |
329 | | static inline void wpas_dbus_signal_wps_cred(struct wpa_supplicant *wpa_s, |
330 | | const struct wps_credential *cred) |
331 | 0 | { |
332 | 0 | } |
333 | | |
334 | | static inline void wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant *wpa_s, |
335 | | struct wps_event_m2d *m2d) |
336 | 0 | { |
337 | 0 | } |
338 | | |
339 | | static inline void wpas_dbus_signal_wps_event_fail( |
340 | | struct wpa_supplicant *wpa_s, struct wps_event_fail *fail) |
341 | 0 | { |
342 | 0 | } |
343 | | |
344 | | static inline void wpas_dbus_signal_wps_event_success( |
345 | | struct wpa_supplicant *wpa_s) |
346 | 0 | { |
347 | 0 | } |
348 | | |
349 | | static inline void wpas_dbus_signal_wps_event_pbc_overlap( |
350 | | struct wpa_supplicant *wpa_s) |
351 | 0 | { |
352 | 0 | } |
353 | | |
354 | | static inline int wpas_dbus_register_network(struct wpa_supplicant *wpa_s, |
355 | | struct wpa_ssid *ssid) |
356 | 0 | { |
357 | 0 | return 0; |
358 | 0 | } |
359 | | |
360 | | static inline int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s, |
361 | | int nid) |
362 | 0 | { |
363 | 0 | return 0; |
364 | 0 | } |
365 | | |
366 | | static inline int wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s, |
367 | | u8 bssid[ETH_ALEN], unsigned int id) |
368 | 0 | { |
369 | 0 | return 0; |
370 | 0 | } |
371 | | |
372 | | static inline int wpas_dbus_register_bss(struct wpa_supplicant *wpa_s, |
373 | | u8 bssid[ETH_ALEN], unsigned int id) |
374 | 0 | { |
375 | 0 | return 0; |
376 | 0 | } |
377 | | |
378 | | static inline int wpas_dbus_unregister_sta(struct wpa_supplicant *wpa_s, |
379 | | const u8 *sta) |
380 | 0 | { |
381 | 0 | return 0; |
382 | 0 | } |
383 | | |
384 | | static inline int wpas_dbus_register_sta(struct wpa_supplicant *wpa_s, |
385 | | const u8 *sta) |
386 | 0 | { |
387 | 0 | return 0; |
388 | 0 | } |
389 | | |
390 | | static inline void wpas_dbus_signal_blob_added(struct wpa_supplicant *wpa_s, |
391 | | const char *name) |
392 | 0 | { |
393 | 0 | } |
394 | | |
395 | | static inline void wpas_dbus_signal_blob_removed(struct wpa_supplicant *wpa_s, |
396 | | const char *name) |
397 | 0 | { |
398 | 0 | } |
399 | | |
400 | | static inline void wpas_dbus_signal_debug_level_changed( |
401 | | struct wpa_global *global) |
402 | 0 | { |
403 | 0 | } |
404 | | |
405 | | static inline void wpas_dbus_signal_debug_timestamp_changed( |
406 | | struct wpa_global *global) |
407 | 0 | { |
408 | 0 | } |
409 | | |
410 | | static inline void wpas_dbus_signal_debug_show_keys_changed( |
411 | | struct wpa_global *global) |
412 | 0 | { |
413 | 0 | } |
414 | | |
415 | | static inline int wpas_dbus_register_peer(struct wpa_supplicant *wpa_s, |
416 | | const u8 *dev_addr) |
417 | 0 | { |
418 | 0 | return 0; |
419 | 0 | } |
420 | | |
421 | | static inline int wpas_dbus_unregister_peer(struct wpa_supplicant *wpa_s, |
422 | | const u8 *dev_addr) |
423 | 0 | { |
424 | 0 | return 0; |
425 | 0 | } |
426 | | |
427 | | static inline void |
428 | | wpas_dbus_signal_peer_groups_changed(struct wpa_supplicant *wpa_s, |
429 | | const u8 *dev_addr) |
430 | 0 | { |
431 | 0 | } |
432 | | |
433 | | static inline void |
434 | | wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant *wpa_s, |
435 | | const char *role) |
436 | 0 | { |
437 | 0 | } |
438 | | |
439 | | static inline void |
440 | | wpas_dbus_signal_p2p_provision_discovery(struct wpa_supplicant *wpa_s, |
441 | | const u8 *dev_addr, int request, |
442 | | enum p2p_prov_disc_status status, |
443 | | u16 config_methods, |
444 | | unsigned int generated_pin) |
445 | 0 | { |
446 | 0 | } |
447 | | |
448 | | static inline void wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant *wpa_s, |
449 | | const u8 *src, |
450 | | u16 dev_passwd_id, |
451 | | u8 go_intent) |
452 | 0 | { |
453 | 0 | } |
454 | | |
455 | | static inline void |
456 | | wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s, |
457 | | int client, int persistent, |
458 | | const u8 *ip) |
459 | 0 | { |
460 | 0 | } |
461 | | |
462 | | static inline void |
463 | | wpas_dbus_signal_p2p_group_formation_failure(struct wpa_supplicant *wpa_s, |
464 | | const char *reason) |
465 | 0 | { |
466 | 0 | } |
467 | | |
468 | | static inline void |
469 | | wpas_dbus_register_p2p_group(struct wpa_supplicant *wpa_s, |
470 | | struct wpa_ssid *ssid) |
471 | 0 | { |
472 | 0 | } |
473 | | |
474 | | static inline int wpas_dbus_register_persistent_group( |
475 | | struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) |
476 | 0 | { |
477 | 0 | return 0; |
478 | 0 | } |
479 | | |
480 | | static inline int wpas_dbus_unregister_persistent_group( |
481 | | struct wpa_supplicant *wpa_s, int nid) |
482 | 0 | { |
483 | 0 | return 0; |
484 | 0 | } |
485 | | |
486 | | static inline void |
487 | | wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant *wpa_s, |
488 | | struct p2p_go_neg_results *res) |
489 | 0 | { |
490 | 0 | } |
491 | | |
492 | | static inline void |
493 | | wpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s, |
494 | | const struct wpa_ssid *ssid) |
495 | 0 | { |
496 | 0 | } |
497 | | |
498 | | static inline void wpas_dbus_signal_p2p_invitation_result( |
499 | | struct wpa_supplicant *wpa_s, int status, |
500 | | const u8 *bssid) |
501 | 0 | { |
502 | 0 | } |
503 | | |
504 | | static inline void |
505 | | wpas_dbus_register_p2p_groupmember(struct wpa_supplicant *wpa_s, |
506 | | const u8 *p2p_if_addr) |
507 | 0 | { |
508 | 0 | } |
509 | | |
510 | | static inline void |
511 | | wpas_dbus_signal_p2p_sd_request(struct wpa_supplicant *wpa_s, int freq, |
512 | | const u8 *sa, u8 dialog_token, u16 update_indic, |
513 | | const u8 *tlvs, size_t tlvs_len) |
514 | 0 | { |
515 | 0 | } |
516 | | |
517 | | static inline void |
518 | | wpas_dbus_signal_p2p_sd_response(struct wpa_supplicant *wpa_s, |
519 | | const u8 *sa, u16 update_indic, |
520 | | const u8 *tlvs, size_t tlvs_len) |
521 | 0 | { |
522 | 0 | } |
523 | | |
524 | | static inline void |
525 | | wpas_dbus_unregister_p2p_groupmember(struct wpa_supplicant *wpa_s, |
526 | | const u8 *p2p_if_addr) |
527 | 0 | { |
528 | 0 | } |
529 | | |
530 | | static inline void |
531 | | wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s, |
532 | | const u8 *member) |
533 | 0 | { |
534 | 0 | } |
535 | | |
536 | | static inline void |
537 | | wpas_dbus_signal_p2p_find_stopped(struct wpa_supplicant *wpa_s) |
538 | 0 | { |
539 | 0 | } |
540 | | |
541 | | static inline void |
542 | | wpas_dbus_signal_peer_device_found(struct wpa_supplicant *wpa_s, |
543 | | const u8 *dev_addr) |
544 | 0 | { |
545 | 0 | } |
546 | | |
547 | | static inline void |
548 | | wpas_dbus_signal_peer_device_lost(struct wpa_supplicant *wpa_s, |
549 | | const u8 *dev_addr) |
550 | 0 | { |
551 | 0 | } |
552 | | |
553 | | static inline void |
554 | | wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant *wpa_s, |
555 | | const u8 *member) |
556 | 0 | { |
557 | 0 | } |
558 | | |
559 | | static inline void |
560 | | wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant *wpa_s, |
561 | | struct wps_event_fail *fail) |
562 | 0 | { |
563 | 0 | } |
564 | | |
565 | | static inline void wpas_dbus_signal_certification(struct wpa_supplicant *wpa_s, |
566 | | int depth, |
567 | | const char *subject, |
568 | | const char *altsubject[], |
569 | | int num_altsubject, |
570 | | const char *cert_hash, |
571 | | const struct wpabuf *cert) |
572 | 0 | { |
573 | 0 | } |
574 | | |
575 | | static inline void wpas_dbus_signal_preq(struct wpa_supplicant *wpa_s, |
576 | | const u8 *addr, const u8 *dst, |
577 | | const u8 *bssid, |
578 | | const u8 *ie, size_t ie_len, |
579 | | u32 ssi_signal) |
580 | 0 | { |
581 | 0 | } |
582 | | |
583 | | static inline void wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s, |
584 | | const char *status, |
585 | | const char *parameter) |
586 | 0 | { |
587 | 0 | } |
588 | | |
589 | | static inline void wpas_dbus_signal_psk_mismatch(struct wpa_supplicant *wpa_s) |
590 | 0 | { |
591 | 0 | } |
592 | | |
593 | | static inline |
594 | | void wpas_dbus_signal_sta_authorized(struct wpa_supplicant *wpa_s, |
595 | | const u8 *sta) |
596 | 0 | { |
597 | 0 | } |
598 | | |
599 | | static inline |
600 | | void wpas_dbus_signal_sta_deauthorized(struct wpa_supplicant *wpa_s, |
601 | | const u8 *sta) |
602 | 0 | { |
603 | 0 | } |
604 | | |
605 | | static inline |
606 | | void wpas_dbus_signal_p2p_invitation_received(struct wpa_supplicant *wpa_s, |
607 | | const u8 *sa, const u8 *dev_addr, |
608 | | const u8 *bssid, int id, |
609 | | int op_freq) |
610 | 0 | { |
611 | 0 | } |
612 | | |
613 | | static inline |
614 | | void wpas_dbus_signal_mesh_group_started(struct wpa_supplicant *wpa_s, |
615 | | struct wpa_ssid *ssid) |
616 | 0 | { |
617 | 0 | } |
618 | | |
619 | | static inline |
620 | | void wpas_dbus_signal_mesh_group_removed(struct wpa_supplicant *wpa_s, |
621 | | const u8 *meshid, u8 meshid_len, |
622 | | int reason) |
623 | 0 | { |
624 | 0 | } |
625 | | |
626 | | static inline |
627 | | void wpas_dbus_signal_mesh_peer_connected(struct wpa_supplicant *wpa_s, |
628 | | const u8 *peer_addr) |
629 | 0 | { |
630 | 0 | } |
631 | | |
632 | | static inline |
633 | | void wpas_dbus_signal_mesh_peer_disconnected(struct wpa_supplicant *wpa_s, |
634 | | const u8 *peer_addr, int reason) |
635 | 0 | { |
636 | 0 | } |
637 | | |
638 | | static inline |
639 | | void wpas_dbus_signal_interworking_ap_added(struct wpa_supplicant *wpa_s, |
640 | | struct wpa_bss *bss, |
641 | | struct wpa_cred *cred, |
642 | | const char *type, int excluded, |
643 | | int bh, int bss_load, |
644 | | int conn_capab) |
645 | 0 | { |
646 | 0 | } |
647 | | |
648 | | static inline |
649 | | void wpas_dbus_signal_interworking_select_done(struct wpa_supplicant *wpa_s) |
650 | 0 | { |
651 | 0 | } |
652 | | |
653 | | #endif /* CONFIG_CTRL_IFACE_DBUS_NEW */ |
654 | | |
655 | | #endif /* CTRL_IFACE_DBUS_H_NEW */ |