• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 wps_event_m2d;
20 struct wps_event_fail;
21 struct wps_credential;
22 
23 enum wpas_dbus_prop {
24 	WPAS_DBUS_PROP_AP_SCAN,
25 	WPAS_DBUS_PROP_SCANNING,
26 	WPAS_DBUS_PROP_STATE,
27 	WPAS_DBUS_PROP_CURRENT_BSS,
28 	WPAS_DBUS_PROP_CURRENT_NETWORK,
29 	WPAS_DBUS_PROP_CURRENT_AUTH_MODE,
30 	WPAS_DBUS_PROP_BSSS,
31 	WPAS_DBUS_PROP_DISCONNECT_REASON,
32 };
33 
34 enum wpas_dbus_bss_prop {
35 	WPAS_DBUS_BSS_PROP_SIGNAL,
36 	WPAS_DBUS_BSS_PROP_FREQ,
37 	WPAS_DBUS_BSS_PROP_MODE,
38 	WPAS_DBUS_BSS_PROP_PRIVACY,
39 	WPAS_DBUS_BSS_PROP_RATES,
40 	WPAS_DBUS_BSS_PROP_WPA,
41 	WPAS_DBUS_BSS_PROP_RSN,
42 	WPAS_DBUS_BSS_PROP_IES,
43 };
44 
45 #define WPAS_DBUS_OBJECT_PATH_MAX 150
46 
47 #define WPAS_DBUS_NEW_SERVICE		"fi.w1.wpa_supplicant1"
48 #define WPAS_DBUS_NEW_PATH		"/fi/w1/wpa_supplicant1"
49 #define WPAS_DBUS_NEW_INTERFACE		"fi.w1.wpa_supplicant1"
50 
51 #define WPAS_DBUS_NEW_PATH_INTERFACES	WPAS_DBUS_NEW_PATH "/Interfaces"
52 #define WPAS_DBUS_NEW_IFACE_INTERFACE	WPAS_DBUS_NEW_INTERFACE ".Interface"
53 #define WPAS_DBUS_NEW_IFACE_WPS WPAS_DBUS_NEW_IFACE_INTERFACE ".WPS"
54 
55 #define WPAS_DBUS_NEW_NETWORKS_PART "Networks"
56 #define WPAS_DBUS_NEW_IFACE_NETWORK WPAS_DBUS_NEW_INTERFACE ".Network"
57 
58 #define WPAS_DBUS_NEW_BSSIDS_PART "BSSs"
59 #define WPAS_DBUS_NEW_IFACE_BSS	WPAS_DBUS_NEW_INTERFACE ".BSS"
60 
61 #define WPAS_DBUS_NEW_IFACE_P2PDEVICE	\
62 		WPAS_DBUS_NEW_IFACE_INTERFACE ".P2PDevice"
63 
64 /*
65  * Groups correspond to P2P groups where this device is a GO (owner)
66  */
67 #define WPAS_DBUS_NEW_P2P_GROUPS_PART	"Groups"
68 #define	WPAS_DBUS_NEW_IFACE_P2P_GROUP WPAS_DBUS_NEW_INTERFACE ".Group"
69 
70 /*
71  * Different dbus object for persistent groups so they do not get confused
72  * with regular (configured) network objects.
73  */
74 #define WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART "PersistentGroups"
75 #define WPAS_DBUS_NEW_IFACE_PERSISTENT_GROUP \
76 	WPAS_DBUS_NEW_INTERFACE ".PersistentGroup"
77 
78 #define WPAS_DBUS_NEW_P2P_PEERS_PART	"Peers"
79 #define	WPAS_DBUS_NEW_IFACE_P2P_PEER WPAS_DBUS_NEW_INTERFACE ".Peer"
80 
81 #define WPAS_DBUS_NEW_P2P_GROUPMEMBERS_PART	"Members"
82 #define	WPAS_DBUS_NEW_IFACE_P2P_GROUPMEMBER \
83 	WPAS_DBUS_NEW_INTERFACE ".GroupMember"
84 
85 /* Errors */
86 #define WPAS_DBUS_ERROR_UNKNOWN_ERROR \
87 	WPAS_DBUS_NEW_INTERFACE ".UnknownError"
88 #define WPAS_DBUS_ERROR_INVALID_ARGS \
89 	WPAS_DBUS_NEW_INTERFACE ".InvalidArgs"
90 
91 #define WPAS_DBUS_ERROR_IFACE_EXISTS \
92 	WPAS_DBUS_NEW_INTERFACE ".InterfaceExists"
93 #define WPAS_DBUS_ERROR_IFACE_UNKNOWN \
94 	WPAS_DBUS_NEW_INTERFACE ".InterfaceUnknown"
95 
96 #define WPAS_DBUS_ERROR_NOT_CONNECTED \
97 	WPAS_DBUS_NEW_INTERFACE ".NotConnected"
98 #define WPAS_DBUS_ERROR_NETWORK_UNKNOWN \
99 	WPAS_DBUS_NEW_INTERFACE ".NetworkUnknown"
100 
101 #define WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNAVAILABLE \
102 	WPAS_DBUS_NEW_INTERFACE ".ConnectChannelUnavailable"
103 #define WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNSUPPORTED \
104 	WPAS_DBUS_NEW_INTERFACE ".ConnectChannelUnsupported"
105 #define WPAS_DBUS_ERROR_CONNECT_UNSPECIFIED_ERROR \
106 	WPAS_DBUS_NEW_INTERFACE ".ConnectUnspecifiedError"
107 
108 #define WPAS_DBUS_ERROR_BLOB_EXISTS \
109 	WPAS_DBUS_NEW_INTERFACE ".BlobExists"
110 #define WPAS_DBUS_ERROR_BLOB_UNKNOWN \
111 	WPAS_DBUS_NEW_INTERFACE ".BlobUnknown"
112 
113 #define WPAS_DBUS_ERROR_SUBSCRIPTION_IN_USE \
114 	WPAS_DBUS_NEW_INTERFACE ".SubscriptionInUse"
115 #define WPAS_DBUS_ERROR_NO_SUBSCRIPTION \
116 	WPAS_DBUS_NEW_INTERFACE ".NoSubscription"
117 #define WPAS_DBUS_ERROR_SUBSCRIPTION_EPERM \
118 	WPAS_DBUS_NEW_INTERFACE ".SubscriptionNotYou"
119 
120 
121 void wpas_dbus_subscribe_noc(struct wpas_dbus_priv *priv);
122 void wpas_dbus_unsubscribe_noc(struct wpas_dbus_priv *priv);
123 
124 
125 #ifdef CONFIG_CTRL_IFACE_DBUS_NEW
126 
127 int wpas_dbus_ctrl_iface_init(struct wpas_dbus_priv *priv);
128 void wpas_dbus_ctrl_iface_deinit(struct wpas_dbus_priv *iface);
129 
130 int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s);
131 int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s);
132 void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s,
133 				   enum wpas_dbus_prop property);
134 void wpas_dbus_bss_signal_prop_changed(struct wpa_supplicant *wpa_s,
135 				       enum wpas_dbus_bss_prop property,
136 				       unsigned int id);
137 void wpas_dbus_signal_network_enabled_changed(struct wpa_supplicant *wpa_s,
138 					      struct wpa_ssid *ssid);
139 void wpas_dbus_signal_network_selected(struct wpa_supplicant *wpa_s, int id);
140 void wpas_dbus_signal_network_request(struct wpa_supplicant *wpa_s,
141 				      struct wpa_ssid *ssid,
142 				      enum wpa_ctrl_req_type rtype,
143 				      const char *default_text);
144 void wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s, int success);
145 void wpas_dbus_signal_wps_cred(struct wpa_supplicant *wpa_s,
146 			       const struct wps_credential *cred);
147 void wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant *wpa_s,
148 				    struct wps_event_m2d *m2d);
149 void wpas_dbus_signal_wps_event_fail(struct wpa_supplicant *wpa_s,
150 				     struct wps_event_fail *fail);
151 void wpas_dbus_signal_wps_event_success(struct wpa_supplicant *wpa_s);
152 int wpas_dbus_register_network(struct wpa_supplicant *wpa_s,
153 			       struct wpa_ssid *ssid);
154 int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s, int nid);
155 int wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s,
156 			     u8 bssid[ETH_ALEN], unsigned int id);
157 int wpas_dbus_register_bss(struct wpa_supplicant *wpa_s,
158 			   u8 bssid[ETH_ALEN], unsigned int id);
159 void wpas_dbus_signal_blob_added(struct wpa_supplicant *wpa_s,
160 				 const char *name);
161 void wpas_dbus_signal_blob_removed(struct wpa_supplicant *wpa_s,
162 				   const char *name);
163 void wpas_dbus_signal_debug_level_changed(struct wpa_global *global);
164 void wpas_dbus_signal_debug_timestamp_changed(struct wpa_global *global);
165 void wpas_dbus_signal_debug_show_keys_changed(struct wpa_global *global);
166 
167 int wpas_dbus_register_peer(struct wpa_supplicant *wpa_s, const u8 *dev_addr);
168 void wpas_dbus_signal_peer_device_found(struct wpa_supplicant *wpa_s,
169 					   const u8 *dev_addr);
170 int wpas_dbus_unregister_peer(struct wpa_supplicant *wpa_s,
171 				  const u8 *dev_addr);
172 void wpas_dbus_signal_peer_device_lost(struct wpa_supplicant *wpa_s,
173 					   const u8 *dev_addr);
174 void wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant *wpa_s,
175 					const char *role);
176 void wpas_dbus_signal_p2p_provision_discovery(struct wpa_supplicant *wpa_s,
177 					      const u8 *dev_addr, int request,
178 					      enum p2p_prov_disc_status status,
179 					      u16 config_methods,
180 					      unsigned int generated_pin);
181 void wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
182 				     const u8 *src, u16 dev_passwd_id);
183 void wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s,
184 					const struct wpa_ssid *ssid,
185 					int client, int network_id);
186 void wpas_dbus_register_p2p_group(struct wpa_supplicant *wpa_s,
187 				  struct wpa_ssid *ssid);
188 void wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant *wpa_s,
189 				      struct p2p_go_neg_results *res);
190 void wpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s,
191 				    const struct wpa_ssid *ssid);
192 int wpas_dbus_register_persistent_group(struct wpa_supplicant *wpa_s,
193 					struct wpa_ssid *ssid);
194 int wpas_dbus_unregister_persistent_group(struct wpa_supplicant *wpa_s,
195 					  int nid);
196 void wpas_dbus_signal_p2p_invitation_result(struct wpa_supplicant *wpa_s,
197 					    int status, const u8 *bssid);
198 void wpas_dbus_register_p2p_groupmember(struct wpa_supplicant *wpa_s,
199 					const u8 *p2p_if_addr);
200 void wpas_dbus_unregister_p2p_groupmember(struct wpa_supplicant *wpa_s,
201 					  const u8 *p2p_if_addr);
202 void wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant *wpa_s,
203 					    const u8 *member);
204 void wpas_dbus_signal_p2p_sd_request(struct wpa_supplicant *wpa_s,
205 				     int freq, const u8 *sa, u8 dialog_token,
206 				     u16 update_indic, const u8 *tlvs,
207 				     size_t tlvs_len);
208 void wpas_dbus_signal_p2p_sd_response(struct wpa_supplicant *wpa_s,
209 				      const u8 *sa, u16 update_indic,
210 				      const u8 *tlvs, size_t tlvs_len);
211 void wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s,
212 				const u8 *member);
213 void wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant *wpa_s,
214 				     struct wps_event_fail *fail);
215 void wpas_dbus_signal_certification(struct wpa_supplicant *wpa_s,
216 				    int depth, const char *subject,
217 				    const char *cert_hash,
218 				    const struct wpabuf *cert);
219 void wpas_dbus_signal_preq(struct wpa_supplicant *wpa_s,
220 			   const u8 *addr, const u8 *dst, const u8 *bssid,
221 			   const u8 *ie, size_t ie_len, u32 ssi_signal);
222 void wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s,
223 				 const char *status, const char *parameter);
224 
225 #else /* CONFIG_CTRL_IFACE_DBUS_NEW */
226 
wpas_dbus_register_interface(struct wpa_supplicant * wpa_s)227 static inline int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s)
228 {
229 	return 0;
230 }
231 
wpas_dbus_unregister_interface(struct wpa_supplicant * wpa_s)232 static inline int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s)
233 {
234 	return 0;
235 }
236 
237 #define wpas_dbus_signal_state_changed(w, n, o) do { } while (0)
238 
wpas_dbus_signal_prop_changed(struct wpa_supplicant * wpa_s,enum wpas_dbus_prop property)239 static inline void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s,
240 						 enum wpas_dbus_prop property)
241 {
242 }
243 
wpas_dbus_bss_signal_prop_changed(struct wpa_supplicant * wpa_s,enum wpas_dbus_bss_prop property,unsigned int id)244 static inline void wpas_dbus_bss_signal_prop_changed(
245 	struct wpa_supplicant *wpa_s, enum wpas_dbus_bss_prop property,
246 	unsigned int id)
247 {
248 }
249 
wpas_dbus_signal_network_enabled_changed(struct wpa_supplicant * wpa_s,struct wpa_ssid * ssid)250 static inline void wpas_dbus_signal_network_enabled_changed(
251 	struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
252 {
253 }
254 
wpas_dbus_signal_network_selected(struct wpa_supplicant * wpa_s,int id)255 static inline void wpas_dbus_signal_network_selected(
256 	struct wpa_supplicant *wpa_s, int id)
257 {
258 }
259 
wpas_dbus_signal_network_request(struct wpa_supplicant * wpa_s,struct wpa_ssid * ssid,enum wpa_ctrl_req_type rtype,const char * default_txt)260 static inline void wpas_dbus_signal_network_request(
261 	struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
262 	enum wpa_ctrl_req_type rtype, const char *default_txt)
263 {
264 }
265 
wpas_dbus_signal_scan_done(struct wpa_supplicant * wpa_s,int success)266 static inline void wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s,
267 					      int success)
268 {
269 }
270 
wpas_dbus_signal_wps_cred(struct wpa_supplicant * wpa_s,const struct wps_credential * cred)271 static inline void wpas_dbus_signal_wps_cred(struct wpa_supplicant *wpa_s,
272 					     const struct wps_credential *cred)
273 {
274 }
275 
wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant * wpa_s,struct wps_event_m2d * m2d)276 static inline void wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant *wpa_s,
277 						  struct wps_event_m2d *m2d)
278 {
279 }
280 
wpas_dbus_signal_wps_event_fail(struct wpa_supplicant * wpa_s,struct wps_event_fail * fail)281 static inline void wpas_dbus_signal_wps_event_fail(
282 	struct wpa_supplicant *wpa_s, struct wps_event_fail *fail)
283 {
284 }
285 
wpas_dbus_signal_wps_event_success(struct wpa_supplicant * wpa_s)286 static inline void wpas_dbus_signal_wps_event_success(
287 	struct wpa_supplicant *wpa_s)
288 {
289 }
290 
wpas_dbus_register_network(struct wpa_supplicant * wpa_s,struct wpa_ssid * ssid)291 static inline int wpas_dbus_register_network(struct wpa_supplicant *wpa_s,
292 					     struct wpa_ssid *ssid)
293 {
294 	return 0;
295 }
296 
wpas_dbus_unregister_network(struct wpa_supplicant * wpa_s,int nid)297 static inline int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s,
298 					       int nid)
299 {
300 	return 0;
301 }
302 
wpas_dbus_unregister_bss(struct wpa_supplicant * wpa_s,u8 bssid[ETH_ALEN],unsigned int id)303 static inline int wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s,
304 					   u8 bssid[ETH_ALEN], unsigned int id)
305 {
306 	return 0;
307 }
308 
wpas_dbus_register_bss(struct wpa_supplicant * wpa_s,u8 bssid[ETH_ALEN],unsigned int id)309 static inline int wpas_dbus_register_bss(struct wpa_supplicant *wpa_s,
310 					 u8 bssid[ETH_ALEN], unsigned int id)
311 {
312 	return 0;
313 }
314 
wpas_dbus_signal_blob_added(struct wpa_supplicant * wpa_s,const char * name)315 static inline void wpas_dbus_signal_blob_added(struct wpa_supplicant *wpa_s,
316 					       const char *name)
317 {
318 }
319 
wpas_dbus_signal_blob_removed(struct wpa_supplicant * wpa_s,const char * name)320 static inline void wpas_dbus_signal_blob_removed(struct wpa_supplicant *wpa_s,
321 						 const char *name)
322 {
323 }
324 
wpas_dbus_signal_debug_level_changed(struct wpa_global * global)325 static inline void wpas_dbus_signal_debug_level_changed(
326 	struct wpa_global *global)
327 {
328 }
329 
wpas_dbus_signal_debug_timestamp_changed(struct wpa_global * global)330 static inline void wpas_dbus_signal_debug_timestamp_changed(
331 	struct wpa_global *global)
332 {
333 }
334 
wpas_dbus_signal_debug_show_keys_changed(struct wpa_global * global)335 static inline void wpas_dbus_signal_debug_show_keys_changed(
336 	struct wpa_global *global)
337 {
338 }
339 
wpas_dbus_register_peer(struct wpa_supplicant * wpa_s,const u8 * dev_addr)340 static inline int wpas_dbus_register_peer(struct wpa_supplicant *wpa_s,
341 					  const u8 *dev_addr)
342 {
343 	return 0;
344 }
345 
wpas_dbus_unregister_peer(struct wpa_supplicant * wpa_s,const u8 * dev_addr)346 static inline int wpas_dbus_unregister_peer(struct wpa_supplicant *wpa_s,
347 					    const u8 *dev_addr)
348 {
349 	return 0;
350 }
351 
352 static inline void
wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant * wpa_s,const char * role)353 wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant *wpa_s,
354 				   const char *role)
355 {
356 }
357 
358 static inline void
wpas_dbus_signal_p2p_provision_discovery(struct wpa_supplicant * wpa_s,const u8 * dev_addr,int request,enum p2p_prov_disc_status status,u16 config_methods,unsigned int generated_pin)359 wpas_dbus_signal_p2p_provision_discovery(struct wpa_supplicant *wpa_s,
360 					 const u8 *dev_addr, int request,
361 					 enum p2p_prov_disc_status status,
362 					 u16 config_methods,
363 					 unsigned int generated_pin)
364 {
365 }
366 
wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant * wpa_s,const u8 * src,u16 dev_passwd_id)367 static inline void wpas_dbus_signal_p2p_go_neg_req(
368 				struct wpa_supplicant *wpa_s,
369 				const u8 *src,
370 				u16 dev_passwd_id)
371 {
372 }
373 
374 static inline void
wpas_dbus_signal_p2p_group_started(struct wpa_supplicant * wpa_s,const struct wpa_ssid * ssid,int client,int network_id)375 wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s,
376 				   const struct wpa_ssid *ssid,
377 				   int client, int network_id)
378 {
379 }
380 
381 static inline void
wpas_dbus_register_p2p_group(struct wpa_supplicant * wpa_s,struct wpa_ssid * ssid)382 wpas_dbus_register_p2p_group(struct wpa_supplicant *wpa_s,
383 			     struct wpa_ssid *ssid)
384 {
385 }
386 
wpas_dbus_register_persistent_group(struct wpa_supplicant * wpa_s,struct wpa_ssid * ssid)387 static inline int wpas_dbus_register_persistent_group(
388 	struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
389 {
390 	return 0;
391 }
392 
wpas_dbus_unregister_persistent_group(struct wpa_supplicant * wpa_s,int nid)393 static inline int wpas_dbus_unregister_persistent_group(
394 	struct wpa_supplicant *wpa_s, int nid)
395 {
396 	return 0;
397 }
398 
399 static inline void
wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant * wpa_s,struct p2p_go_neg_results * res)400 wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant *wpa_s,
401 				 struct p2p_go_neg_results *res)
402 {
403 }
404 
405 static inline void
wpas_dbus_unregister_p2p_group(struct wpa_supplicant * wpa_s,const struct wpa_ssid * ssid)406 wpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s,
407 			       const struct wpa_ssid *ssid)
408 {
409 }
410 
wpas_dbus_signal_p2p_invitation_result(struct wpa_supplicant * wpa_s,int status,const u8 * bssid)411 static inline void wpas_dbus_signal_p2p_invitation_result(
412 				struct wpa_supplicant *wpa_s, int status,
413 				const u8 *bssid)
414 {
415 }
416 
417 static inline void
wpas_dbus_register_p2p_groupmember(struct wpa_supplicant * wpa_s,const u8 * p2p_if_addr)418 wpas_dbus_register_p2p_groupmember(struct wpa_supplicant *wpa_s,
419 				   const u8 *p2p_if_addr)
420 {
421 }
422 
423 static inline void
wpas_dbus_signal_p2p_sd_request(struct wpa_supplicant * wpa_s,int freq,const u8 * sa,u8 dialog_token,u16 update_indic,const u8 * tlvs,size_t tlvs_len)424 wpas_dbus_signal_p2p_sd_request(struct wpa_supplicant *wpa_s, int freq,
425 				const u8 *sa, u8 dialog_token, u16 update_indic,
426 				const u8 *tlvs, size_t tlvs_len)
427 {
428 }
429 
430 static inline void
wpas_dbus_signal_p2p_sd_response(struct wpa_supplicant * wpa_s,const u8 * sa,u16 update_indic,const u8 * tlvs,size_t tlvs_len)431 wpas_dbus_signal_p2p_sd_response(struct wpa_supplicant *wpa_s,
432 				 const u8 *sa, u16 update_indic,
433 				 const u8 *tlvs, size_t tlvs_len)
434 {
435 }
436 
437 static inline void
wpas_dbus_unregister_p2p_groupmember(struct wpa_supplicant * wpa_s,const u8 * p2p_if_addr)438 wpas_dbus_unregister_p2p_groupmember(struct wpa_supplicant *wpa_s,
439 				     const u8 *p2p_if_addr)
440 {
441 }
442 
443 static inline void
wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant * wpa_s,const u8 * member)444 wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s,
445 				 const u8 *member)
446 {
447 }
448 
449 static inline void
wpas_dbus_signal_peer_device_found(struct wpa_supplicant * wpa_s,const u8 * dev_addr)450 wpas_dbus_signal_peer_device_found(struct wpa_supplicant *wpa_s,
451 				   const u8 *dev_addr)
452 {
453 }
454 
455 static inline void
wpas_dbus_signal_peer_device_lost(struct wpa_supplicant * wpa_s,const u8 * dev_addr)456 wpas_dbus_signal_peer_device_lost(struct wpa_supplicant *wpa_s,
457 				  const u8 *dev_addr)
458 {
459 }
460 
461 static inline void
wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant * wpa_s,const u8 * member)462 wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant *wpa_s,
463 				       const u8 *member)
464 {
465 }
466 
467 static inline void
wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant * wpa_s,struct wps_event_fail * fail)468 wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant *wpa_s,
469 				struct wps_event_fail *fail)
470 {
471 }
472 
wpas_dbus_signal_certification(struct wpa_supplicant * wpa_s,int depth,const char * subject,const char * cert_hash,const struct wpabuf * cert)473 static inline void wpas_dbus_signal_certification(struct wpa_supplicant *wpa_s,
474 						  int depth,
475 						  const char *subject,
476 						  const char *cert_hash,
477 						  const struct wpabuf *cert)
478 {
479 }
480 
wpas_dbus_signal_preq(struct wpa_supplicant * wpa_s,const u8 * addr,const u8 * dst,const u8 * bssid,const u8 * ie,size_t ie_len,u32 ssi_signal)481 static inline void wpas_dbus_signal_preq(struct wpa_supplicant *wpa_s,
482 					 const u8 *addr, const u8 *dst,
483 					 const u8 *bssid,
484 					 const u8 *ie, size_t ie_len,
485 					 u32 ssi_signal)
486 {
487 }
488 
wpas_dbus_signal_eap_status(struct wpa_supplicant * wpa_s,const char * status,const char * parameter)489 static inline void wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s,
490 					       const char *status,
491 					       const char *parameter)
492 {
493 }
494 
495 #endif /* CONFIG_CTRL_IFACE_DBUS_NEW */
496 
497 #endif /* CTRL_IFACE_DBUS_H_NEW */
498