wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Enumerations | Functions
dbus_new_handlers_p2p.c File Reference

WPA Supplicant / dbus-based control interface (P2P) More...

#include "includes.h"
#include "common.h"
#include "../config.h"
#include "../wpa_supplicant_i.h"
#include "../wps_supplicant.h"
#include "../notify.h"
#include "dbus_new_helpers.h"
#include "dbus_new.h"
#include "dbus_new_handlers.h"
#include "dbus_new_handlers_p2p.h"
#include "dbus_dict_helpers.h"
#include "p2p/p2p.h"
#include "common/ieee802_11_defs.h"
#include "ap/hostapd.h"
#include "ap/ap_config.h"
#include "ap/wps_hostapd.h"
#include "../p2p_supplicant.h"
#include "../wifi_display.h"

Data Structures

struct  peer_group_data
 

Enumerations

enum  wpas_p2p_role { WPAS_P2P_ROLE_DEVICE, WPAS_P2P_ROLE_GO, WPAS_P2P_ROLE_CLIENT }
 

Functions

DBusMessage * wpas_dbus_handler_p2p_find (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_stop_find (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_rejectpeer (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_listen (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_extendedlisten (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_presence_request (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_group_add (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_disconnect (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_remove_client (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_flush (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_connect (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_cancel (DBusMessage *message, struct wpa_supplicant *wpa_s)
 Cancel P2P group formation. More...
 
DBusMessage * wpas_dbus_handler_p2p_invite (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_prov_disc_req (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
dbus_bool_t wpas_dbus_getter_p2p_device_config (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_setter_p2p_device_config (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peers (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_role (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_group (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peergo (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peer_device_name (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peer_manufacturer (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peer_modelname (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peer_modelnumber (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peer_serialnumber (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peer_primary_device_type (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peer_config_method (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peer_level (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peer_device_capability (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peer_group_capability (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peer_secondary_device_types (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peer_vendor_extension (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peer_ies (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peer_device_address (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_peer_groups (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_persistent_groups (DBusMessageIter *iter, DBusError *error, void *user_data)
 Get array of persistent group objects. More...
 
dbus_bool_t wpas_dbus_getter_persistent_group_properties (DBusMessageIter *iter, DBusError *error, void *user_data)
 Get options for a persistent. More...
 
dbus_bool_t wpas_dbus_setter_persistent_group_properties (DBusMessageIter *iter, DBusError *error, void *user_data)
 Set options for a persistent. More...
 
DBusMessage * wpas_dbus_handler_add_persistent_group (DBusMessage *message, struct wpa_supplicant *wpa_s)
 Add a new configured. More...
 
DBusMessage * wpas_dbus_handler_remove_persistent_group (DBusMessage *message, struct wpa_supplicant *wpa_s)
 Remove a configured persistent. More...
 
DBusMessage * wpas_dbus_handler_remove_all_persistent_groups (DBusMessage *message, struct wpa_supplicant *wpa_s)
 Remove all configured persistent groups. More...
 
dbus_bool_t wpas_dbus_getter_p2p_group_members (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_group_ssid (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_group_bssid (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_group_frequency (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_group_passphrase (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_group_psk (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_getter_p2p_group_vendor_ext (DBusMessageIter *iter, DBusError *error, void *user_data)
 
dbus_bool_t wpas_dbus_setter_p2p_group_vendor_ext (DBusMessageIter *iter, DBusError *error, void *user_data)
 
DBusMessage * wpas_dbus_handler_p2p_add_service (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_delete_service (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_flush_service (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_service_sd_req (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_service_sd_res (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_service_sd_cancel_req (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_service_update (DBusMessage *message, struct wpa_supplicant *wpa_s)
 
DBusMessage * wpas_dbus_handler_p2p_serv_disc_external (DBusMessage *message, struct wpa_supplicant *wpa_s)
 

Detailed Description

WPA Supplicant / dbus-based control interface (P2P)

Function Documentation

dbus_bool_t wpas_dbus_getter_persistent_group_properties ( DBusMessageIter *  iter,
DBusError *  error,
void *  user_data 
)

Get options for a persistent.

group

Parameters
iterPointer to incoming dbus message iter
errorLocation to store error on failure
user_dataFunction specific data
Returns
TRUE on success, FALSE on failure

Getter for "Properties" property of a persistent group.

dbus_bool_t wpas_dbus_getter_persistent_groups ( DBusMessageIter *  iter,
DBusError *  error,
void *  user_data 
)

Get array of persistent group objects.

Parameters
iterPointer to incoming dbus message iter
errorLocation to store error on failure
user_dataFunction specific data
Returns
TRUE on success, FALSE on failure

Getter for "PersistentGroups" property.

DBusMessage* wpas_dbus_handler_add_persistent_group ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

Add a new configured.

persistent_group

Parameters
messagePointer to incoming dbus message
wpa_swpa_supplicant structure for a network interface
Returns
A dbus message containing the object path of the new persistent group

Handler function for "AddPersistentGroup" method call of a P2P Device interface.

DBusMessage* wpas_dbus_handler_p2p_cancel ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

Cancel P2P group formation.

Parameters
messagePointer to incoming dbus message
wpa_swpa_supplicant data structure
Returns
NULL on success or DBus error on failure

Handler for "Cancel" method call. Returns NULL if P2P cancel succeeds or DBus error on P2P cancel failure

DBusMessage* wpas_dbus_handler_remove_all_persistent_groups ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

Remove all configured persistent groups.

Parameters
messagePointer to incoming dbus message
wpa_swpa_supplicant structure for a network interface
Returns
NULL on success or dbus error on failure

Handler function for "RemoveAllPersistentGroups" method call of a P2P Device interface.

DBusMessage* wpas_dbus_handler_remove_persistent_group ( DBusMessage *  message,
struct wpa_supplicant wpa_s 
)

Remove a configured persistent.

group

Parameters
messagePointer to incoming dbus message
wpa_swpa_supplicant structure for a network interface
Returns
NULL on success or dbus error on failure

Handler function for "RemovePersistentGroup" method call of a P2P Device interface.

dbus_bool_t wpas_dbus_setter_persistent_group_properties ( DBusMessageIter *  iter,
DBusError *  error,
void *  user_data 
)

Set options for a persistent.

group

Parameters
iterPointer to incoming dbus message iter
errorLocation to store error on failure
user_dataFunction specific data
Returns
TRUE on success, FALSE on failure

Setter for "Properties" property of a persistent group.