2009-11-09 22:51:59 +01:00
|
|
|
/*
|
|
|
|
* WPA Supplicant / dbus-based control interface
|
|
|
|
* Copyright (c) 2006, Dan Williams <dcbw@redhat.com> and Red Hat, Inc.
|
2010-01-09 10:40:15 +01:00
|
|
|
* Copyright (c) 2009-2010, Witold Sowa <witold.sowa@gmail.com>
|
2009-11-09 22:51:59 +01:00
|
|
|
*
|
2012-07-02 11:04:38 +02:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2009-11-09 22:51:59 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CTRL_IFACE_DBUS_NEW_H
|
|
|
|
#define CTRL_IFACE_DBUS_NEW_H
|
|
|
|
|
2011-11-02 09:48:26 +01:00
|
|
|
#include "common/defs.h"
|
2011-06-13 00:08:19 +02:00
|
|
|
#include "p2p/p2p.h"
|
|
|
|
|
2009-11-09 22:51:59 +01:00
|
|
|
struct wpa_global;
|
|
|
|
struct wpa_supplicant;
|
|
|
|
struct wpa_ssid;
|
2021-12-08 08:45:32 +01:00
|
|
|
struct wpa_cred;
|
|
|
|
struct wpa_bss;
|
2009-11-09 22:51:59 +01:00
|
|
|
struct wps_event_m2d;
|
|
|
|
struct wps_event_fail;
|
|
|
|
struct wps_credential;
|
|
|
|
|
|
|
|
enum wpas_dbus_prop {
|
|
|
|
WPAS_DBUS_PROP_AP_SCAN,
|
|
|
|
WPAS_DBUS_PROP_SCANNING,
|
2010-01-04 15:33:44 +01:00
|
|
|
WPAS_DBUS_PROP_STATE,
|
2009-11-09 22:51:59 +01:00
|
|
|
WPAS_DBUS_PROP_CURRENT_BSS,
|
|
|
|
WPAS_DBUS_PROP_CURRENT_NETWORK,
|
2011-03-15 12:54:59 +01:00
|
|
|
WPAS_DBUS_PROP_CURRENT_AUTH_MODE,
|
2010-12-17 14:56:01 +01:00
|
|
|
WPAS_DBUS_PROP_BSSS,
|
2018-10-07 14:31:51 +02:00
|
|
|
WPAS_DBUS_PROP_STATIONS,
|
2012-06-30 15:43:50 +02:00
|
|
|
WPAS_DBUS_PROP_DISCONNECT_REASON,
|
2018-07-06 01:29:09 +02:00
|
|
|
WPAS_DBUS_PROP_AUTH_STATUS_CODE,
|
2016-03-03 19:48:09 +01:00
|
|
|
WPAS_DBUS_PROP_ASSOC_STATUS_CODE,
|
2018-06-21 01:42:45 +02:00
|
|
|
WPAS_DBUS_PROP_ROAM_TIME,
|
|
|
|
WPAS_DBUS_PROP_ROAM_COMPLETE,
|
|
|
|
WPAS_DBUS_PROP_SESSION_LENGTH,
|
2018-05-04 20:16:18 +02:00
|
|
|
WPAS_DBUS_PROP_BSS_TM_STATUS,
|
2022-12-01 16:43:44 +01:00
|
|
|
WPAS_DBUS_PROP_MAC_ADDRESS,
|
2009-11-09 22:51:59 +01:00
|
|
|
};
|
|
|
|
|
2010-01-06 19:03:01 +01:00
|
|
|
enum wpas_dbus_bss_prop {
|
|
|
|
WPAS_DBUS_BSS_PROP_SIGNAL,
|
|
|
|
WPAS_DBUS_BSS_PROP_FREQ,
|
|
|
|
WPAS_DBUS_BSS_PROP_MODE,
|
|
|
|
WPAS_DBUS_BSS_PROP_PRIVACY,
|
|
|
|
WPAS_DBUS_BSS_PROP_RATES,
|
2010-01-16 15:37:37 +01:00
|
|
|
WPAS_DBUS_BSS_PROP_WPA,
|
|
|
|
WPAS_DBUS_BSS_PROP_RSN,
|
2012-11-03 17:37:20 +01:00
|
|
|
WPAS_DBUS_BSS_PROP_WPS,
|
2010-01-16 15:37:37 +01:00
|
|
|
WPAS_DBUS_BSS_PROP_IES,
|
2014-09-04 20:10:54 +02:00
|
|
|
WPAS_DBUS_BSS_PROP_AGE,
|
2010-01-06 19:03:01 +01:00
|
|
|
};
|
|
|
|
|
2018-10-07 14:31:51 +02:00
|
|
|
enum wpas_dbus_sta_prop {
|
|
|
|
WPAS_DBUS_STA_PROP_ADDRESS,
|
|
|
|
};
|
|
|
|
|
2009-11-09 22:51:59 +01:00
|
|
|
#define WPAS_DBUS_OBJECT_PATH_MAX 150
|
|
|
|
|
|
|
|
#define WPAS_DBUS_NEW_SERVICE "fi.w1.wpa_supplicant1"
|
|
|
|
#define WPAS_DBUS_NEW_PATH "/fi/w1/wpa_supplicant1"
|
|
|
|
#define WPAS_DBUS_NEW_INTERFACE "fi.w1.wpa_supplicant1"
|
|
|
|
|
|
|
|
#define WPAS_DBUS_NEW_PATH_INTERFACES WPAS_DBUS_NEW_PATH "/Interfaces"
|
|
|
|
#define WPAS_DBUS_NEW_IFACE_INTERFACE WPAS_DBUS_NEW_INTERFACE ".Interface"
|
|
|
|
#define WPAS_DBUS_NEW_IFACE_WPS WPAS_DBUS_NEW_IFACE_INTERFACE ".WPS"
|
|
|
|
|
|
|
|
#define WPAS_DBUS_NEW_NETWORKS_PART "Networks"
|
2010-01-09 10:40:15 +01:00
|
|
|
#define WPAS_DBUS_NEW_IFACE_NETWORK WPAS_DBUS_NEW_INTERFACE ".Network"
|
2009-11-09 22:51:59 +01:00
|
|
|
|
|
|
|
#define WPAS_DBUS_NEW_BSSIDS_PART "BSSs"
|
2010-01-09 10:40:15 +01:00
|
|
|
#define WPAS_DBUS_NEW_IFACE_BSS WPAS_DBUS_NEW_INTERFACE ".BSS"
|
2009-11-09 22:51:59 +01:00
|
|
|
|
2018-10-07 14:31:51 +02:00
|
|
|
#define WPAS_DBUS_NEW_STAS_PART "Stations"
|
|
|
|
#define WPAS_DBUS_NEW_IFACE_STA WPAS_DBUS_NEW_INTERFACE ".Station"
|
|
|
|
|
2011-06-13 00:08:19 +02:00
|
|
|
#define WPAS_DBUS_NEW_IFACE_P2PDEVICE \
|
|
|
|
WPAS_DBUS_NEW_IFACE_INTERFACE ".P2PDevice"
|
|
|
|
|
2017-07-18 09:07:51 +02:00
|
|
|
#define WPAS_DBUS_NEW_IFACE_MESH WPAS_DBUS_NEW_IFACE_INTERFACE ".Mesh"
|
|
|
|
|
2011-06-13 00:08:19 +02:00
|
|
|
/*
|
|
|
|
* Groups correspond to P2P groups where this device is a GO (owner)
|
|
|
|
*/
|
|
|
|
#define WPAS_DBUS_NEW_P2P_GROUPS_PART "Groups"
|
|
|
|
#define WPAS_DBUS_NEW_IFACE_P2P_GROUP WPAS_DBUS_NEW_INTERFACE ".Group"
|
|
|
|
|
2011-06-23 20:25:13 +02:00
|
|
|
/*
|
|
|
|
* Different dbus object for persistent groups so they do not get confused
|
|
|
|
* with regular (configured) network objects.
|
|
|
|
*/
|
|
|
|
#define WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART "PersistentGroups"
|
|
|
|
#define WPAS_DBUS_NEW_IFACE_PERSISTENT_GROUP \
|
|
|
|
WPAS_DBUS_NEW_INTERFACE ".PersistentGroup"
|
|
|
|
|
2011-06-13 00:08:19 +02:00
|
|
|
#define WPAS_DBUS_NEW_P2P_PEERS_PART "Peers"
|
|
|
|
#define WPAS_DBUS_NEW_IFACE_P2P_PEER WPAS_DBUS_NEW_INTERFACE ".Peer"
|
|
|
|
|
2021-12-08 08:45:31 +01:00
|
|
|
#define WPAS_DBUS_NEW_CREDENTIALS_PART "Credentials"
|
|
|
|
#define WPAS_DBUS_NEW_IFACE_CREDENTIAL WPAS_DBUS_NEW_INTERFACE ".Credential"
|
|
|
|
|
2014-04-10 00:10:29 +02:00
|
|
|
/* Top-level Errors */
|
2009-11-09 22:51:59 +01:00
|
|
|
#define WPAS_DBUS_ERROR_UNKNOWN_ERROR \
|
|
|
|
WPAS_DBUS_NEW_INTERFACE ".UnknownError"
|
|
|
|
#define WPAS_DBUS_ERROR_INVALID_ARGS \
|
|
|
|
WPAS_DBUS_NEW_INTERFACE ".InvalidArgs"
|
|
|
|
|
|
|
|
#define WPAS_DBUS_ERROR_IFACE_EXISTS \
|
|
|
|
WPAS_DBUS_NEW_INTERFACE ".InterfaceExists"
|
2014-04-04 15:45:26 +02:00
|
|
|
#define WPAS_DBUS_ERROR_IFACE_DISABLED \
|
|
|
|
WPAS_DBUS_NEW_INTERFACE ".InterfaceDisabled"
|
2009-11-09 22:51:59 +01:00
|
|
|
#define WPAS_DBUS_ERROR_IFACE_UNKNOWN \
|
|
|
|
WPAS_DBUS_NEW_INTERFACE ".InterfaceUnknown"
|
|
|
|
|
|
|
|
#define WPAS_DBUS_ERROR_NOT_CONNECTED \
|
2010-01-09 10:40:15 +01:00
|
|
|
WPAS_DBUS_NEW_INTERFACE ".NotConnected"
|
2009-11-09 22:51:59 +01:00
|
|
|
#define WPAS_DBUS_ERROR_NETWORK_UNKNOWN \
|
2010-01-09 10:40:15 +01:00
|
|
|
WPAS_DBUS_NEW_INTERFACE ".NetworkUnknown"
|
2009-11-09 22:51:59 +01:00
|
|
|
|
2011-06-13 00:08:19 +02:00
|
|
|
#define WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNAVAILABLE \
|
|
|
|
WPAS_DBUS_NEW_INTERFACE ".ConnectChannelUnavailable"
|
|
|
|
#define WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNSUPPORTED \
|
|
|
|
WPAS_DBUS_NEW_INTERFACE ".ConnectChannelUnsupported"
|
|
|
|
#define WPAS_DBUS_ERROR_CONNECT_UNSPECIFIED_ERROR \
|
|
|
|
WPAS_DBUS_NEW_INTERFACE ".ConnectUnspecifiedError"
|
|
|
|
|
2009-11-09 22:51:59 +01:00
|
|
|
#define WPAS_DBUS_ERROR_BLOB_EXISTS \
|
2010-01-09 10:40:15 +01:00
|
|
|
WPAS_DBUS_NEW_INTERFACE ".BlobExists"
|
2009-11-09 22:51:59 +01:00
|
|
|
#define WPAS_DBUS_ERROR_BLOB_UNKNOWN \
|
2010-01-09 10:40:15 +01:00
|
|
|
WPAS_DBUS_NEW_INTERFACE ".BlobUnknown"
|
2009-11-09 22:51:59 +01:00
|
|
|
|
2012-04-01 20:13:38 +02:00
|
|
|
#define WPAS_DBUS_ERROR_SUBSCRIPTION_IN_USE \
|
|
|
|
WPAS_DBUS_NEW_INTERFACE ".SubscriptionInUse"
|
|
|
|
#define WPAS_DBUS_ERROR_NO_SUBSCRIPTION \
|
|
|
|
WPAS_DBUS_NEW_INTERFACE ".NoSubscription"
|
|
|
|
#define WPAS_DBUS_ERROR_SUBSCRIPTION_EPERM \
|
|
|
|
WPAS_DBUS_NEW_INTERFACE ".SubscriptionNotYou"
|
|
|
|
|
2014-04-10 00:10:29 +02:00
|
|
|
/* Interface-level errors */
|
|
|
|
#define WPAS_DBUS_ERROR_IFACE_SCAN_ERROR \
|
|
|
|
WPAS_DBUS_NEW_IFACE_INTERFACE ".ScanError"
|
2012-04-01 20:13:38 +02:00
|
|
|
|
|
|
|
void wpas_dbus_subscribe_noc(struct wpas_dbus_priv *priv);
|
|
|
|
void wpas_dbus_unsubscribe_noc(struct wpas_dbus_priv *priv);
|
|
|
|
|
2010-01-01 17:45:29 +01:00
|
|
|
|
|
|
|
#ifdef CONFIG_CTRL_IFACE_DBUS_NEW
|
|
|
|
|
2009-12-30 23:15:56 +01:00
|
|
|
int wpas_dbus_ctrl_iface_init(struct wpas_dbus_priv *priv);
|
|
|
|
void wpas_dbus_ctrl_iface_deinit(struct wpas_dbus_priv *iface);
|
|
|
|
|
2010-01-01 17:45:29 +01:00
|
|
|
int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s);
|
|
|
|
int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s);
|
|
|
|
void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s,
|
|
|
|
enum wpas_dbus_prop property);
|
2010-01-06 19:03:01 +01:00
|
|
|
void wpas_dbus_bss_signal_prop_changed(struct wpa_supplicant *wpa_s,
|
|
|
|
enum wpas_dbus_bss_prop property,
|
|
|
|
unsigned int id);
|
2010-01-01 17:45:29 +01:00
|
|
|
void wpas_dbus_signal_network_enabled_changed(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_ssid *ssid);
|
|
|
|
void wpas_dbus_signal_network_selected(struct wpa_supplicant *wpa_s, int id);
|
2011-10-24 18:03:04 +02:00
|
|
|
void wpas_dbus_signal_network_request(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_ssid *ssid,
|
|
|
|
enum wpa_ctrl_req_type rtype,
|
|
|
|
const char *default_text);
|
2010-01-01 17:45:29 +01:00
|
|
|
void wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s, int success);
|
|
|
|
void wpas_dbus_signal_wps_cred(struct wpa_supplicant *wpa_s,
|
|
|
|
const struct wps_credential *cred);
|
|
|
|
void wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wps_event_m2d *m2d);
|
|
|
|
void wpas_dbus_signal_wps_event_fail(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wps_event_fail *fail);
|
|
|
|
void wpas_dbus_signal_wps_event_success(struct wpa_supplicant *wpa_s);
|
2015-06-05 14:46:51 +02:00
|
|
|
void wpas_dbus_signal_wps_event_pbc_overlap(struct wpa_supplicant *wpa_s);
|
2010-01-01 17:45:29 +01:00
|
|
|
int wpas_dbus_register_network(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_ssid *ssid);
|
|
|
|
int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s, int nid);
|
|
|
|
int wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s,
|
|
|
|
u8 bssid[ETH_ALEN], unsigned int id);
|
|
|
|
int wpas_dbus_register_bss(struct wpa_supplicant *wpa_s,
|
|
|
|
u8 bssid[ETH_ALEN], unsigned int id);
|
2018-10-07 14:31:51 +02:00
|
|
|
int wpas_dbus_unregister_sta(struct wpa_supplicant *wpa_s, const u8 *sta);
|
|
|
|
int wpas_dbus_register_sta(struct wpa_supplicant *wpa_s, const u8 *sta);
|
2010-01-01 17:45:29 +01:00
|
|
|
void wpas_dbus_signal_blob_added(struct wpa_supplicant *wpa_s,
|
|
|
|
const char *name);
|
|
|
|
void wpas_dbus_signal_blob_removed(struct wpa_supplicant *wpa_s,
|
|
|
|
const char *name);
|
|
|
|
void wpas_dbus_signal_debug_level_changed(struct wpa_global *global);
|
|
|
|
void wpas_dbus_signal_debug_timestamp_changed(struct wpa_global *global);
|
|
|
|
void wpas_dbus_signal_debug_show_keys_changed(struct wpa_global *global);
|
|
|
|
|
2011-06-13 00:08:19 +02:00
|
|
|
int wpas_dbus_register_peer(struct wpa_supplicant *wpa_s, const u8 *dev_addr);
|
2015-05-13 14:03:48 +02:00
|
|
|
void wpas_dbus_signal_p2p_find_stopped(struct wpa_supplicant *wpa_s);
|
2011-06-13 00:08:19 +02:00
|
|
|
void wpas_dbus_signal_peer_device_found(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *dev_addr);
|
|
|
|
int wpas_dbus_unregister_peer(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *dev_addr);
|
|
|
|
void wpas_dbus_signal_peer_device_lost(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *dev_addr);
|
2014-06-02 16:42:08 +02:00
|
|
|
void wpas_dbus_signal_peer_groups_changed(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *dev_addr);
|
2011-06-13 00:08:19 +02:00
|
|
|
void wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant *wpa_s,
|
|
|
|
const char *role);
|
|
|
|
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);
|
|
|
|
void wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
|
2015-06-02 07:47:33 +02:00
|
|
|
const u8 *src, u16 dev_passwd_id,
|
|
|
|
u8 go_intent);
|
2011-06-13 00:08:19 +02:00
|
|
|
void wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s,
|
2016-11-02 11:20:28 +01:00
|
|
|
int client, int persistent,
|
|
|
|
const u8 *ip);
|
2015-08-20 12:58:33 +02:00
|
|
|
void wpas_dbus_signal_p2p_group_formation_failure(struct wpa_supplicant *wpa_s,
|
|
|
|
const char *reason);
|
2011-06-13 00:08:19 +02:00
|
|
|
void wpas_dbus_register_p2p_group(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_ssid *ssid);
|
2011-12-18 15:52:33 +01:00
|
|
|
void wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant *wpa_s,
|
|
|
|
struct p2p_go_neg_results *res);
|
2011-06-13 00:08:19 +02:00
|
|
|
void wpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s,
|
|
|
|
const struct wpa_ssid *ssid);
|
2011-06-23 20:25:13 +02:00
|
|
|
int wpas_dbus_register_persistent_group(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_ssid *ssid);
|
|
|
|
int wpas_dbus_unregister_persistent_group(struct wpa_supplicant *wpa_s,
|
|
|
|
int nid);
|
2011-06-13 00:08:19 +02:00
|
|
|
void wpas_dbus_signal_p2p_invitation_result(struct wpa_supplicant *wpa_s,
|
|
|
|
int status, const u8 *bssid);
|
|
|
|
void wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *member);
|
|
|
|
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);
|
|
|
|
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);
|
|
|
|
void wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *member);
|
2011-06-25 10:47:04 +02:00
|
|
|
void wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wps_event_fail *fail);
|
2011-07-05 11:22:32 +02:00
|
|
|
void wpas_dbus_signal_certification(struct wpa_supplicant *wpa_s,
|
|
|
|
int depth, const char *subject,
|
2015-01-14 12:29:40 +01:00
|
|
|
const char *altsubject[],
|
|
|
|
int num_altsubject,
|
2011-07-05 11:22:32 +02:00
|
|
|
const char *cert_hash,
|
|
|
|
const struct wpabuf *cert);
|
2012-04-01 20:13:38 +02:00
|
|
|
void 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);
|
2012-06-04 20:10:01 +02:00
|
|
|
void wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s,
|
|
|
|
const char *status, const char *parameter);
|
2013-06-22 11:09:09 +02:00
|
|
|
void wpas_dbus_signal_sta_authorized(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *sta);
|
|
|
|
void wpas_dbus_signal_sta_deauthorized(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *sta);
|
2015-06-18 06:16:34 +02:00
|
|
|
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);
|
2017-07-18 09:07:51 +02:00
|
|
|
void wpas_dbus_signal_mesh_group_started(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_ssid *ssid);
|
2017-07-18 09:07:53 +02:00
|
|
|
void wpas_dbus_signal_mesh_group_removed(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *meshid, u8 meshid_len,
|
|
|
|
int reason);
|
2017-07-18 09:07:54 +02:00
|
|
|
void wpas_dbus_signal_mesh_peer_connected(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *peer_addr);
|
2017-07-18 09:07:55 +02:00
|
|
|
void wpas_dbus_signal_mesh_peer_disconnected(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *peer_addr, int reason);
|
2021-12-08 08:45:32 +01:00
|
|
|
void 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);
|
|
|
|
void wpas_dbus_signal_interworking_select_done(struct wpa_supplicant *wpa_s);
|
2011-06-13 00:08:19 +02:00
|
|
|
|
2009-11-09 22:51:59 +01:00
|
|
|
#else /* CONFIG_CTRL_IFACE_DBUS_NEW */
|
|
|
|
|
2010-01-01 17:45:29 +01:00
|
|
|
static inline int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#define wpas_dbus_signal_state_changed(w, n, o) do { } while (0)
|
|
|
|
|
|
|
|
static inline void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s,
|
|
|
|
enum wpas_dbus_prop property)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-01-06 19:03:01 +01:00
|
|
|
static inline void wpas_dbus_bss_signal_prop_changed(
|
|
|
|
struct wpa_supplicant *wpa_s, enum wpas_dbus_bss_prop property,
|
|
|
|
unsigned int id)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-01-01 17:45:29 +01:00
|
|
|
static inline void wpas_dbus_signal_network_enabled_changed(
|
|
|
|
struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void wpas_dbus_signal_network_selected(
|
|
|
|
struct wpa_supplicant *wpa_s, int id)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-10-24 18:03:04 +02:00
|
|
|
static inline 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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-01-01 17:45:29 +01:00
|
|
|
static inline void wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s,
|
|
|
|
int success)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void wpas_dbus_signal_wps_cred(struct wpa_supplicant *wpa_s,
|
|
|
|
const struct wps_credential *cred)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wps_event_m2d *m2d)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void wpas_dbus_signal_wps_event_fail(
|
|
|
|
struct wpa_supplicant *wpa_s, struct wps_event_fail *fail)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void wpas_dbus_signal_wps_event_success(
|
|
|
|
struct wpa_supplicant *wpa_s)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-06-05 14:46:51 +02:00
|
|
|
static inline void wpas_dbus_signal_wps_event_pbc_overlap(
|
|
|
|
struct wpa_supplicant *wpa_s)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-01-01 17:45:29 +01:00
|
|
|
static inline int wpas_dbus_register_network(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_ssid *ssid)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s,
|
|
|
|
int nid)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s,
|
|
|
|
u8 bssid[ETH_ALEN], unsigned int id)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int wpas_dbus_register_bss(struct wpa_supplicant *wpa_s,
|
|
|
|
u8 bssid[ETH_ALEN], unsigned int id)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-10-07 14:31:51 +02:00
|
|
|
static inline int wpas_dbus_unregister_sta(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *sta)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int wpas_dbus_register_sta(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *sta)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2010-01-01 17:45:29 +01:00
|
|
|
static inline void wpas_dbus_signal_blob_added(struct wpa_supplicant *wpa_s,
|
|
|
|
const char *name)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void wpas_dbus_signal_blob_removed(struct wpa_supplicant *wpa_s,
|
|
|
|
const char *name)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void wpas_dbus_signal_debug_level_changed(
|
|
|
|
struct wpa_global *global)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void wpas_dbus_signal_debug_timestamp_changed(
|
|
|
|
struct wpa_global *global)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void wpas_dbus_signal_debug_show_keys_changed(
|
|
|
|
struct wpa_global *global)
|
2009-11-09 22:51:59 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-06-13 00:08:19 +02:00
|
|
|
static inline int wpas_dbus_register_peer(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *dev_addr)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int wpas_dbus_unregister_peer(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *dev_addr)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-06-02 16:42:08 +02:00
|
|
|
static inline void
|
|
|
|
wpas_dbus_signal_peer_groups_changed(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *dev_addr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-06-13 00:08:19 +02:00
|
|
|
static inline void
|
|
|
|
wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant *wpa_s,
|
|
|
|
const char *role)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-06-02 07:47:33 +02:00
|
|
|
static inline void wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *src,
|
|
|
|
u16 dev_passwd_id,
|
|
|
|
u8 go_intent)
|
2011-06-13 00:08:19 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s,
|
2016-11-02 11:20:28 +01:00
|
|
|
int client, int persistent,
|
|
|
|
const u8 *ip)
|
2011-06-13 00:08:19 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-08-20 12:58:33 +02:00
|
|
|
static inline void
|
|
|
|
wpas_dbus_signal_p2p_group_formation_failure(struct wpa_supplicant *wpa_s,
|
|
|
|
const char *reason)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-06-13 00:08:19 +02:00
|
|
|
static inline void
|
|
|
|
wpas_dbus_register_p2p_group(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_ssid *ssid)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-06-23 20:25:13 +02:00
|
|
|
static inline int wpas_dbus_register_persistent_group(
|
|
|
|
struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int wpas_dbus_unregister_persistent_group(
|
|
|
|
struct wpa_supplicant *wpa_s, int nid)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2011-06-13 00:08:19 +02:00
|
|
|
static inline void
|
2011-12-18 15:52:33 +01:00
|
|
|
wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant *wpa_s,
|
|
|
|
struct p2p_go_neg_results *res)
|
2011-06-13 00:08:19 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
wpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s,
|
|
|
|
const struct wpa_ssid *ssid)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void wpas_dbus_signal_p2p_invitation_result(
|
|
|
|
struct wpa_supplicant *wpa_s, int status,
|
|
|
|
const u8 *bssid)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
wpas_dbus_register_p2p_groupmember(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *p2p_if_addr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
wpas_dbus_unregister_p2p_groupmember(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *p2p_if_addr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *member)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-05-13 14:03:48 +02:00
|
|
|
static inline void
|
|
|
|
wpas_dbus_signal_p2p_find_stopped(struct wpa_supplicant *wpa_s)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-06-13 00:08:19 +02:00
|
|
|
static inline void
|
|
|
|
wpas_dbus_signal_peer_device_found(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *dev_addr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
wpas_dbus_signal_peer_device_lost(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *dev_addr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *member)
|
|
|
|
{
|
|
|
|
}
|
2011-06-25 10:47:04 +02:00
|
|
|
|
|
|
|
static inline void
|
|
|
|
wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wps_event_fail *fail)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-07-05 11:22:32 +02:00
|
|
|
static inline void wpas_dbus_signal_certification(struct wpa_supplicant *wpa_s,
|
|
|
|
int depth,
|
|
|
|
const char *subject,
|
2015-01-14 12:29:40 +01:00
|
|
|
const char *altsubject[],
|
|
|
|
int num_altsubject,
|
2011-07-05 11:22:32 +02:00
|
|
|
const char *cert_hash,
|
|
|
|
const struct wpabuf *cert)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-04-01 20:13:38 +02:00
|
|
|
static inline void 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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-06-04 20:10:01 +02:00
|
|
|
static inline void wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s,
|
|
|
|
const char *status,
|
|
|
|
const char *parameter)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-06-22 11:09:09 +02:00
|
|
|
static inline
|
|
|
|
void wpas_dbus_signal_sta_authorized(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *sta)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline
|
|
|
|
void wpas_dbus_signal_sta_deauthorized(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *sta)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-06-18 06:16:34 +02:00
|
|
|
static inline
|
|
|
|
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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-07-18 09:07:51 +02:00
|
|
|
static inline
|
|
|
|
void wpas_dbus_signal_mesh_group_started(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_ssid *ssid)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-07-18 09:07:53 +02:00
|
|
|
static inline
|
|
|
|
void wpas_dbus_signal_mesh_group_removed(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *meshid, u8 meshid_len,
|
|
|
|
int reason)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-07-18 09:07:54 +02:00
|
|
|
static inline
|
|
|
|
void wpas_dbus_signal_mesh_peer_connected(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *peer_addr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-07-18 09:07:55 +02:00
|
|
|
static inline
|
|
|
|
void wpas_dbus_signal_mesh_peer_disconnected(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *peer_addr, int reason)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2021-12-08 08:45:32 +01:00
|
|
|
static inline
|
|
|
|
void 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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline
|
|
|
|
void wpas_dbus_signal_interworking_select_done(struct wpa_supplicant *wpa_s)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2009-11-09 22:51:59 +01:00
|
|
|
#endif /* CONFIG_CTRL_IFACE_DBUS_NEW */
|
|
|
|
|
|
|
|
#endif /* CTRL_IFACE_DBUS_H_NEW */
|