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