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