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