6 #ifndef CTRL_IFACE_DBUS_NEW_H
7 #define CTRL_IFACE_DBUS_NEW_H
16 struct wps_event_fail;
20 WPAS_DBUS_PROP_AP_SCAN,
21 WPAS_DBUS_PROP_SCANNING,
23 WPAS_DBUS_PROP_CURRENT_BSS,
24 WPAS_DBUS_PROP_CURRENT_NETWORK,
25 WPAS_DBUS_PROP_CURRENT_AUTH_MODE,
27 WPAS_DBUS_PROP_DISCONNECT_REASON,
30 enum wpas_dbus_bss_prop {
31 WPAS_DBUS_BSS_PROP_SIGNAL,
32 WPAS_DBUS_BSS_PROP_FREQ,
33 WPAS_DBUS_BSS_PROP_MODE,
34 WPAS_DBUS_BSS_PROP_PRIVACY,
35 WPAS_DBUS_BSS_PROP_RATES,
36 WPAS_DBUS_BSS_PROP_WPA,
37 WPAS_DBUS_BSS_PROP_RSN,
38 WPAS_DBUS_BSS_PROP_WPS,
39 WPAS_DBUS_BSS_PROP_IES,
40 WPAS_DBUS_BSS_PROP_AGE,
43 #define WPAS_DBUS_OBJECT_PATH_MAX 150
45 #define WPAS_DBUS_NEW_SERVICE "fi.w1.wpa_supplicant1"
46 #define WPAS_DBUS_NEW_PATH "/fi/w1/wpa_supplicant1"
47 #define WPAS_DBUS_NEW_INTERFACE "fi.w1.wpa_supplicant1"
49 #define WPAS_DBUS_NEW_PATH_INTERFACES WPAS_DBUS_NEW_PATH "/Interfaces"
50 #define WPAS_DBUS_NEW_IFACE_INTERFACE WPAS_DBUS_NEW_INTERFACE ".Interface"
51 #define WPAS_DBUS_NEW_IFACE_WPS WPAS_DBUS_NEW_IFACE_INTERFACE ".WPS"
53 #define WPAS_DBUS_NEW_NETWORKS_PART "Networks"
54 #define WPAS_DBUS_NEW_IFACE_NETWORK WPAS_DBUS_NEW_INTERFACE ".Network"
56 #define WPAS_DBUS_NEW_BSSIDS_PART "BSSs"
57 #define WPAS_DBUS_NEW_IFACE_BSS WPAS_DBUS_NEW_INTERFACE ".BSS"
59 #define WPAS_DBUS_NEW_IFACE_P2PDEVICE \
60 WPAS_DBUS_NEW_IFACE_INTERFACE ".P2PDevice"
65 #define WPAS_DBUS_NEW_P2P_GROUPS_PART "Groups"
66 #define WPAS_DBUS_NEW_IFACE_P2P_GROUP WPAS_DBUS_NEW_INTERFACE ".Group"
72 #define WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART "PersistentGroups"
73 #define WPAS_DBUS_NEW_IFACE_PERSISTENT_GROUP \
74 WPAS_DBUS_NEW_INTERFACE ".PersistentGroup"
76 #define WPAS_DBUS_NEW_P2P_PEERS_PART "Peers"
77 #define WPAS_DBUS_NEW_IFACE_P2P_PEER WPAS_DBUS_NEW_INTERFACE ".Peer"
80 #define WPAS_DBUS_ERROR_UNKNOWN_ERROR \
81 WPAS_DBUS_NEW_INTERFACE ".UnknownError"
82 #define WPAS_DBUS_ERROR_INVALID_ARGS \
83 WPAS_DBUS_NEW_INTERFACE ".InvalidArgs"
85 #define WPAS_DBUS_ERROR_IFACE_EXISTS \
86 WPAS_DBUS_NEW_INTERFACE ".InterfaceExists"
87 #define WPAS_DBUS_ERROR_IFACE_DISABLED \
88 WPAS_DBUS_NEW_INTERFACE ".InterfaceDisabled"
89 #define WPAS_DBUS_ERROR_IFACE_UNKNOWN \
90 WPAS_DBUS_NEW_INTERFACE ".InterfaceUnknown"
92 #define WPAS_DBUS_ERROR_NOT_CONNECTED \
93 WPAS_DBUS_NEW_INTERFACE ".NotConnected"
94 #define WPAS_DBUS_ERROR_NETWORK_UNKNOWN \
95 WPAS_DBUS_NEW_INTERFACE ".NetworkUnknown"
97 #define WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNAVAILABLE \
98 WPAS_DBUS_NEW_INTERFACE ".ConnectChannelUnavailable"
99 #define WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNSUPPORTED \
100 WPAS_DBUS_NEW_INTERFACE ".ConnectChannelUnsupported"
101 #define WPAS_DBUS_ERROR_CONNECT_UNSPECIFIED_ERROR \
102 WPAS_DBUS_NEW_INTERFACE ".ConnectUnspecifiedError"
104 #define WPAS_DBUS_ERROR_BLOB_EXISTS \
105 WPAS_DBUS_NEW_INTERFACE ".BlobExists"
106 #define WPAS_DBUS_ERROR_BLOB_UNKNOWN \
107 WPAS_DBUS_NEW_INTERFACE ".BlobUnknown"
109 #define WPAS_DBUS_ERROR_SUBSCRIPTION_IN_USE \
110 WPAS_DBUS_NEW_INTERFACE ".SubscriptionInUse"
111 #define WPAS_DBUS_ERROR_NO_SUBSCRIPTION \
112 WPAS_DBUS_NEW_INTERFACE ".NoSubscription"
113 #define WPAS_DBUS_ERROR_SUBSCRIPTION_EPERM \
114 WPAS_DBUS_NEW_INTERFACE ".SubscriptionNotYou"
117 #define WPAS_DBUS_ERROR_IFACE_SCAN_ERROR \
118 WPAS_DBUS_NEW_IFACE_INTERFACE ".ScanError"
124 #ifdef CONFIG_CTRL_IFACE_DBUS_NEW
132 enum wpas_dbus_prop property);
134 enum wpas_dbus_bss_prop property,
142 const char *default_text);
147 struct wps_event_m2d *m2d);
148 void wpas_dbus_signal_wps_event_fail(
struct wpa_supplicant *wpa_s,
149 struct wps_event_fail *fail);
150 void wpas_dbus_signal_wps_event_success(
struct wpa_supplicant *wpa_s);
151 void wpas_dbus_signal_wps_event_pbc_overlap(
struct wpa_supplicant *wpa_s);
156 u8 bssid[ETH_ALEN],
unsigned int id);
158 u8 bssid[ETH_ALEN],
unsigned int id);
180 const u8 *dev_addr,
int request,
181 enum p2p_prov_disc_status status,
183 unsigned int generated_pin);
185 const u8 *src, u16 dev_passwd_id,
189 int client,
int network_id);
203 int status,
const u8 *bssid);
207 int freq,
const u8 *sa, u8 dialog_token,
208 u16 update_indic,
const u8 *tlvs,
211 const u8 *sa, u16 update_indic,
212 const u8 *tlvs,
size_t tlvs_len);
216 struct wps_event_fail *fail);
218 int depth,
const char *subject,
219 const char *altsubject[],
221 const char *cert_hash,
222 const struct wpabuf *cert);
224 const u8 *addr,
const u8 *dst,
const u8 *bssid,
225 const u8 *ie,
size_t ie_len, u32 ssi_signal);
227 const char *status,
const char *parameter);
233 const u8 *sa,
const u8 *dev_addr,
234 const u8 *bssid,
int id,
249 #define wpas_dbus_signal_state_changed(w, n, o) do { } while (0)
252 enum wpas_dbus_prop property)
283 static inline void wpas_dbus_signal_wps_cred(
struct wpa_supplicant *wpa_s,
288 static inline void wpas_dbus_signal_wps_event_m2d(
struct wpa_supplicant *wpa_s,
289 struct wps_event_m2d *m2d)
293 static inline void wpas_dbus_signal_wps_event_fail(
298 static inline void wpas_dbus_signal_wps_event_success(
303 static inline void wpas_dbus_signal_wps_event_pbc_overlap(
321 u8 bssid[ETH_ALEN],
unsigned int id)
327 u8 bssid[ETH_ALEN],
unsigned int id)
383 const u8 *dev_addr,
int request,
384 enum p2p_prov_disc_status status,
386 unsigned int generated_pin)
400 int client,
int network_id)
448 const u8 *p2p_if_addr)
454 const u8 *sa, u8 dialog_token, u16 update_indic,
455 const u8 *tlvs,
size_t tlvs_len)
461 const u8 *sa, u16 update_indic,
462 const u8 *tlvs,
size_t tlvs_len)
467 wpas_dbus_unregister_p2p_groupmember(
struct wpa_supplicant *wpa_s,
468 const u8 *p2p_if_addr)
503 struct wps_event_fail *fail)
507 static inline void wpas_dbus_signal_certification(
struct wpa_supplicant *wpa_s,
510 const char *altsubject[],
512 const char *cert_hash,
513 const struct wpabuf *cert)
517 static inline void wpas_dbus_signal_preq(
struct wpa_supplicant *wpa_s,
518 const u8 *addr,
const u8 *dst,
520 const u8 *ie,
size_t ie_len,
525 static inline void wpas_dbus_signal_eap_status(
struct wpa_supplicant *wpa_s,
527 const char *parameter)
545 const u8 *sa,
const u8 *dev_addr,
546 const u8 *bssid,
int id,
void wpas_dbus_signal_sta_authorized(struct wpa_supplicant *wpa_s, const u8 *sta)
Send a STA authorized signal.
Definition: dbus_new.c:917
void wpas_dbus_signal_blob_removed(struct wpa_supplicant *wpa_s, const char *name)
Send a blob removed signal.
Definition: dbus_new.c:345
int wpas_dbus_register_persistent_group(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
Register a configured(saved)
Definition: dbus_new.c:3987
void wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s, int success)
send scan done signal
Definition: dbus_new.c:190
int wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s, u8 bssid[ETH_ALEN], unsigned int id)
Unregister a scanned BSS from dbus.
Definition: dbus_new.c:2520
void wpas_dbus_ctrl_iface_deinit(struct wpas_dbus_priv *iface)
Deinitialize dbus ctrl interface for wpa_supplicant.
Definition: dbus_new.c:2284
void wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant *wpa_s, struct wps_event_fail *fail)
Signals WpsFailed event.
Definition: dbus_new.c:1823
void wpas_dbus_signal_blob_added(struct wpa_supplicant *wpa_s, const char *name)
Send a blob added signal.
Definition: dbus_new.c:331
void wpas_dbus_signal_p2p_find_stopped(struct wpa_supplicant *wpa_s)
Send P2P Find stopped signal.
Definition: dbus_new.c:3756
int wpas_dbus_register_bss(struct wpa_supplicant *wpa_s, u8 bssid[ETH_ALEN], unsigned int id)
Register a scanned BSS with dbus.
Definition: dbus_new.c:2561
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)
Signals various PD events.
Definition: dbus_new.c:1009
void wpas_dbus_signal_peer_device_lost(struct wpa_supplicant *wpa_s, const u8 *dev_addr)
Send a peer lost signal.
Definition: dbus_new.c:3636
WPA Supplicant - Common definitions.
void wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant *wpa_s, const u8 *src, u16 dev_passwd_id, u8 go_intent)
Signal P2P GO Negotiation Request RX.
Definition: dbus_new.c:1117
void wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s, const u8 *peer_addr)
Definition: dbus_new.c:1483
void 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)
Emit InvitationReceived signal.
Definition: dbus_new.c:1910
Internal, global data for all wpa_supplicant interfaces.
Definition: wpa_supplicant_i.h:273
void wpas_dbus_signal_debug_show_keys_changed(struct wpa_global *global)
Signals change of debug param.
Definition: dbus_new.c:2118
Wi-Fi Direct - P2P module.
void wpas_dbus_signal_p2p_invitation_result(struct wpa_supplicant *wpa_s, int status, const u8 *bssid)
Emit InvitationResult signal.
Definition: dbus_new.c:1433
int wpas_dbus_unregister_persistent_group(struct wpa_supplicant *wpa_s, int nid)
Unregister a persistent_group.
Definition: dbus_new.c:4078
void wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant *wpa_s, const u8 *peer_addr)
Definition: dbus_new.c:1540
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)
Definition: dbus_new.c:1671
void wpas_dbus_signal_p2p_group_formation_failure(struct wpa_supplicant *wpa_s, const char *reason)
Signals GroupFormationFailure event.
Definition: dbus_new.c:1872
void wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant *wpa_s, struct p2p_go_neg_results *res)
Emit GONegotiation Success/Failure signal.
Definition: dbus_new.c:1318
void wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s, const struct wpa_ssid *ssid, int client, int network_id)
Signals P2P group has started. Emitted when a group is successfully started irrespective of the role ...
Definition: dbus_new.c:1259
void wpas_dbus_signal_peer_groups_changed(struct wpa_supplicant *wpa_s, const u8 *dev_addr)
Send peer group change property signal.
Definition: dbus_new.c:3786
int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s, int nid)
Unregister a configured network from dbus.
Definition: dbus_new.c:2409
void wpas_dbus_signal_sta_deauthorized(struct wpa_supplicant *wpa_s, const u8 *sta)
Send a STA deauthorized signal.
Definition: dbus_new.c:931
void wpas_dbus_signal_network_request(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, enum wpa_ctrl_req_type rtype, const char *default_txt)
Indicate that additional information (EAP password, etc.) is required to complete the association to ...
Definition: dbus_new.c:452
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)
Definition: dbus_new.c:1602
int wpas_dbus_register_network(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
Register a configured network with dbus.
Definition: dbus_new.c:2334
P2P Group Owner Negotiation results.
Definition: p2p.h:85
int wpas_dbus_ctrl_iface_init(struct wpas_dbus_priv *priv)
Initialize dbus control interface.
Definition: dbus_new.c:2245
wpa_ctrl_req_type
Control interface request types.
Definition: defs.h:315
Definition: dbus_common_i.h:12
void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s, enum wpas_dbus_prop property)
Signals change of property.
Definition: dbus_new.c:1967
int wpas_dbus_register_peer(struct wpa_supplicant *wpa_s, const u8 *dev_addr)
Register a discovered peer object with dbus.
Definition: dbus_new.c:3652
WPS Credential.
Definition: wps.h:44
Internal data for wpa_supplicant interface.
Definition: wpa_supplicant_i.h:451
void wpas_dbus_bss_signal_prop_changed(struct wpa_supplicant *wpa_s, enum wpas_dbus_bss_prop property, unsigned int id)
Signals change of BSS property.
Definition: dbus_new.c:2028
void wpas_dbus_signal_network_selected(struct wpa_supplicant *wpa_s, int id)
Send a network selected signal.
Definition: dbus_new.c:436
void wpas_dbus_signal_debug_timestamp_changed(struct wpa_global *global)
Signals change of debug param.
Definition: dbus_new.c:2104
void wpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s, const struct wpa_ssid *ssid)
Unregister a p2p group object from dbus.
Definition: dbus_new.c:3930
void wpas_dbus_signal_peer_device_found(struct wpa_supplicant *wpa_s, const u8 *dev_addr)
Send a peer found signal.
Definition: dbus_new.c:3621
void wpas_dbus_signal_debug_level_changed(struct wpa_global *global)
Signals change of debug param.
Definition: dbus_new.c:2090
void wpas_dbus_signal_network_enabled_changed(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
Signals Enabled property changes.
Definition: dbus_new.c:504
int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s)
Unregister the interface from D-Bus.
Definition: dbus_new.c:3453
Network configuration data.
Definition: config_ssid.h:52
void wpas_dbus_register_p2p_group(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
Register a p2p group object with dbus.
Definition: dbus_new.c:3869
void wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant *wpa_s, const char *role)
Signals P2P group was removed.
Definition: dbus_new.c:946
int wpas_dbus_unregister_peer(struct wpa_supplicant *wpa_s, const u8 *dev_addr)
Unregister a peer object with dbus.
Definition: dbus_new.c:3719
int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s)
Register an interface with D-Bus.
Definition: dbus_new.c:3398