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