18d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/* 28d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * WPA Supplicant / dbus-based control interface 38d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Copyright (c) 2006, Dan Williams <dcbw@redhat.com> and Red Hat, Inc. 48d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Copyright (c) 2009-2010, Witold Sowa <witold.sowa@gmail.com> 58d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * This software may be distributed under the terms of the BSD license. 704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * See README for more details. 88d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 98d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#ifndef CTRL_IFACE_DBUS_NEW_H 118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define CTRL_IFACE_DBUS_NEW_H 128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#include "common/defs.h" 1475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen#include "p2p/p2p.h" 1575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstruct wpa_global; 178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstruct wpa_supplicant; 188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstruct wpa_ssid; 198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstruct wps_event_m2d; 208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstruct wps_event_fail; 218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstruct wps_credential; 228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum wpas_dbus_prop { 248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_PROP_AP_SCAN, 258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_PROP_SCANNING, 268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_PROP_STATE, 278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_PROP_CURRENT_BSS, 288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_PROP_CURRENT_NETWORK, 298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_PROP_CURRENT_AUTH_MODE, 308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_PROP_BSSS, 3104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt WPAS_DBUS_PROP_DISCONNECT_REASON, 328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum wpas_dbus_bss_prop { 358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_BSS_PROP_SIGNAL, 368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_BSS_PROP_FREQ, 378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_BSS_PROP_MODE, 388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_BSS_PROP_PRIVACY, 398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_BSS_PROP_RATES, 408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_BSS_PROP_WPA, 418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_BSS_PROP_RSN, 42d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt WPAS_DBUS_BSS_PROP_WPS, 438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_BSS_PROP_IES, 448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_OBJECT_PATH_MAX 150 478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_NEW_SERVICE "fi.w1.wpa_supplicant1" 498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_NEW_PATH "/fi/w1/wpa_supplicant1" 508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_NEW_INTERFACE "fi.w1.wpa_supplicant1" 518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_NEW_PATH_INTERFACES WPAS_DBUS_NEW_PATH "/Interfaces" 538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_NEW_IFACE_INTERFACE WPAS_DBUS_NEW_INTERFACE ".Interface" 548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_NEW_IFACE_WPS WPAS_DBUS_NEW_IFACE_INTERFACE ".WPS" 558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_NEW_NETWORKS_PART "Networks" 578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_NEW_IFACE_NETWORK WPAS_DBUS_NEW_INTERFACE ".Network" 588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_NEW_BSSIDS_PART "BSSs" 608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_NEW_IFACE_BSS WPAS_DBUS_NEW_INTERFACE ".BSS" 618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 6275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen#define WPAS_DBUS_NEW_IFACE_P2PDEVICE \ 6375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen WPAS_DBUS_NEW_IFACE_INTERFACE ".P2PDevice" 6475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 6575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen/* 6675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen * Groups correspond to P2P groups where this device is a GO (owner) 6775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen */ 6875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen#define WPAS_DBUS_NEW_P2P_GROUPS_PART "Groups" 6975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen#define WPAS_DBUS_NEW_IFACE_P2P_GROUP WPAS_DBUS_NEW_INTERFACE ".Group" 7075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 7175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen/* 7275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen * Different dbus object for persistent groups so they do not get confused 7375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen * with regular (configured) network objects. 7475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen */ 7575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen#define WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART "PersistentGroups" 7675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen#define WPAS_DBUS_NEW_IFACE_PERSISTENT_GROUP \ 7775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen WPAS_DBUS_NEW_INTERFACE ".PersistentGroup" 7875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 7975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen#define WPAS_DBUS_NEW_P2P_PEERS_PART "Peers" 8075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen#define WPAS_DBUS_NEW_IFACE_P2P_PEER WPAS_DBUS_NEW_INTERFACE ".Peer" 8175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 8275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen#define WPAS_DBUS_NEW_P2P_GROUPMEMBERS_PART "Members" 8375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen#define WPAS_DBUS_NEW_IFACE_P2P_GROUPMEMBER \ 8475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen WPAS_DBUS_NEW_INTERFACE ".GroupMember" 858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/* Errors */ 878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_ERROR_UNKNOWN_ERROR \ 888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_NEW_INTERFACE ".UnknownError" 898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_ERROR_INVALID_ARGS \ 908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_NEW_INTERFACE ".InvalidArgs" 918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_ERROR_IFACE_EXISTS \ 938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_NEW_INTERFACE ".InterfaceExists" 948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_ERROR_IFACE_UNKNOWN \ 958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_NEW_INTERFACE ".InterfaceUnknown" 968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_ERROR_NOT_CONNECTED \ 988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_NEW_INTERFACE ".NotConnected" 998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_ERROR_NETWORK_UNKNOWN \ 1008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_NEW_INTERFACE ".NetworkUnknown" 1018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen#define WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNAVAILABLE \ 10375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen WPAS_DBUS_NEW_INTERFACE ".ConnectChannelUnavailable" 10475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen#define WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNSUPPORTED \ 10575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen WPAS_DBUS_NEW_INTERFACE ".ConnectChannelUnsupported" 10675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen#define WPAS_DBUS_ERROR_CONNECT_UNSPECIFIED_ERROR \ 10775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen WPAS_DBUS_NEW_INTERFACE ".ConnectUnspecifiedError" 10875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 1098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_ERROR_BLOB_EXISTS \ 1108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_NEW_INTERFACE ".BlobExists" 1118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define WPAS_DBUS_ERROR_BLOB_UNKNOWN \ 1128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WPAS_DBUS_NEW_INTERFACE ".BlobUnknown" 1138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 11404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define WPAS_DBUS_ERROR_SUBSCRIPTION_IN_USE \ 11504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt WPAS_DBUS_NEW_INTERFACE ".SubscriptionInUse" 11604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define WPAS_DBUS_ERROR_NO_SUBSCRIPTION \ 11704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt WPAS_DBUS_NEW_INTERFACE ".NoSubscription" 11804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define WPAS_DBUS_ERROR_SUBSCRIPTION_EPERM \ 11904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt WPAS_DBUS_NEW_INTERFACE ".SubscriptionNotYou" 12004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 12104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 12204949598a23f501be6eec21697465fd46a28840aDmitry Shmidtvoid wpas_dbus_subscribe_noc(struct wpas_dbus_priv *priv); 12304949598a23f501be6eec21697465fd46a28840aDmitry Shmidtvoid wpas_dbus_unsubscribe_noc(struct wpas_dbus_priv *priv); 12404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 1258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 1268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#ifdef CONFIG_CTRL_IFACE_DBUS_NEW 1278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 1288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtint wpas_dbus_ctrl_iface_init(struct wpas_dbus_priv *priv); 1298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid wpas_dbus_ctrl_iface_deinit(struct wpas_dbus_priv *iface); 1308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 1318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtint wpas_dbus_register_interface(struct wpa_supplicant *wpa_s); 1328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtint wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s); 1338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s, 1348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt enum wpas_dbus_prop property); 1358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid wpas_dbus_bss_signal_prop_changed(struct wpa_supplicant *wpa_s, 1368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt enum wpas_dbus_bss_prop property, 1378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt unsigned int id); 1388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid wpas_dbus_signal_network_enabled_changed(struct wpa_supplicant *wpa_s, 1398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt struct wpa_ssid *ssid); 1408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid wpas_dbus_signal_network_selected(struct wpa_supplicant *wpa_s, int id); 1411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtvoid wpas_dbus_signal_network_request(struct wpa_supplicant *wpa_s, 1421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt struct wpa_ssid *ssid, 1431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt enum wpa_ctrl_req_type rtype, 1441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt const char *default_text); 1458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s, int success); 1468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid wpas_dbus_signal_wps_cred(struct wpa_supplicant *wpa_s, 1478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt const struct wps_credential *cred); 1488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant *wpa_s, 1498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt struct wps_event_m2d *m2d); 1508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid wpas_dbus_signal_wps_event_fail(struct wpa_supplicant *wpa_s, 1518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt struct wps_event_fail *fail); 1528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid wpas_dbus_signal_wps_event_success(struct wpa_supplicant *wpa_s); 1538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtint wpas_dbus_register_network(struct wpa_supplicant *wpa_s, 1548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt struct wpa_ssid *ssid); 1558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtint wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s, int nid); 1568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtint wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s, 1578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt u8 bssid[ETH_ALEN], unsigned int id); 1588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtint wpas_dbus_register_bss(struct wpa_supplicant *wpa_s, 1598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt u8 bssid[ETH_ALEN], unsigned int id); 1608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid wpas_dbus_signal_blob_added(struct wpa_supplicant *wpa_s, 1618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt const char *name); 1628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid wpas_dbus_signal_blob_removed(struct wpa_supplicant *wpa_s, 1638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt const char *name); 1648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid wpas_dbus_signal_debug_level_changed(struct wpa_global *global); 1658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid wpas_dbus_signal_debug_timestamp_changed(struct wpa_global *global); 1668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid wpas_dbus_signal_debug_show_keys_changed(struct wpa_global *global); 1678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenint wpas_dbus_register_peer(struct wpa_supplicant *wpa_s, const u8 *dev_addr); 16975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_signal_peer_device_found(struct wpa_supplicant *wpa_s, 17075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *dev_addr); 17175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenint wpas_dbus_unregister_peer(struct wpa_supplicant *wpa_s, 17275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *dev_addr); 17375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_signal_peer_device_lost(struct wpa_supplicant *wpa_s, 17475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *dev_addr); 17575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant *wpa_s, 17675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const char *role); 17775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_signal_p2p_provision_discovery(struct wpa_supplicant *wpa_s, 17875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *dev_addr, int request, 17975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen enum p2p_prov_disc_status status, 18075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen u16 config_methods, 18175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen unsigned int generated_pin); 18275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant *wpa_s, 18375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *src, u16 dev_passwd_id); 18475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s, 18575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const struct wpa_ssid *ssid, 18675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen int client, int network_id); 18775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_register_p2p_group(struct wpa_supplicant *wpa_s, 18875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen struct wpa_ssid *ssid); 1891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtvoid wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant *wpa_s, 1901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt struct p2p_go_neg_results *res); 19175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s, 19275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const struct wpa_ssid *ssid); 19375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenint wpas_dbus_register_persistent_group(struct wpa_supplicant *wpa_s, 19475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen struct wpa_ssid *ssid); 19575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenint wpas_dbus_unregister_persistent_group(struct wpa_supplicant *wpa_s, 19675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen int nid); 19775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_signal_p2p_invitation_result(struct wpa_supplicant *wpa_s, 19875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen int status, const u8 *bssid); 19975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_register_p2p_groupmember(struct wpa_supplicant *wpa_s, 20075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *p2p_if_addr); 20175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_unregister_p2p_groupmember(struct wpa_supplicant *wpa_s, 20275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *p2p_if_addr); 20375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant *wpa_s, 20475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *member); 20575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_signal_p2p_sd_request(struct wpa_supplicant *wpa_s, 20675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen int freq, const u8 *sa, u8 dialog_token, 20775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen u16 update_indic, const u8 *tlvs, 20875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen size_t tlvs_len); 20975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_signal_p2p_sd_response(struct wpa_supplicant *wpa_s, 21075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *sa, u16 update_indic, 21175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *tlvs, size_t tlvs_len); 21275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s, 21375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *member); 21475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenvoid wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant *wpa_s, 21575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen struct wps_event_fail *fail); 216c55524ad84d13014e8019491c2b17e5dcf13545aDmitry Shmidtvoid wpas_dbus_signal_certification(struct wpa_supplicant *wpa_s, 217c55524ad84d13014e8019491c2b17e5dcf13545aDmitry Shmidt int depth, const char *subject, 218c55524ad84d13014e8019491c2b17e5dcf13545aDmitry Shmidt const char *cert_hash, 219c55524ad84d13014e8019491c2b17e5dcf13545aDmitry Shmidt const struct wpabuf *cert); 22004949598a23f501be6eec21697465fd46a28840aDmitry Shmidtvoid wpas_dbus_signal_preq(struct wpa_supplicant *wpa_s, 22104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt const u8 *addr, const u8 *dst, const u8 *bssid, 22204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt const u8 *ie, size_t ie_len, u32 ssi_signal); 22304949598a23f501be6eec21697465fd46a28840aDmitry Shmidtvoid wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s, 22404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt const char *status, const char *parameter); 22534af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidtvoid wpas_dbus_signal_sta_authorized(struct wpa_supplicant *wpa_s, 22634af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidt const u8 *sta); 22734af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidtvoid wpas_dbus_signal_sta_deauthorized(struct wpa_supplicant *wpa_s, 22834af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidt const u8 *sta); 22975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 2308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#else /* CONFIG_CTRL_IFACE_DBUS_NEW */ 2318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s) 2338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 2348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt return 0; 2358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 2368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s) 2388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 2398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt return 0; 2408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 2418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define wpas_dbus_signal_state_changed(w, n, o) do { } while (0) 2438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s, 2458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt enum wpas_dbus_prop property) 2468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 2478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 2488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline void wpas_dbus_bss_signal_prop_changed( 2508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt struct wpa_supplicant *wpa_s, enum wpas_dbus_bss_prop property, 2518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt unsigned int id) 2528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 2538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 2548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline void wpas_dbus_signal_network_enabled_changed( 2568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) 2578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 2588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 2598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline void wpas_dbus_signal_network_selected( 2618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt struct wpa_supplicant *wpa_s, int id) 2628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 2638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 2648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtstatic inline void wpas_dbus_signal_network_request( 2661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, 2671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt enum wpa_ctrl_req_type rtype, const char *default_txt) 2681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt{ 2691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt} 2701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 2718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline void wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s, 2728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt int success) 2738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 2748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 2758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline void wpas_dbus_signal_wps_cred(struct wpa_supplicant *wpa_s, 2778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt const struct wps_credential *cred) 2788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 2798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 2808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline void wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant *wpa_s, 2828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt struct wps_event_m2d *m2d) 2838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 2848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 2858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline void wpas_dbus_signal_wps_event_fail( 2878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt struct wpa_supplicant *wpa_s, struct wps_event_fail *fail) 2888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 2898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 2908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline void wpas_dbus_signal_wps_event_success( 2928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt struct wpa_supplicant *wpa_s) 2938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 2948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 2958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline int wpas_dbus_register_network(struct wpa_supplicant *wpa_s, 2978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt struct wpa_ssid *ssid) 2988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 2998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt return 0; 3008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 3018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 3028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s, 3038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt int nid) 3048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 3058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt return 0; 3068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 3078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 3088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline int wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s, 3098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt u8 bssid[ETH_ALEN], unsigned int id) 3108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 3118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt return 0; 3128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 3138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 3148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline int wpas_dbus_register_bss(struct wpa_supplicant *wpa_s, 3158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt u8 bssid[ETH_ALEN], unsigned int id) 3168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 3178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt return 0; 3188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 3198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 3208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline void wpas_dbus_signal_blob_added(struct wpa_supplicant *wpa_s, 3218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt const char *name) 3228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 3238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 3248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 3258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline void wpas_dbus_signal_blob_removed(struct wpa_supplicant *wpa_s, 3268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt const char *name) 3278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 3288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 3298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 3308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline void wpas_dbus_signal_debug_level_changed( 3318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt struct wpa_global *global) 3328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 3338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 3348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 3358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline void wpas_dbus_signal_debug_timestamp_changed( 3368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt struct wpa_global *global) 3378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 3388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 3398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 3408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline void wpas_dbus_signal_debug_show_keys_changed( 3418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt struct wpa_global *global) 3428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 3438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} 3448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 34575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline int wpas_dbus_register_peer(struct wpa_supplicant *wpa_s, 34675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *dev_addr) 34775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 34875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen return 0; 34975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 35075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 35175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline int wpas_dbus_unregister_peer(struct wpa_supplicant *wpa_s, 35275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *dev_addr) 35375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 35475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen return 0; 35575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 35675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 35775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void 35875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenwpas_dbus_signal_p2p_group_removed(struct wpa_supplicant *wpa_s, 35975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const char *role) 36075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 36175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 36275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 36375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void 36475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenwpas_dbus_signal_p2p_provision_discovery(struct wpa_supplicant *wpa_s, 36575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *dev_addr, int request, 36675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen enum p2p_prov_disc_status status, 36775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen u16 config_methods, 36875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen unsigned int generated_pin) 36975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 37075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 37175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 37275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void wpas_dbus_signal_p2p_go_neg_req( 37375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen struct wpa_supplicant *wpa_s, 37475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *src, 37575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen u16 dev_passwd_id) 37675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 37775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 37875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 37975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void 38075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenwpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s, 38175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const struct wpa_ssid *ssid, 38275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen int client, int network_id) 38375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 38475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 38575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 38675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void 38775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenwpas_dbus_register_p2p_group(struct wpa_supplicant *wpa_s, 38875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen struct wpa_ssid *ssid) 38975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 39075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 39175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 39275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline int wpas_dbus_register_persistent_group( 39375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) 39475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 39575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen return 0; 39675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 39775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 39875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline int wpas_dbus_unregister_persistent_group( 39975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen struct wpa_supplicant *wpa_s, int nid) 40075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 40175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen return 0; 40275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 40375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 40475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void 4051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtwpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant *wpa_s, 4061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt struct p2p_go_neg_results *res) 40775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 40875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 40975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 41075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void 41175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenwpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s, 41275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const struct wpa_ssid *ssid) 41375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 41475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 41575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 41675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void wpas_dbus_signal_p2p_invitation_result( 41775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen struct wpa_supplicant *wpa_s, int status, 41875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *bssid) 41975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 42075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 42175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 42275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void 42375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenwpas_dbus_register_p2p_groupmember(struct wpa_supplicant *wpa_s, 42475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *p2p_if_addr) 42575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 42675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 42775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 42875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void 42975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenwpas_dbus_signal_p2p_sd_request(struct wpa_supplicant *wpa_s, int freq, 43075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *sa, u8 dialog_token, u16 update_indic, 43175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *tlvs, size_t tlvs_len) 43275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 43375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 43475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 43575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void 43675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenwpas_dbus_signal_p2p_sd_response(struct wpa_supplicant *wpa_s, 43775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *sa, u16 update_indic, 43875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *tlvs, size_t tlvs_len) 43975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 44075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 44175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 44275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void 44375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenwpas_dbus_unregister_p2p_groupmember(struct wpa_supplicant *wpa_s, 44475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *p2p_if_addr) 44575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 44675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 44775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 44875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void 44975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenwpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s, 45075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *member) 45175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 45275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 45375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 45475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void 45575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenwpas_dbus_signal_peer_device_found(struct wpa_supplicant *wpa_s, 45675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *dev_addr) 45775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 45875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 45975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 46075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void 46175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenwpas_dbus_signal_peer_device_lost(struct wpa_supplicant *wpa_s, 46275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *dev_addr) 46375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 46475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 46575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 46675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void 46775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenwpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant *wpa_s, 46875ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen const u8 *member) 46975ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 47075ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 47175ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 47275ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenstatic inline void 47375ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinenwpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant *wpa_s, 47475ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen struct wps_event_fail *fail) 47575ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen{ 47675ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen} 47775ecf5267604f166b85a7ee2cf0d9cb682966680Jouni Malinen 478c55524ad84d13014e8019491c2b17e5dcf13545aDmitry Shmidtstatic inline void wpas_dbus_signal_certification(struct wpa_supplicant *wpa_s, 479c55524ad84d13014e8019491c2b17e5dcf13545aDmitry Shmidt int depth, 480c55524ad84d13014e8019491c2b17e5dcf13545aDmitry Shmidt const char *subject, 481c55524ad84d13014e8019491c2b17e5dcf13545aDmitry Shmidt const char *cert_hash, 482c55524ad84d13014e8019491c2b17e5dcf13545aDmitry Shmidt const struct wpabuf *cert) 483c55524ad84d13014e8019491c2b17e5dcf13545aDmitry Shmidt{ 484c55524ad84d13014e8019491c2b17e5dcf13545aDmitry Shmidt} 485c55524ad84d13014e8019491c2b17e5dcf13545aDmitry Shmidt 48604949598a23f501be6eec21697465fd46a28840aDmitry Shmidtstatic inline void wpas_dbus_signal_preq(struct wpa_supplicant *wpa_s, 48704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt const u8 *addr, const u8 *dst, 48804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt const u8 *bssid, 48904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt const u8 *ie, size_t ie_len, 49004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt u32 ssi_signal) 49104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt{ 49204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt} 49304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 49404949598a23f501be6eec21697465fd46a28840aDmitry Shmidtstatic inline void wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s, 49504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt const char *status, 49604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt const char *parameter) 49704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt{ 49804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt} 49904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 50034af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidtstatic inline 50134af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidtvoid wpas_dbus_signal_sta_authorized(struct wpa_supplicant *wpa_s, 50234af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidt const u8 *sta) 50334af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidt{ 50434af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidt} 50534af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidt 50634af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidtstatic inline 50734af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidtvoid wpas_dbus_signal_sta_deauthorized(struct wpa_supplicant *wpa_s, 50834af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidt const u8 *sta) 50934af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidt{ 51034af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidt} 51134af306c42b7ccf956508e7cd23f0ba90606e360Dmitry Shmidt 5128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#endif /* CONFIG_CTRL_IFACE_DBUS_NEW */ 5138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 5148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#endif /* CTRL_IFACE_DBUS_H_NEW */ 515