1d4f2939cSRui Paulo /*
2d4f2939cSRui Paulo * WPA Supplicant / dbus-based control interface
3d4f2939cSRui Paulo * Copyright (c) 2006, Dan Williams <dcbw@redhat.com> and Red Hat, Inc.
4d4f2939cSRui Paulo * Copyright (c) 2009-2010, Witold Sowa <witold.sowa@gmail.com>
5d4f2939cSRui Paulo *
6d4f2939cSRui Paulo * This software may be distributed under the terms of the BSD license.
7d4f2939cSRui Paulo * See README for more details.
8d4f2939cSRui Paulo */
9d4f2939cSRui Paulo
10d4f2939cSRui Paulo #ifndef CTRL_IFACE_DBUS_NEW_H
11d4f2939cSRui Paulo #define CTRL_IFACE_DBUS_NEW_H
12d4f2939cSRui Paulo
13d4f2939cSRui Paulo #include "common/defs.h"
14d4f2939cSRui Paulo #include "p2p/p2p.h"
15d4f2939cSRui Paulo
16d4f2939cSRui Paulo struct wpa_global;
17d4f2939cSRui Paulo struct wpa_supplicant;
18d4f2939cSRui Paulo struct wpa_ssid;
1932a95656SCy Schubert struct wpa_cred;
2032a95656SCy Schubert struct wpa_bss;
21d4f2939cSRui Paulo struct wps_event_m2d;
22d4f2939cSRui Paulo struct wps_event_fail;
23d4f2939cSRui Paulo struct wps_credential;
24d4f2939cSRui Paulo
25d4f2939cSRui Paulo enum wpas_dbus_prop {
26d4f2939cSRui Paulo WPAS_DBUS_PROP_AP_SCAN,
27d4f2939cSRui Paulo WPAS_DBUS_PROP_SCANNING,
28d4f2939cSRui Paulo WPAS_DBUS_PROP_STATE,
29d4f2939cSRui Paulo WPAS_DBUS_PROP_CURRENT_BSS,
30d4f2939cSRui Paulo WPAS_DBUS_PROP_CURRENT_NETWORK,
31d4f2939cSRui Paulo WPAS_DBUS_PROP_CURRENT_AUTH_MODE,
32d4f2939cSRui Paulo WPAS_DBUS_PROP_BSSS,
334bc52338SCy Schubert WPAS_DBUS_PROP_STATIONS,
34d4f2939cSRui Paulo WPAS_DBUS_PROP_DISCONNECT_REASON,
354bc52338SCy Schubert WPAS_DBUS_PROP_AUTH_STATUS_CODE,
36780fb4a2SCy Schubert WPAS_DBUS_PROP_ASSOC_STATUS_CODE,
374bc52338SCy Schubert WPAS_DBUS_PROP_ROAM_TIME,
384bc52338SCy Schubert WPAS_DBUS_PROP_ROAM_COMPLETE,
394bc52338SCy Schubert WPAS_DBUS_PROP_SESSION_LENGTH,
404bc52338SCy Schubert WPAS_DBUS_PROP_BSS_TM_STATUS,
41*a90b9d01SCy Schubert WPAS_DBUS_PROP_MAC_ADDRESS,
42*a90b9d01SCy Schubert WPAS_DBUS_PROP_SIGNAL_CHANGE,
43d4f2939cSRui Paulo };
44d4f2939cSRui Paulo
45d4f2939cSRui Paulo enum wpas_dbus_bss_prop {
46d4f2939cSRui Paulo WPAS_DBUS_BSS_PROP_SIGNAL,
47d4f2939cSRui Paulo WPAS_DBUS_BSS_PROP_FREQ,
48d4f2939cSRui Paulo WPAS_DBUS_BSS_PROP_MODE,
49d4f2939cSRui Paulo WPAS_DBUS_BSS_PROP_PRIVACY,
50d4f2939cSRui Paulo WPAS_DBUS_BSS_PROP_RATES,
51d4f2939cSRui Paulo WPAS_DBUS_BSS_PROP_WPA,
52d4f2939cSRui Paulo WPAS_DBUS_BSS_PROP_RSN,
53d4f2939cSRui Paulo WPAS_DBUS_BSS_PROP_WPS,
54d4f2939cSRui Paulo WPAS_DBUS_BSS_PROP_IES,
555b9c547cSRui Paulo WPAS_DBUS_BSS_PROP_AGE,
56*a90b9d01SCy Schubert WPAS_DBUS_BSS_PROP_ANQP,
57d4f2939cSRui Paulo };
58d4f2939cSRui Paulo
594bc52338SCy Schubert enum wpas_dbus_sta_prop {
604bc52338SCy Schubert WPAS_DBUS_STA_PROP_ADDRESS,
614bc52338SCy Schubert };
624bc52338SCy Schubert
63d4f2939cSRui Paulo #define WPAS_DBUS_OBJECT_PATH_MAX 150
64d4f2939cSRui Paulo
65d4f2939cSRui Paulo #define WPAS_DBUS_NEW_SERVICE "fi.w1.wpa_supplicant1"
66d4f2939cSRui Paulo #define WPAS_DBUS_NEW_PATH "/fi/w1/wpa_supplicant1"
67d4f2939cSRui Paulo #define WPAS_DBUS_NEW_INTERFACE "fi.w1.wpa_supplicant1"
68d4f2939cSRui Paulo
69d4f2939cSRui Paulo #define WPAS_DBUS_NEW_PATH_INTERFACES WPAS_DBUS_NEW_PATH "/Interfaces"
70d4f2939cSRui Paulo #define WPAS_DBUS_NEW_IFACE_INTERFACE WPAS_DBUS_NEW_INTERFACE ".Interface"
71d4f2939cSRui Paulo #define WPAS_DBUS_NEW_IFACE_WPS WPAS_DBUS_NEW_IFACE_INTERFACE ".WPS"
72d4f2939cSRui Paulo
73d4f2939cSRui Paulo #define WPAS_DBUS_NEW_NETWORKS_PART "Networks"
74d4f2939cSRui Paulo #define WPAS_DBUS_NEW_IFACE_NETWORK WPAS_DBUS_NEW_INTERFACE ".Network"
75d4f2939cSRui Paulo
76d4f2939cSRui Paulo #define WPAS_DBUS_NEW_BSSIDS_PART "BSSs"
77d4f2939cSRui Paulo #define WPAS_DBUS_NEW_IFACE_BSS WPAS_DBUS_NEW_INTERFACE ".BSS"
78d4f2939cSRui Paulo
794bc52338SCy Schubert #define WPAS_DBUS_NEW_STAS_PART "Stations"
804bc52338SCy Schubert #define WPAS_DBUS_NEW_IFACE_STA WPAS_DBUS_NEW_INTERFACE ".Station"
814bc52338SCy Schubert
82d4f2939cSRui Paulo #define WPAS_DBUS_NEW_IFACE_P2PDEVICE \
83d4f2939cSRui Paulo WPAS_DBUS_NEW_IFACE_INTERFACE ".P2PDevice"
84d4f2939cSRui Paulo
8585732ac8SCy Schubert #define WPAS_DBUS_NEW_IFACE_MESH WPAS_DBUS_NEW_IFACE_INTERFACE ".Mesh"
8685732ac8SCy Schubert
87d4f2939cSRui Paulo /*
88d4f2939cSRui Paulo * Groups correspond to P2P groups where this device is a GO (owner)
89d4f2939cSRui Paulo */
90d4f2939cSRui Paulo #define WPAS_DBUS_NEW_P2P_GROUPS_PART "Groups"
91d4f2939cSRui Paulo #define WPAS_DBUS_NEW_IFACE_P2P_GROUP WPAS_DBUS_NEW_INTERFACE ".Group"
92d4f2939cSRui Paulo
93d4f2939cSRui Paulo /*
94d4f2939cSRui Paulo * Different dbus object for persistent groups so they do not get confused
95d4f2939cSRui Paulo * with regular (configured) network objects.
96d4f2939cSRui Paulo */
97d4f2939cSRui Paulo #define WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART "PersistentGroups"
98d4f2939cSRui Paulo #define WPAS_DBUS_NEW_IFACE_PERSISTENT_GROUP \
99d4f2939cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".PersistentGroup"
100d4f2939cSRui Paulo
101d4f2939cSRui Paulo #define WPAS_DBUS_NEW_P2P_PEERS_PART "Peers"
102d4f2939cSRui Paulo #define WPAS_DBUS_NEW_IFACE_P2P_PEER WPAS_DBUS_NEW_INTERFACE ".Peer"
103d4f2939cSRui Paulo
10432a95656SCy Schubert #define WPAS_DBUS_NEW_CREDENTIALS_PART "Credentials"
10532a95656SCy Schubert #define WPAS_DBUS_NEW_IFACE_CREDENTIAL WPAS_DBUS_NEW_INTERFACE ".Credential"
10632a95656SCy Schubert
1075b9c547cSRui Paulo /* Top-level Errors */
108d4f2939cSRui Paulo #define WPAS_DBUS_ERROR_UNKNOWN_ERROR \
109d4f2939cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".UnknownError"
110d4f2939cSRui Paulo #define WPAS_DBUS_ERROR_INVALID_ARGS \
111d4f2939cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".InvalidArgs"
112d4f2939cSRui Paulo
113d4f2939cSRui Paulo #define WPAS_DBUS_ERROR_IFACE_EXISTS \
114d4f2939cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".InterfaceExists"
1155b9c547cSRui Paulo #define WPAS_DBUS_ERROR_IFACE_DISABLED \
1165b9c547cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".InterfaceDisabled"
117d4f2939cSRui Paulo #define WPAS_DBUS_ERROR_IFACE_UNKNOWN \
118d4f2939cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".InterfaceUnknown"
119d4f2939cSRui Paulo
120d4f2939cSRui Paulo #define WPAS_DBUS_ERROR_NOT_CONNECTED \
121d4f2939cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".NotConnected"
122d4f2939cSRui Paulo #define WPAS_DBUS_ERROR_NETWORK_UNKNOWN \
123d4f2939cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".NetworkUnknown"
124d4f2939cSRui Paulo
125d4f2939cSRui Paulo #define WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNAVAILABLE \
126d4f2939cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".ConnectChannelUnavailable"
127d4f2939cSRui Paulo #define WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNSUPPORTED \
128d4f2939cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".ConnectChannelUnsupported"
129d4f2939cSRui Paulo #define WPAS_DBUS_ERROR_CONNECT_UNSPECIFIED_ERROR \
130d4f2939cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".ConnectUnspecifiedError"
131d4f2939cSRui Paulo
132d4f2939cSRui Paulo #define WPAS_DBUS_ERROR_BLOB_EXISTS \
133d4f2939cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".BlobExists"
134d4f2939cSRui Paulo #define WPAS_DBUS_ERROR_BLOB_UNKNOWN \
135d4f2939cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".BlobUnknown"
136d4f2939cSRui Paulo
137d4f2939cSRui Paulo #define WPAS_DBUS_ERROR_SUBSCRIPTION_IN_USE \
138d4f2939cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".SubscriptionInUse"
139d4f2939cSRui Paulo #define WPAS_DBUS_ERROR_NO_SUBSCRIPTION \
140d4f2939cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".NoSubscription"
141d4f2939cSRui Paulo #define WPAS_DBUS_ERROR_SUBSCRIPTION_EPERM \
142d4f2939cSRui Paulo WPAS_DBUS_NEW_INTERFACE ".SubscriptionNotYou"
143d4f2939cSRui Paulo
1445b9c547cSRui Paulo /* Interface-level errors */
1455b9c547cSRui Paulo #define WPAS_DBUS_ERROR_IFACE_SCAN_ERROR \
1465b9c547cSRui Paulo WPAS_DBUS_NEW_IFACE_INTERFACE ".ScanError"
147d4f2939cSRui Paulo
148d4f2939cSRui Paulo void wpas_dbus_subscribe_noc(struct wpas_dbus_priv *priv);
149d4f2939cSRui Paulo void wpas_dbus_unsubscribe_noc(struct wpas_dbus_priv *priv);
150d4f2939cSRui Paulo
151d4f2939cSRui Paulo
152d4f2939cSRui Paulo #ifdef CONFIG_CTRL_IFACE_DBUS_NEW
153d4f2939cSRui Paulo
154d4f2939cSRui Paulo int wpas_dbus_ctrl_iface_init(struct wpas_dbus_priv *priv);
155d4f2939cSRui Paulo void wpas_dbus_ctrl_iface_deinit(struct wpas_dbus_priv *iface);
156d4f2939cSRui Paulo
157d4f2939cSRui Paulo int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s);
158d4f2939cSRui Paulo int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s);
159d4f2939cSRui Paulo void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s,
160d4f2939cSRui Paulo enum wpas_dbus_prop property);
161d4f2939cSRui Paulo void wpas_dbus_bss_signal_prop_changed(struct wpa_supplicant *wpa_s,
162d4f2939cSRui Paulo enum wpas_dbus_bss_prop property,
163d4f2939cSRui Paulo unsigned int id);
164d4f2939cSRui Paulo void wpas_dbus_signal_network_enabled_changed(struct wpa_supplicant *wpa_s,
165d4f2939cSRui Paulo struct wpa_ssid *ssid);
166d4f2939cSRui Paulo void wpas_dbus_signal_network_selected(struct wpa_supplicant *wpa_s, int id);
167d4f2939cSRui Paulo void wpas_dbus_signal_network_request(struct wpa_supplicant *wpa_s,
168d4f2939cSRui Paulo struct wpa_ssid *ssid,
169d4f2939cSRui Paulo enum wpa_ctrl_req_type rtype,
170d4f2939cSRui Paulo const char *default_text);
171d4f2939cSRui Paulo void wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s, int success);
172d4f2939cSRui Paulo void wpas_dbus_signal_wps_cred(struct wpa_supplicant *wpa_s,
173d4f2939cSRui Paulo const struct wps_credential *cred);
174d4f2939cSRui Paulo void wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant *wpa_s,
175d4f2939cSRui Paulo struct wps_event_m2d *m2d);
176d4f2939cSRui Paulo void wpas_dbus_signal_wps_event_fail(struct wpa_supplicant *wpa_s,
177d4f2939cSRui Paulo struct wps_event_fail *fail);
178d4f2939cSRui Paulo void wpas_dbus_signal_wps_event_success(struct wpa_supplicant *wpa_s);
179325151a3SRui Paulo void wpas_dbus_signal_wps_event_pbc_overlap(struct wpa_supplicant *wpa_s);
180d4f2939cSRui Paulo int wpas_dbus_register_network(struct wpa_supplicant *wpa_s,
181d4f2939cSRui Paulo struct wpa_ssid *ssid);
182d4f2939cSRui Paulo int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s, int nid);
183d4f2939cSRui Paulo int wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s,
184d4f2939cSRui Paulo u8 bssid[ETH_ALEN], unsigned int id);
185d4f2939cSRui Paulo int wpas_dbus_register_bss(struct wpa_supplicant *wpa_s,
186d4f2939cSRui Paulo u8 bssid[ETH_ALEN], unsigned int id);
1874bc52338SCy Schubert int wpas_dbus_unregister_sta(struct wpa_supplicant *wpa_s, const u8 *sta);
1884bc52338SCy Schubert int wpas_dbus_register_sta(struct wpa_supplicant *wpa_s, const u8 *sta);
189d4f2939cSRui Paulo void wpas_dbus_signal_blob_added(struct wpa_supplicant *wpa_s,
190d4f2939cSRui Paulo const char *name);
191d4f2939cSRui Paulo void wpas_dbus_signal_blob_removed(struct wpa_supplicant *wpa_s,
192d4f2939cSRui Paulo const char *name);
193d4f2939cSRui Paulo void wpas_dbus_signal_debug_level_changed(struct wpa_global *global);
194d4f2939cSRui Paulo void wpas_dbus_signal_debug_timestamp_changed(struct wpa_global *global);
195d4f2939cSRui Paulo void wpas_dbus_signal_debug_show_keys_changed(struct wpa_global *global);
196d4f2939cSRui Paulo
197d4f2939cSRui Paulo int wpas_dbus_register_peer(struct wpa_supplicant *wpa_s, const u8 *dev_addr);
198325151a3SRui Paulo void wpas_dbus_signal_p2p_find_stopped(struct wpa_supplicant *wpa_s);
199d4f2939cSRui Paulo void wpas_dbus_signal_peer_device_found(struct wpa_supplicant *wpa_s,
200d4f2939cSRui Paulo const u8 *dev_addr);
201d4f2939cSRui Paulo int wpas_dbus_unregister_peer(struct wpa_supplicant *wpa_s,
202d4f2939cSRui Paulo const u8 *dev_addr);
203d4f2939cSRui Paulo void wpas_dbus_signal_peer_device_lost(struct wpa_supplicant *wpa_s,
204d4f2939cSRui Paulo const u8 *dev_addr);
2055b9c547cSRui Paulo void wpas_dbus_signal_peer_groups_changed(struct wpa_supplicant *wpa_s,
2065b9c547cSRui Paulo const u8 *dev_addr);
207d4f2939cSRui Paulo void wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant *wpa_s,
208d4f2939cSRui Paulo const char *role);
209d4f2939cSRui Paulo void wpas_dbus_signal_p2p_provision_discovery(struct wpa_supplicant *wpa_s,
210d4f2939cSRui Paulo const u8 *dev_addr, int request,
211d4f2939cSRui Paulo enum p2p_prov_disc_status status,
212d4f2939cSRui Paulo u16 config_methods,
213d4f2939cSRui Paulo unsigned int generated_pin);
214d4f2939cSRui Paulo void wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
215325151a3SRui Paulo const u8 *src, u16 dev_passwd_id,
216325151a3SRui Paulo u8 go_intent);
217d4f2939cSRui Paulo void wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s,
21885732ac8SCy Schubert int client, int persistent,
21985732ac8SCy Schubert const u8 *ip);
220325151a3SRui Paulo void wpas_dbus_signal_p2p_group_formation_failure(struct wpa_supplicant *wpa_s,
221325151a3SRui Paulo const char *reason);
222d4f2939cSRui Paulo void wpas_dbus_register_p2p_group(struct wpa_supplicant *wpa_s,
223d4f2939cSRui Paulo struct wpa_ssid *ssid);
224d4f2939cSRui Paulo void wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant *wpa_s,
225d4f2939cSRui Paulo struct p2p_go_neg_results *res);
226d4f2939cSRui Paulo void wpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s,
227d4f2939cSRui Paulo const struct wpa_ssid *ssid);
228d4f2939cSRui Paulo int wpas_dbus_register_persistent_group(struct wpa_supplicant *wpa_s,
229d4f2939cSRui Paulo struct wpa_ssid *ssid);
230d4f2939cSRui Paulo int wpas_dbus_unregister_persistent_group(struct wpa_supplicant *wpa_s,
231d4f2939cSRui Paulo int nid);
232d4f2939cSRui Paulo void wpas_dbus_signal_p2p_invitation_result(struct wpa_supplicant *wpa_s,
233d4f2939cSRui Paulo int status, const u8 *bssid);
234d4f2939cSRui Paulo void wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant *wpa_s,
235d4f2939cSRui Paulo const u8 *member);
236d4f2939cSRui Paulo void wpas_dbus_signal_p2p_sd_request(struct wpa_supplicant *wpa_s,
237d4f2939cSRui Paulo int freq, const u8 *sa, u8 dialog_token,
238d4f2939cSRui Paulo u16 update_indic, const u8 *tlvs,
239d4f2939cSRui Paulo size_t tlvs_len);
240d4f2939cSRui Paulo void wpas_dbus_signal_p2p_sd_response(struct wpa_supplicant *wpa_s,
241d4f2939cSRui Paulo const u8 *sa, u16 update_indic,
242d4f2939cSRui Paulo const u8 *tlvs, size_t tlvs_len);
243d4f2939cSRui Paulo void wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s,
244d4f2939cSRui Paulo const u8 *member);
245d4f2939cSRui Paulo void wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant *wpa_s,
246d4f2939cSRui Paulo struct wps_event_fail *fail);
247d4f2939cSRui Paulo void wpas_dbus_signal_certification(struct wpa_supplicant *wpa_s,
248d4f2939cSRui Paulo int depth, const char *subject,
2495b9c547cSRui Paulo const char *altsubject[],
2505b9c547cSRui Paulo int num_altsubject,
251d4f2939cSRui Paulo const char *cert_hash,
252d4f2939cSRui Paulo const struct wpabuf *cert);
253d4f2939cSRui Paulo void wpas_dbus_signal_preq(struct wpa_supplicant *wpa_s,
254d4f2939cSRui Paulo const u8 *addr, const u8 *dst, const u8 *bssid,
255d4f2939cSRui Paulo const u8 *ie, size_t ie_len, u32 ssi_signal);
256d4f2939cSRui Paulo void wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s,
257d4f2939cSRui Paulo const char *status, const char *parameter);
258*a90b9d01SCy Schubert void wpas_dbus_signal_psk_mismatch(struct wpa_supplicant *wpa_s);
2595b9c547cSRui Paulo void wpas_dbus_signal_sta_authorized(struct wpa_supplicant *wpa_s,
2605b9c547cSRui Paulo const u8 *sta);
2615b9c547cSRui Paulo void wpas_dbus_signal_sta_deauthorized(struct wpa_supplicant *wpa_s,
2625b9c547cSRui Paulo const u8 *sta);
263325151a3SRui Paulo void wpas_dbus_signal_p2p_invitation_received(struct wpa_supplicant *wpa_s,
264325151a3SRui Paulo const u8 *sa, const u8 *dev_addr,
265325151a3SRui Paulo const u8 *bssid, int id,
266325151a3SRui Paulo int op_freq);
26785732ac8SCy Schubert void wpas_dbus_signal_mesh_group_started(struct wpa_supplicant *wpa_s,
26885732ac8SCy Schubert struct wpa_ssid *ssid);
26985732ac8SCy Schubert void wpas_dbus_signal_mesh_group_removed(struct wpa_supplicant *wpa_s,
27085732ac8SCy Schubert const u8 *meshid, u8 meshid_len,
27185732ac8SCy Schubert int reason);
27285732ac8SCy Schubert void wpas_dbus_signal_mesh_peer_connected(struct wpa_supplicant *wpa_s,
27385732ac8SCy Schubert const u8 *peer_addr);
27485732ac8SCy Schubert void wpas_dbus_signal_mesh_peer_disconnected(struct wpa_supplicant *wpa_s,
27585732ac8SCy Schubert const u8 *peer_addr, int reason);
27632a95656SCy Schubert void wpas_dbus_signal_interworking_ap_added(struct wpa_supplicant *wpa_s,
27732a95656SCy Schubert struct wpa_bss *bss,
27832a95656SCy Schubert struct wpa_cred *cred,
27932a95656SCy Schubert const char *type, int excluded,
28032a95656SCy Schubert int bh, int bss_load,
28132a95656SCy Schubert int conn_capab);
28232a95656SCy Schubert void wpas_dbus_signal_interworking_select_done(struct wpa_supplicant *wpa_s);
283*a90b9d01SCy Schubert void wpas_dbus_signal_anqp_query_done(struct wpa_supplicant *wpa_s,
284*a90b9d01SCy Schubert const u8 *dst, const char *result);
285*a90b9d01SCy Schubert void wpas_dbus_signal_hs20_t_c_acceptance(struct wpa_supplicant *wpa_s,
286*a90b9d01SCy Schubert const char *url);
287d4f2939cSRui Paulo
288d4f2939cSRui Paulo #else /* CONFIG_CTRL_IFACE_DBUS_NEW */
289d4f2939cSRui Paulo
wpas_dbus_register_interface(struct wpa_supplicant * wpa_s)290d4f2939cSRui Paulo static inline int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s)
291d4f2939cSRui Paulo {
292d4f2939cSRui Paulo return 0;
293d4f2939cSRui Paulo }
294d4f2939cSRui Paulo
wpas_dbus_unregister_interface(struct wpa_supplicant * wpa_s)295d4f2939cSRui Paulo static inline int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s)
296d4f2939cSRui Paulo {
297d4f2939cSRui Paulo return 0;
298d4f2939cSRui Paulo }
299d4f2939cSRui Paulo
300d4f2939cSRui Paulo #define wpas_dbus_signal_state_changed(w, n, o) do { } while (0)
301d4f2939cSRui Paulo
wpas_dbus_signal_prop_changed(struct wpa_supplicant * wpa_s,enum wpas_dbus_prop property)302d4f2939cSRui Paulo static inline void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s,
303d4f2939cSRui Paulo enum wpas_dbus_prop property)
304d4f2939cSRui Paulo {
305d4f2939cSRui Paulo }
306d4f2939cSRui Paulo
wpas_dbus_bss_signal_prop_changed(struct wpa_supplicant * wpa_s,enum wpas_dbus_bss_prop property,unsigned int id)307d4f2939cSRui Paulo static inline void wpas_dbus_bss_signal_prop_changed(
308d4f2939cSRui Paulo struct wpa_supplicant *wpa_s, enum wpas_dbus_bss_prop property,
309d4f2939cSRui Paulo unsigned int id)
310d4f2939cSRui Paulo {
311d4f2939cSRui Paulo }
312d4f2939cSRui Paulo
wpas_dbus_signal_network_enabled_changed(struct wpa_supplicant * wpa_s,struct wpa_ssid * ssid)313d4f2939cSRui Paulo static inline void wpas_dbus_signal_network_enabled_changed(
314d4f2939cSRui Paulo struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
315d4f2939cSRui Paulo {
316d4f2939cSRui Paulo }
317d4f2939cSRui Paulo
wpas_dbus_signal_network_selected(struct wpa_supplicant * wpa_s,int id)318d4f2939cSRui Paulo static inline void wpas_dbus_signal_network_selected(
319d4f2939cSRui Paulo struct wpa_supplicant *wpa_s, int id)
320d4f2939cSRui Paulo {
321d4f2939cSRui Paulo }
322d4f2939cSRui Paulo
wpas_dbus_signal_network_request(struct wpa_supplicant * wpa_s,struct wpa_ssid * ssid,enum wpa_ctrl_req_type rtype,const char * default_txt)323d4f2939cSRui Paulo static inline void wpas_dbus_signal_network_request(
324d4f2939cSRui Paulo struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
325d4f2939cSRui Paulo enum wpa_ctrl_req_type rtype, const char *default_txt)
326d4f2939cSRui Paulo {
327d4f2939cSRui Paulo }
328d4f2939cSRui Paulo
wpas_dbus_signal_scan_done(struct wpa_supplicant * wpa_s,int success)329d4f2939cSRui Paulo static inline void wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s,
330d4f2939cSRui Paulo int success)
331d4f2939cSRui Paulo {
332d4f2939cSRui Paulo }
333d4f2939cSRui Paulo
wpas_dbus_signal_wps_cred(struct wpa_supplicant * wpa_s,const struct wps_credential * cred)334d4f2939cSRui Paulo static inline void wpas_dbus_signal_wps_cred(struct wpa_supplicant *wpa_s,
335d4f2939cSRui Paulo const struct wps_credential *cred)
336d4f2939cSRui Paulo {
337d4f2939cSRui Paulo }
338d4f2939cSRui Paulo
wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant * wpa_s,struct wps_event_m2d * m2d)339d4f2939cSRui Paulo static inline void wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant *wpa_s,
340d4f2939cSRui Paulo struct wps_event_m2d *m2d)
341d4f2939cSRui Paulo {
342d4f2939cSRui Paulo }
343d4f2939cSRui Paulo
wpas_dbus_signal_wps_event_fail(struct wpa_supplicant * wpa_s,struct wps_event_fail * fail)344d4f2939cSRui Paulo static inline void wpas_dbus_signal_wps_event_fail(
345d4f2939cSRui Paulo struct wpa_supplicant *wpa_s, struct wps_event_fail *fail)
346d4f2939cSRui Paulo {
347d4f2939cSRui Paulo }
348d4f2939cSRui Paulo
wpas_dbus_signal_wps_event_success(struct wpa_supplicant * wpa_s)349d4f2939cSRui Paulo static inline void wpas_dbus_signal_wps_event_success(
350d4f2939cSRui Paulo struct wpa_supplicant *wpa_s)
351d4f2939cSRui Paulo {
352d4f2939cSRui Paulo }
353d4f2939cSRui Paulo
wpas_dbus_signal_wps_event_pbc_overlap(struct wpa_supplicant * wpa_s)354325151a3SRui Paulo static inline void wpas_dbus_signal_wps_event_pbc_overlap(
355325151a3SRui Paulo struct wpa_supplicant *wpa_s)
356325151a3SRui Paulo {
357325151a3SRui Paulo }
358325151a3SRui Paulo
wpas_dbus_register_network(struct wpa_supplicant * wpa_s,struct wpa_ssid * ssid)359d4f2939cSRui Paulo static inline int wpas_dbus_register_network(struct wpa_supplicant *wpa_s,
360d4f2939cSRui Paulo struct wpa_ssid *ssid)
361d4f2939cSRui Paulo {
362d4f2939cSRui Paulo return 0;
363d4f2939cSRui Paulo }
364d4f2939cSRui Paulo
wpas_dbus_unregister_network(struct wpa_supplicant * wpa_s,int nid)365d4f2939cSRui Paulo static inline int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s,
366d4f2939cSRui Paulo int nid)
367d4f2939cSRui Paulo {
368d4f2939cSRui Paulo return 0;
369d4f2939cSRui Paulo }
370d4f2939cSRui Paulo
wpas_dbus_unregister_bss(struct wpa_supplicant * wpa_s,u8 bssid[ETH_ALEN],unsigned int id)371d4f2939cSRui Paulo static inline int wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s,
372d4f2939cSRui Paulo u8 bssid[ETH_ALEN], unsigned int id)
373d4f2939cSRui Paulo {
374d4f2939cSRui Paulo return 0;
375d4f2939cSRui Paulo }
376d4f2939cSRui Paulo
wpas_dbus_register_bss(struct wpa_supplicant * wpa_s,u8 bssid[ETH_ALEN],unsigned int id)377d4f2939cSRui Paulo static inline int wpas_dbus_register_bss(struct wpa_supplicant *wpa_s,
378d4f2939cSRui Paulo u8 bssid[ETH_ALEN], unsigned int id)
379d4f2939cSRui Paulo {
380d4f2939cSRui Paulo return 0;
381d4f2939cSRui Paulo }
382d4f2939cSRui Paulo
wpas_dbus_unregister_sta(struct wpa_supplicant * wpa_s,const u8 * sta)3834bc52338SCy Schubert static inline int wpas_dbus_unregister_sta(struct wpa_supplicant *wpa_s,
3844bc52338SCy Schubert const u8 *sta)
3854bc52338SCy Schubert {
3864bc52338SCy Schubert return 0;
3874bc52338SCy Schubert }
3884bc52338SCy Schubert
wpas_dbus_register_sta(struct wpa_supplicant * wpa_s,const u8 * sta)3894bc52338SCy Schubert static inline int wpas_dbus_register_sta(struct wpa_supplicant *wpa_s,
3904bc52338SCy Schubert const u8 *sta)
3914bc52338SCy Schubert {
3924bc52338SCy Schubert return 0;
3934bc52338SCy Schubert }
3944bc52338SCy Schubert
wpas_dbus_signal_blob_added(struct wpa_supplicant * wpa_s,const char * name)395d4f2939cSRui Paulo static inline void wpas_dbus_signal_blob_added(struct wpa_supplicant *wpa_s,
396d4f2939cSRui Paulo const char *name)
397d4f2939cSRui Paulo {
398d4f2939cSRui Paulo }
399d4f2939cSRui Paulo
wpas_dbus_signal_blob_removed(struct wpa_supplicant * wpa_s,const char * name)400d4f2939cSRui Paulo static inline void wpas_dbus_signal_blob_removed(struct wpa_supplicant *wpa_s,
401d4f2939cSRui Paulo const char *name)
402d4f2939cSRui Paulo {
403d4f2939cSRui Paulo }
404d4f2939cSRui Paulo
wpas_dbus_signal_debug_level_changed(struct wpa_global * global)405d4f2939cSRui Paulo static inline void wpas_dbus_signal_debug_level_changed(
406d4f2939cSRui Paulo struct wpa_global *global)
407d4f2939cSRui Paulo {
408d4f2939cSRui Paulo }
409d4f2939cSRui Paulo
wpas_dbus_signal_debug_timestamp_changed(struct wpa_global * global)410d4f2939cSRui Paulo static inline void wpas_dbus_signal_debug_timestamp_changed(
411d4f2939cSRui Paulo struct wpa_global *global)
412d4f2939cSRui Paulo {
413d4f2939cSRui Paulo }
414d4f2939cSRui Paulo
wpas_dbus_signal_debug_show_keys_changed(struct wpa_global * global)415d4f2939cSRui Paulo static inline void wpas_dbus_signal_debug_show_keys_changed(
416d4f2939cSRui Paulo struct wpa_global *global)
417d4f2939cSRui Paulo {
418d4f2939cSRui Paulo }
419d4f2939cSRui Paulo
wpas_dbus_register_peer(struct wpa_supplicant * wpa_s,const u8 * dev_addr)420d4f2939cSRui Paulo static inline int wpas_dbus_register_peer(struct wpa_supplicant *wpa_s,
421d4f2939cSRui Paulo const u8 *dev_addr)
422d4f2939cSRui Paulo {
423d4f2939cSRui Paulo return 0;
424d4f2939cSRui Paulo }
425d4f2939cSRui Paulo
wpas_dbus_unregister_peer(struct wpa_supplicant * wpa_s,const u8 * dev_addr)426d4f2939cSRui Paulo static inline int wpas_dbus_unregister_peer(struct wpa_supplicant *wpa_s,
427d4f2939cSRui Paulo const u8 *dev_addr)
428d4f2939cSRui Paulo {
429d4f2939cSRui Paulo return 0;
430d4f2939cSRui Paulo }
431d4f2939cSRui Paulo
432d4f2939cSRui Paulo static inline void
wpas_dbus_signal_peer_groups_changed(struct wpa_supplicant * wpa_s,const u8 * dev_addr)4335b9c547cSRui Paulo wpas_dbus_signal_peer_groups_changed(struct wpa_supplicant *wpa_s,
4345b9c547cSRui Paulo const u8 *dev_addr)
4355b9c547cSRui Paulo {
4365b9c547cSRui Paulo }
4375b9c547cSRui Paulo
4385b9c547cSRui Paulo static inline void
wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant * wpa_s,const char * role)439d4f2939cSRui Paulo wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant *wpa_s,
440d4f2939cSRui Paulo const char *role)
441d4f2939cSRui Paulo {
442d4f2939cSRui Paulo }
443d4f2939cSRui Paulo
444d4f2939cSRui Paulo 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)445d4f2939cSRui Paulo wpas_dbus_signal_p2p_provision_discovery(struct wpa_supplicant *wpa_s,
446d4f2939cSRui Paulo const u8 *dev_addr, int request,
447d4f2939cSRui Paulo enum p2p_prov_disc_status status,
448d4f2939cSRui Paulo u16 config_methods,
449d4f2939cSRui Paulo unsigned int generated_pin)
450d4f2939cSRui Paulo {
451d4f2939cSRui Paulo }
452d4f2939cSRui Paulo
wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant * wpa_s,const u8 * src,u16 dev_passwd_id,u8 go_intent)453325151a3SRui Paulo static inline void wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
454d4f2939cSRui Paulo const u8 *src,
455325151a3SRui Paulo u16 dev_passwd_id,
456325151a3SRui Paulo u8 go_intent)
457d4f2939cSRui Paulo {
458d4f2939cSRui Paulo }
459d4f2939cSRui Paulo
460d4f2939cSRui Paulo static inline void
wpas_dbus_signal_p2p_group_started(struct wpa_supplicant * wpa_s,int client,int persistent,const u8 * ip)461d4f2939cSRui Paulo wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s,
46285732ac8SCy Schubert int client, int persistent,
46385732ac8SCy Schubert const u8 *ip)
464d4f2939cSRui Paulo {
465d4f2939cSRui Paulo }
466d4f2939cSRui Paulo
467d4f2939cSRui Paulo static inline void
wpas_dbus_signal_p2p_group_formation_failure(struct wpa_supplicant * wpa_s,const char * reason)468325151a3SRui Paulo wpas_dbus_signal_p2p_group_formation_failure(struct wpa_supplicant *wpa_s,
469325151a3SRui Paulo const char *reason)
470325151a3SRui Paulo {
471325151a3SRui Paulo }
472325151a3SRui Paulo
473325151a3SRui Paulo static inline void
wpas_dbus_register_p2p_group(struct wpa_supplicant * wpa_s,struct wpa_ssid * ssid)474d4f2939cSRui Paulo wpas_dbus_register_p2p_group(struct wpa_supplicant *wpa_s,
475d4f2939cSRui Paulo struct wpa_ssid *ssid)
476d4f2939cSRui Paulo {
477d4f2939cSRui Paulo }
478d4f2939cSRui Paulo
wpas_dbus_register_persistent_group(struct wpa_supplicant * wpa_s,struct wpa_ssid * ssid)479d4f2939cSRui Paulo static inline int wpas_dbus_register_persistent_group(
480d4f2939cSRui Paulo struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
481d4f2939cSRui Paulo {
482d4f2939cSRui Paulo return 0;
483d4f2939cSRui Paulo }
484d4f2939cSRui Paulo
wpas_dbus_unregister_persistent_group(struct wpa_supplicant * wpa_s,int nid)485d4f2939cSRui Paulo static inline int wpas_dbus_unregister_persistent_group(
486d4f2939cSRui Paulo struct wpa_supplicant *wpa_s, int nid)
487d4f2939cSRui Paulo {
488d4f2939cSRui Paulo return 0;
489d4f2939cSRui Paulo }
490d4f2939cSRui Paulo
491d4f2939cSRui Paulo static inline void
wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant * wpa_s,struct p2p_go_neg_results * res)492d4f2939cSRui Paulo wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant *wpa_s,
493d4f2939cSRui Paulo struct p2p_go_neg_results *res)
494d4f2939cSRui Paulo {
495d4f2939cSRui Paulo }
496d4f2939cSRui Paulo
497d4f2939cSRui Paulo static inline void
wpas_dbus_unregister_p2p_group(struct wpa_supplicant * wpa_s,const struct wpa_ssid * ssid)498d4f2939cSRui Paulo wpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s,
499d4f2939cSRui Paulo const struct wpa_ssid *ssid)
500d4f2939cSRui Paulo {
501d4f2939cSRui Paulo }
502d4f2939cSRui Paulo
wpas_dbus_signal_p2p_invitation_result(struct wpa_supplicant * wpa_s,int status,const u8 * bssid)503d4f2939cSRui Paulo static inline void wpas_dbus_signal_p2p_invitation_result(
504d4f2939cSRui Paulo struct wpa_supplicant *wpa_s, int status,
505d4f2939cSRui Paulo const u8 *bssid)
506d4f2939cSRui Paulo {
507d4f2939cSRui Paulo }
508d4f2939cSRui Paulo
509d4f2939cSRui Paulo static inline void
wpas_dbus_register_p2p_groupmember(struct wpa_supplicant * wpa_s,const u8 * p2p_if_addr)510d4f2939cSRui Paulo wpas_dbus_register_p2p_groupmember(struct wpa_supplicant *wpa_s,
511d4f2939cSRui Paulo const u8 *p2p_if_addr)
512d4f2939cSRui Paulo {
513d4f2939cSRui Paulo }
514d4f2939cSRui Paulo
515d4f2939cSRui Paulo 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)516d4f2939cSRui Paulo wpas_dbus_signal_p2p_sd_request(struct wpa_supplicant *wpa_s, int freq,
517d4f2939cSRui Paulo const u8 *sa, u8 dialog_token, u16 update_indic,
518d4f2939cSRui Paulo const u8 *tlvs, size_t tlvs_len)
519d4f2939cSRui Paulo {
520d4f2939cSRui Paulo }
521d4f2939cSRui Paulo
522d4f2939cSRui Paulo 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)523d4f2939cSRui Paulo wpas_dbus_signal_p2p_sd_response(struct wpa_supplicant *wpa_s,
524d4f2939cSRui Paulo const u8 *sa, u16 update_indic,
525d4f2939cSRui Paulo const u8 *tlvs, size_t tlvs_len)
526d4f2939cSRui Paulo {
527d4f2939cSRui Paulo }
528d4f2939cSRui Paulo
529d4f2939cSRui Paulo static inline void
wpas_dbus_unregister_p2p_groupmember(struct wpa_supplicant * wpa_s,const u8 * p2p_if_addr)530d4f2939cSRui Paulo wpas_dbus_unregister_p2p_groupmember(struct wpa_supplicant *wpa_s,
531d4f2939cSRui Paulo const u8 *p2p_if_addr)
532d4f2939cSRui Paulo {
533d4f2939cSRui Paulo }
534d4f2939cSRui Paulo
535d4f2939cSRui Paulo static inline void
wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant * wpa_s,const u8 * member)536d4f2939cSRui Paulo wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s,
537d4f2939cSRui Paulo const u8 *member)
538d4f2939cSRui Paulo {
539d4f2939cSRui Paulo }
540d4f2939cSRui Paulo
541d4f2939cSRui Paulo static inline void
wpas_dbus_signal_p2p_find_stopped(struct wpa_supplicant * wpa_s)542325151a3SRui Paulo wpas_dbus_signal_p2p_find_stopped(struct wpa_supplicant *wpa_s)
543325151a3SRui Paulo {
544325151a3SRui Paulo }
545325151a3SRui Paulo
546325151a3SRui Paulo static inline void
wpas_dbus_signal_peer_device_found(struct wpa_supplicant * wpa_s,const u8 * dev_addr)547d4f2939cSRui Paulo wpas_dbus_signal_peer_device_found(struct wpa_supplicant *wpa_s,
548d4f2939cSRui Paulo const u8 *dev_addr)
549d4f2939cSRui Paulo {
550d4f2939cSRui Paulo }
551d4f2939cSRui Paulo
552d4f2939cSRui Paulo static inline void
wpas_dbus_signal_peer_device_lost(struct wpa_supplicant * wpa_s,const u8 * dev_addr)553d4f2939cSRui Paulo wpas_dbus_signal_peer_device_lost(struct wpa_supplicant *wpa_s,
554d4f2939cSRui Paulo const u8 *dev_addr)
555d4f2939cSRui Paulo {
556d4f2939cSRui Paulo }
557d4f2939cSRui Paulo
558d4f2939cSRui Paulo static inline void
wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant * wpa_s,const u8 * member)559d4f2939cSRui Paulo wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant *wpa_s,
560d4f2939cSRui Paulo const u8 *member)
561d4f2939cSRui Paulo {
562d4f2939cSRui Paulo }
563d4f2939cSRui Paulo
564d4f2939cSRui Paulo static inline void
wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant * wpa_s,struct wps_event_fail * fail)565d4f2939cSRui Paulo wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant *wpa_s,
566d4f2939cSRui Paulo struct wps_event_fail *fail)
567d4f2939cSRui Paulo {
568d4f2939cSRui Paulo }
569d4f2939cSRui Paulo
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)570d4f2939cSRui Paulo static inline void wpas_dbus_signal_certification(struct wpa_supplicant *wpa_s,
571d4f2939cSRui Paulo int depth,
572d4f2939cSRui Paulo const char *subject,
5735b9c547cSRui Paulo const char *altsubject[],
5745b9c547cSRui Paulo int num_altsubject,
575d4f2939cSRui Paulo const char *cert_hash,
576d4f2939cSRui Paulo const struct wpabuf *cert)
577d4f2939cSRui Paulo {
578d4f2939cSRui Paulo }
579d4f2939cSRui Paulo
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)580d4f2939cSRui Paulo static inline void wpas_dbus_signal_preq(struct wpa_supplicant *wpa_s,
581d4f2939cSRui Paulo const u8 *addr, const u8 *dst,
582d4f2939cSRui Paulo const u8 *bssid,
583d4f2939cSRui Paulo const u8 *ie, size_t ie_len,
584d4f2939cSRui Paulo u32 ssi_signal)
585d4f2939cSRui Paulo {
586d4f2939cSRui Paulo }
587d4f2939cSRui Paulo
wpas_dbus_signal_eap_status(struct wpa_supplicant * wpa_s,const char * status,const char * parameter)588d4f2939cSRui Paulo static inline void wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s,
589d4f2939cSRui Paulo const char *status,
590d4f2939cSRui Paulo const char *parameter)
591d4f2939cSRui Paulo {
592d4f2939cSRui Paulo }
593d4f2939cSRui Paulo
wpas_dbus_signal_psk_mismatch(struct wpa_supplicant * wpa_s)594*a90b9d01SCy Schubert static inline void wpas_dbus_signal_psk_mismatch(struct wpa_supplicant *wpa_s)
595*a90b9d01SCy Schubert {
596*a90b9d01SCy Schubert }
597*a90b9d01SCy Schubert
5985b9c547cSRui Paulo static inline
wpas_dbus_signal_sta_authorized(struct wpa_supplicant * wpa_s,const u8 * sta)5995b9c547cSRui Paulo void wpas_dbus_signal_sta_authorized(struct wpa_supplicant *wpa_s,
6005b9c547cSRui Paulo const u8 *sta)
6015b9c547cSRui Paulo {
6025b9c547cSRui Paulo }
6035b9c547cSRui Paulo
6045b9c547cSRui Paulo static inline
wpas_dbus_signal_sta_deauthorized(struct wpa_supplicant * wpa_s,const u8 * sta)6055b9c547cSRui Paulo void wpas_dbus_signal_sta_deauthorized(struct wpa_supplicant *wpa_s,
6065b9c547cSRui Paulo const u8 *sta)
6075b9c547cSRui Paulo {
6085b9c547cSRui Paulo }
6095b9c547cSRui Paulo
610325151a3SRui Paulo 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)611325151a3SRui Paulo void wpas_dbus_signal_p2p_invitation_received(struct wpa_supplicant *wpa_s,
612325151a3SRui Paulo const u8 *sa, const u8 *dev_addr,
613325151a3SRui Paulo const u8 *bssid, int id,
614325151a3SRui Paulo int op_freq)
615325151a3SRui Paulo {
616325151a3SRui Paulo }
617325151a3SRui Paulo
61885732ac8SCy Schubert static inline
wpas_dbus_signal_mesh_group_started(struct wpa_supplicant * wpa_s,struct wpa_ssid * ssid)61985732ac8SCy Schubert void wpas_dbus_signal_mesh_group_started(struct wpa_supplicant *wpa_s,
62085732ac8SCy Schubert struct wpa_ssid *ssid)
62185732ac8SCy Schubert {
62285732ac8SCy Schubert }
62385732ac8SCy Schubert
62485732ac8SCy Schubert static inline
wpas_dbus_signal_mesh_group_removed(struct wpa_supplicant * wpa_s,const u8 * meshid,u8 meshid_len,int reason)62585732ac8SCy Schubert void wpas_dbus_signal_mesh_group_removed(struct wpa_supplicant *wpa_s,
62685732ac8SCy Schubert const u8 *meshid, u8 meshid_len,
62785732ac8SCy Schubert int reason)
62885732ac8SCy Schubert {
62985732ac8SCy Schubert }
63085732ac8SCy Schubert
63185732ac8SCy Schubert static inline
wpas_dbus_signal_mesh_peer_connected(struct wpa_supplicant * wpa_s,const u8 * peer_addr)63285732ac8SCy Schubert void wpas_dbus_signal_mesh_peer_connected(struct wpa_supplicant *wpa_s,
63385732ac8SCy Schubert const u8 *peer_addr)
63485732ac8SCy Schubert {
63585732ac8SCy Schubert }
63685732ac8SCy Schubert
63785732ac8SCy Schubert static inline
wpas_dbus_signal_mesh_peer_disconnected(struct wpa_supplicant * wpa_s,const u8 * peer_addr,int reason)63885732ac8SCy Schubert void wpas_dbus_signal_mesh_peer_disconnected(struct wpa_supplicant *wpa_s,
63985732ac8SCy Schubert const u8 *peer_addr, int reason)
64085732ac8SCy Schubert {
64185732ac8SCy Schubert }
64285732ac8SCy Schubert
64332a95656SCy Schubert static inline
wpas_dbus_signal_interworking_ap_added(struct wpa_supplicant * wpa_s,struct wpa_bss * bss,struct wpa_cred * cred,const char * type,int excluded,int bh,int bss_load,int conn_capab)64432a95656SCy Schubert void wpas_dbus_signal_interworking_ap_added(struct wpa_supplicant *wpa_s,
64532a95656SCy Schubert struct wpa_bss *bss,
64632a95656SCy Schubert struct wpa_cred *cred,
64732a95656SCy Schubert const char *type, int excluded,
64832a95656SCy Schubert int bh, int bss_load,
64932a95656SCy Schubert int conn_capab)
65032a95656SCy Schubert {
65132a95656SCy Schubert }
65232a95656SCy Schubert
65332a95656SCy Schubert static inline
wpas_dbus_signal_interworking_select_done(struct wpa_supplicant * wpa_s)65432a95656SCy Schubert void wpas_dbus_signal_interworking_select_done(struct wpa_supplicant *wpa_s)
65532a95656SCy Schubert {
65632a95656SCy Schubert }
65732a95656SCy Schubert
658*a90b9d01SCy Schubert static inline
wpas_dbus_signal_anqp_query_done(struct wpa_supplicant * wpa_s,const u8 * dst,const char * result)659*a90b9d01SCy Schubert void wpas_dbus_signal_anqp_query_done(struct wpa_supplicant *wpa_s,
660*a90b9d01SCy Schubert const u8 *dst, const char *result)
661*a90b9d01SCy Schubert {
662*a90b9d01SCy Schubert }
663*a90b9d01SCy Schubert
664*a90b9d01SCy Schubert static inline
wpas_dbus_signal_hs20_t_c_acceptance(struct wpa_supplicant * wpa_s,const char * url)665*a90b9d01SCy Schubert void wpas_dbus_signal_hs20_t_c_acceptance(struct wpa_supplicant *wpa_s,
666*a90b9d01SCy Schubert const char *url)
667*a90b9d01SCy Schubert {
668*a90b9d01SCy Schubert }
669*a90b9d01SCy Schubert
670d4f2939cSRui Paulo #endif /* CONFIG_CTRL_IFACE_DBUS_NEW */
671d4f2939cSRui Paulo
672d4f2939cSRui Paulo #endif /* CTRL_IFACE_DBUS_H_NEW */
673