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