/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 | | const u8 *orig_addr); |
304 | | void wpas_dbus_signal_nan_replied(struct wpa_supplicant *wpa_s, |
305 | | enum nan_service_protocol_type srv_proto_type, |
306 | | int publish_id, int peer_subscribe_id, |
307 | | const u8 *peer_addr, |
308 | | const u8 *ssi, size_t ssi_len); |
309 | | void wpas_dbus_signal_nan_receive(struct wpa_supplicant *wpa_s, int id, |
310 | | int peer_id, const u8 *peer_addr, |
311 | | const u8 *ssi, size_t ssi_len); |
312 | | void wpas_dbus_signal_nan_publish_terminated(struct wpa_supplicant *wpa_s, |
313 | | int publish_id, |
314 | | const char *reason); |
315 | | void wpas_dbus_signal_nan_subscribe_terminated(struct wpa_supplicant *wpa_s, |
316 | | int subscribe_id, |
317 | | const char *reason); |
318 | | |
319 | | #else /* CONFIG_CTRL_IFACE_DBUS_NEW */ |
320 | | |
321 | | static inline int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s) |
322 | 0 | { |
323 | 0 | return 0; |
324 | 0 | } |
325 | | |
326 | | static inline int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s) |
327 | 0 | { |
328 | 0 | return 0; |
329 | 0 | } |
330 | | |
331 | | #define wpas_dbus_signal_state_changed(w, n, o) do { } while (0) |
332 | | |
333 | | static inline void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s, |
334 | | enum wpas_dbus_prop property) |
335 | 0 | { |
336 | 0 | } |
337 | | |
338 | | static inline void wpas_dbus_bss_signal_prop_changed( |
339 | | struct wpa_supplicant *wpa_s, enum wpas_dbus_bss_prop property, |
340 | | unsigned int id) |
341 | 0 | { |
342 | 0 | } |
343 | | |
344 | | static inline void wpas_dbus_signal_network_enabled_changed( |
345 | | struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) |
346 | 0 | { |
347 | 0 | } |
348 | | |
349 | | static inline void wpas_dbus_signal_network_selected( |
350 | | struct wpa_supplicant *wpa_s, int id) |
351 | 0 | { |
352 | 0 | } |
353 | | |
354 | | static inline void wpas_dbus_signal_network_request( |
355 | | struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, |
356 | | enum wpa_ctrl_req_type rtype, const char *default_txt) |
357 | 0 | { |
358 | 0 | } |
359 | | |
360 | | static inline void wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s, |
361 | | int success) |
362 | 0 | { |
363 | 0 | } |
364 | | |
365 | | static inline void wpas_dbus_signal_wps_cred(struct wpa_supplicant *wpa_s, |
366 | | const struct wps_credential *cred) |
367 | 0 | { |
368 | 0 | } |
369 | | |
370 | | static inline void wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant *wpa_s, |
371 | | struct wps_event_m2d *m2d) |
372 | 0 | { |
373 | 0 | } |
374 | | |
375 | | static inline void wpas_dbus_signal_wps_event_fail( |
376 | | struct wpa_supplicant *wpa_s, struct wps_event_fail *fail) |
377 | 0 | { |
378 | 0 | } |
379 | | |
380 | | static inline void wpas_dbus_signal_wps_event_success( |
381 | | struct wpa_supplicant *wpa_s) |
382 | 0 | { |
383 | 0 | } |
384 | | |
385 | | static inline void wpas_dbus_signal_wps_event_pbc_overlap( |
386 | | struct wpa_supplicant *wpa_s) |
387 | 0 | { |
388 | 0 | } |
389 | | |
390 | | static inline int wpas_dbus_register_network(struct wpa_supplicant *wpa_s, |
391 | | struct wpa_ssid *ssid) |
392 | 0 | { |
393 | 0 | return 0; |
394 | 0 | } |
395 | | |
396 | | static inline int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s, |
397 | | int nid) |
398 | 0 | { |
399 | 0 | return 0; |
400 | 0 | } |
401 | | |
402 | | static inline int wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s, |
403 | | u8 bssid[ETH_ALEN], unsigned int id) |
404 | 3.12k | { |
405 | 3.12k | return 0; |
406 | 3.12k | } |
407 | | |
408 | | static inline int wpas_dbus_register_bss(struct wpa_supplicant *wpa_s, |
409 | | u8 bssid[ETH_ALEN], unsigned int id) |
410 | 3.12k | { |
411 | 3.12k | return 0; |
412 | 3.12k | } |
413 | | |
414 | | static inline int wpas_dbus_unregister_sta(struct wpa_supplicant *wpa_s, |
415 | | const u8 *sta) |
416 | 0 | { |
417 | 0 | return 0; |
418 | 0 | } |
419 | | |
420 | | static inline int wpas_dbus_register_sta(struct wpa_supplicant *wpa_s, |
421 | | const u8 *sta) |
422 | 0 | { |
423 | 0 | return 0; |
424 | 0 | } |
425 | | |
426 | | static inline void wpas_dbus_signal_blob_added(struct wpa_supplicant *wpa_s, |
427 | | const char *name) |
428 | 0 | { |
429 | 0 | } |
430 | | |
431 | | static inline void wpas_dbus_signal_blob_removed(struct wpa_supplicant *wpa_s, |
432 | | const char *name) |
433 | 0 | { |
434 | 0 | } |
435 | | |
436 | | static inline void wpas_dbus_signal_debug_level_changed( |
437 | | struct wpa_global *global) |
438 | 0 | { |
439 | 0 | } |
440 | | |
441 | | static inline void wpas_dbus_signal_debug_timestamp_changed( |
442 | | struct wpa_global *global) |
443 | 0 | { |
444 | 0 | } |
445 | | |
446 | | static inline void wpas_dbus_signal_debug_show_keys_changed( |
447 | | struct wpa_global *global) |
448 | 0 | { |
449 | 0 | } |
450 | | |
451 | | static inline int wpas_dbus_register_peer(struct wpa_supplicant *wpa_s, |
452 | | const u8 *dev_addr) |
453 | 0 | { |
454 | 0 | return 0; |
455 | 0 | } |
456 | | |
457 | | static inline int wpas_dbus_unregister_peer(struct wpa_supplicant *wpa_s, |
458 | | const u8 *dev_addr) |
459 | 0 | { |
460 | 0 | return 0; |
461 | 0 | } |
462 | | |
463 | | static inline void |
464 | | wpas_dbus_signal_peer_groups_changed(struct wpa_supplicant *wpa_s, |
465 | | const u8 *dev_addr) |
466 | 0 | { |
467 | 0 | } |
468 | | |
469 | | static inline void |
470 | | wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant *wpa_s, |
471 | | const char *role) |
472 | 0 | { |
473 | 0 | } |
474 | | |
475 | | static inline void |
476 | | wpas_dbus_signal_p2p_provision_discovery(struct wpa_supplicant *wpa_s, |
477 | | const u8 *dev_addr, int request, |
478 | | enum p2p_prov_disc_status status, |
479 | | u16 config_methods, |
480 | | unsigned int generated_pin) |
481 | 0 | { |
482 | 0 | } |
483 | | |
484 | | static inline void wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant *wpa_s, |
485 | | const u8 *src, |
486 | | u16 dev_passwd_id, |
487 | | u8 go_intent) |
488 | 0 | { |
489 | 0 | } |
490 | | |
491 | | static inline void |
492 | | wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s, |
493 | | int client, int persistent, |
494 | | const u8 *ip) |
495 | 0 | { |
496 | 0 | } |
497 | | |
498 | | static inline void |
499 | | wpas_dbus_signal_p2p_group_formation_failure(struct wpa_supplicant *wpa_s, |
500 | | const char *reason) |
501 | 0 | { |
502 | 0 | } |
503 | | |
504 | | static inline void |
505 | | wpas_dbus_register_p2p_group(struct wpa_supplicant *wpa_s, |
506 | | struct wpa_ssid *ssid) |
507 | 0 | { |
508 | 0 | } |
509 | | |
510 | | static inline int wpas_dbus_register_persistent_group( |
511 | | struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) |
512 | 0 | { |
513 | 0 | return 0; |
514 | 0 | } |
515 | | |
516 | | static inline int wpas_dbus_unregister_persistent_group( |
517 | | struct wpa_supplicant *wpa_s, int nid) |
518 | 0 | { |
519 | 0 | return 0; |
520 | 0 | } |
521 | | |
522 | | static inline void |
523 | | wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant *wpa_s, |
524 | | struct p2p_go_neg_results *res) |
525 | 0 | { |
526 | 0 | } |
527 | | |
528 | | static inline void |
529 | | wpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s, |
530 | | const struct wpa_ssid *ssid) |
531 | 0 | { |
532 | 0 | } |
533 | | |
534 | | static inline void wpas_dbus_signal_p2p_invitation_result( |
535 | | struct wpa_supplicant *wpa_s, int status, |
536 | | const u8 *bssid) |
537 | 0 | { |
538 | 0 | } |
539 | | |
540 | | static inline void |
541 | | wpas_dbus_register_p2p_groupmember(struct wpa_supplicant *wpa_s, |
542 | | const u8 *p2p_if_addr) |
543 | 0 | { |
544 | 0 | } |
545 | | |
546 | | static inline void |
547 | | wpas_dbus_signal_p2p_sd_request(struct wpa_supplicant *wpa_s, int freq, |
548 | | const u8 *sa, u8 dialog_token, u16 update_indic, |
549 | | const u8 *tlvs, size_t tlvs_len) |
550 | 0 | { |
551 | 0 | } |
552 | | |
553 | | static inline void |
554 | | wpas_dbus_signal_p2p_sd_response(struct wpa_supplicant *wpa_s, |
555 | | const u8 *sa, u16 update_indic, |
556 | | const u8 *tlvs, size_t tlvs_len) |
557 | 0 | { |
558 | 0 | } |
559 | | |
560 | | static inline void |
561 | | wpas_dbus_unregister_p2p_groupmember(struct wpa_supplicant *wpa_s, |
562 | | const u8 *p2p_if_addr) |
563 | 0 | { |
564 | 0 | } |
565 | | |
566 | | static inline void |
567 | | wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s, |
568 | | const u8 *member) |
569 | 0 | { |
570 | 0 | } |
571 | | |
572 | | static inline void |
573 | | wpas_dbus_signal_p2p_find_stopped(struct wpa_supplicant *wpa_s) |
574 | 0 | { |
575 | 0 | } |
576 | | |
577 | | static inline void |
578 | | wpas_dbus_signal_peer_device_found(struct wpa_supplicant *wpa_s, |
579 | | const u8 *dev_addr) |
580 | 0 | { |
581 | 0 | } |
582 | | |
583 | | static inline void |
584 | | wpas_dbus_signal_peer_device_lost(struct wpa_supplicant *wpa_s, |
585 | | const u8 *dev_addr) |
586 | 0 | { |
587 | 0 | } |
588 | | |
589 | | static inline void |
590 | | wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant *wpa_s, |
591 | | const u8 *member) |
592 | 0 | { |
593 | 0 | } |
594 | | |
595 | | static inline void |
596 | | wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant *wpa_s, |
597 | | struct wps_event_fail *fail) |
598 | 0 | { |
599 | 0 | } |
600 | | |
601 | | static inline void wpas_dbus_signal_certification(struct wpa_supplicant *wpa_s, |
602 | | int depth, |
603 | | const char *subject, |
604 | | const char *altsubject[], |
605 | | int num_altsubject, |
606 | | const char *cert_hash, |
607 | | const struct wpabuf *cert) |
608 | 0 | { |
609 | 0 | } |
610 | | |
611 | | static inline void wpas_dbus_signal_preq(struct wpa_supplicant *wpa_s, |
612 | | const u8 *addr, const u8 *dst, |
613 | | const u8 *bssid, |
614 | | const u8 *ie, size_t ie_len, |
615 | | u32 ssi_signal) |
616 | 0 | { |
617 | 0 | } |
618 | | |
619 | | static inline void wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s, |
620 | | const char *status, |
621 | | const char *parameter) |
622 | 0 | { |
623 | 0 | } |
624 | | |
625 | | static inline void wpas_dbus_signal_psk_mismatch(struct wpa_supplicant *wpa_s) |
626 | 0 | { |
627 | 0 | } |
628 | | |
629 | | static inline void |
630 | | wpas_dbus_signal_sae_password_mismatch(struct wpa_supplicant *wpa_s) |
631 | 0 | { |
632 | 0 | } |
633 | | |
634 | | static inline |
635 | | void wpas_dbus_signal_sta_authorized(struct wpa_supplicant *wpa_s, |
636 | | const u8 *sta) |
637 | 0 | { |
638 | 0 | } |
639 | | |
640 | | static inline |
641 | | void wpas_dbus_signal_sta_deauthorized(struct wpa_supplicant *wpa_s, |
642 | | const u8 *sta) |
643 | 0 | { |
644 | 0 | } |
645 | | |
646 | | static inline |
647 | | void wpas_dbus_signal_p2p_invitation_received(struct wpa_supplicant *wpa_s, |
648 | | const u8 *sa, const u8 *dev_addr, |
649 | | const u8 *bssid, int id, |
650 | | int op_freq) |
651 | 0 | { |
652 | 0 | } |
653 | | |
654 | | static inline |
655 | | void wpas_dbus_signal_p2p_bootstrap_req(struct wpa_supplicant *wpa_s, |
656 | | const u8 *src, u16 bootstrap_method) |
657 | 0 | { |
658 | 0 | } |
659 | | |
660 | | static inline |
661 | | void wpas_dbus_signal_p2p_bootstrap_rsp(struct wpa_supplicant *wpa_s, |
662 | | const u8 *src, int status, |
663 | | u16 bootstrap_method) |
664 | 0 | { |
665 | 0 | } |
666 | | |
667 | | static inline |
668 | | void wpas_dbus_signal_mesh_group_started(struct wpa_supplicant *wpa_s, |
669 | | struct wpa_ssid *ssid) |
670 | 0 | { |
671 | 0 | } |
672 | | |
673 | | static inline |
674 | | void wpas_dbus_signal_mesh_group_removed(struct wpa_supplicant *wpa_s, |
675 | | const u8 *meshid, u8 meshid_len, |
676 | | int reason) |
677 | 0 | { |
678 | 0 | } |
679 | | |
680 | | static inline |
681 | | void wpas_dbus_signal_mesh_peer_connected(struct wpa_supplicant *wpa_s, |
682 | | const u8 *peer_addr) |
683 | 0 | { |
684 | 0 | } |
685 | | |
686 | | static inline |
687 | | void wpas_dbus_signal_mesh_peer_disconnected(struct wpa_supplicant *wpa_s, |
688 | | const u8 *peer_addr, int reason) |
689 | 0 | { |
690 | 0 | } |
691 | | |
692 | | static inline |
693 | | void wpas_dbus_signal_interworking_ap_added(struct wpa_supplicant *wpa_s, |
694 | | struct wpa_bss *bss, |
695 | | struct wpa_cred *cred, |
696 | | const char *type, int excluded, |
697 | | int bh, int bss_load, |
698 | | int conn_capab) |
699 | 0 | { |
700 | 0 | } |
701 | | |
702 | | static inline |
703 | | void wpas_dbus_signal_interworking_select_done(struct wpa_supplicant *wpa_s) |
704 | 0 | { |
705 | 0 | } |
706 | | |
707 | | static inline |
708 | | void wpas_dbus_signal_anqp_query_done(struct wpa_supplicant *wpa_s, |
709 | | const u8 *dst, const char *result) |
710 | 0 | { |
711 | 0 | } |
712 | | |
713 | | static inline |
714 | | void wpas_dbus_signal_hs20_t_c_acceptance(struct wpa_supplicant *wpa_s, |
715 | | const char *url) |
716 | 0 | { |
717 | 0 | } |
718 | | |
719 | | static inline void |
720 | | wpas_dbus_signal_nan_discovery_result(struct wpa_supplicant *wpa_s, |
721 | | enum nan_service_protocol_type |
722 | | srv_proto_type, |
723 | | int subscribe_id, |
724 | | int peer_publish_id, const u8 *peer_addr, |
725 | | bool fsd, bool fsd_gas, |
726 | | const u8 *ssi, size_t ssi_len, |
727 | | const u8 *orig_addr) |
728 | 0 | { |
729 | 0 | } |
730 | | |
731 | | static inline void |
732 | | wpas_dbus_signal_nan_replied(struct wpa_supplicant *wpa_s, |
733 | | enum nan_service_protocol_type srv_proto_type, |
734 | | int publish_id, int peer_subscribe_id, |
735 | | const u8 *peer_addr, const u8 *ssi, size_t ssi_len) |
736 | 0 | { |
737 | 0 | } |
738 | | |
739 | | |
740 | | static inline void |
741 | | wpas_dbus_signal_nan_receive(struct wpa_supplicant *wpa_s, |
742 | | int id, int peer_id, const u8 *peer_addr, |
743 | | const u8 *ssi, size_t ssi_len) |
744 | 0 | { |
745 | 0 | } |
746 | | |
747 | | static inline void |
748 | | wpas_dbus_signal_nan_publish_terminated(struct wpa_supplicant *wpa_s, |
749 | | int publish_id, const char *reason) |
750 | 0 | { |
751 | 0 | } |
752 | | |
753 | | static inline void |
754 | | wpas_dbus_signal_nan_subscribe_terminated(struct wpa_supplicant *wpa_s, |
755 | | int subscribe_id, const char *reason) |
756 | 0 | { |
757 | 0 | } |
758 | | |
759 | | #endif /* CONFIG_CTRL_IFACE_DBUS_NEW */ |
760 | | |
761 | | #endif /* CTRL_IFACE_DBUS_H_NEW */ |