hostap/wpa_supplicant/dbus
Paul Stewart cea97a04f9 dbus_new: Add DBus TDLS methods
Add DBus methods for TDLS operations similar to those available
for the control interface. This includes Discover, Setup, and
Teardown commands. While here, add a method to query the TDLS
link status and add a DBus method for it.

Tested with CONFIG_TDLS enabled, on a TDLS-enabled host and
peer capable of TDLS:

    dbus-send --system --dest=fi.w1.wpa_supplicant1 --print-reply \
        /fi/w1/wpa_supplicant1/Interfaces/0 \
        fi.w1.wpa_supplicant1.Interface.TDLSStatus string:<peer-mac-address>

    yields: string "peer does not exist"

    dbus-send --system --dest=fi.w1.wpa_supplicant1 --print-reply \
        /fi/w1/wpa_supplicant1/Interfaces/0 \
        fi.w1.wpa_supplicant1.Interface.TDLSDiscover string:<peer-mac-address>

    yields no error

    dbus-send --system --dest=fi.w1.wpa_supplicant1 --print-reply \
        /fi/w1/wpa_supplicant1/Interfaces/0 \
        fi.w1.wpa_supplicant1.Interface.TDLSSetup string:<peer-mac-address>

    yields no error

    dbus-send --system --dest=fi.w1.wpa_supplicant1 --print-reply \
        /fi/w1/wpa_supplicant1/Interfaces/0 \
        fi.w1.wpa_supplicant1.Interface.TDLSStatus string:<peer-mac-address>

    yields: string "connected" after TDLS completes

    dbus-send --system --dest=fi.w1.wpa_supplicant1 --print-reply \
        /fi/w1/wpa_supplicant1/Interfaces/0 \
        fi.w1.wpa_supplicant1.Interface.TDLSTeardown string:<peer-mac-address>

    yields no error

    dbus-send --system --dest=fi.w1.wpa_supplicant1 --print-reply \
        /fi/w1/wpa_supplicant1/Interfaces/0 \
        fi.w1.wpa_supplicant1.Interface.TDLSStatus string:<peer-mac-address>

    yields: string "peer not connected"

Signed-hostap: Paul Stewart <pstew@chromium.org>
2013-11-17 16:47:32 +02:00
..
.gitignore dbus: Clean dbus build files on wpa_supplicant 'make clean' 2009-12-20 20:29:09 +02:00
dbus-wpa_supplicant.conf Move D-Bus related files into their own subdirectory 2009-12-20 20:11:14 +02:00
dbus_common.c dbus: Terminate cleanly on messagebus shutdown 2013-05-16 20:47:28 +03:00
dbus_common.h Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus_common_i.h Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus_dict_helpers.c Convert os_realloc() for an array to use os_realloc_array() 2012-08-13 21:21:23 +03:00
dbus_dict_helpers.h Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus_new.c dbus_new: Add DBus TDLS methods 2013-11-17 16:47:32 +02:00
dbus_new.h D-Bus: Emit signal when a station is authorized or deauthorized 2013-06-22 12:09:09 +03:00
dbus_new_handlers.c dbus_new: Add DBus TDLS methods 2013-11-17 16:47:32 +02:00
dbus_new_handlers.h dbus_new: Add DBus TDLS methods 2013-11-17 16:47:32 +02:00
dbus_new_handlers_p2p.c P2P: Add VHT parameter to P2P operations 2013-10-27 19:46:17 +02:00
dbus_new_handlers_p2p.h Update copyright and license notification in D-Bus interace P2P files 2012-05-07 13:07:22 +03:00
dbus_new_handlers_wps.c WPS: Allow PIN timeout to be specified with wpa_supplicant AP/GO 2012-10-10 17:22:35 +03:00
dbus_new_helpers.c D-Bus: Fix per-iface object unregistration on not existing objects 2013-08-31 16:46:24 +03:00
dbus_new_helpers.h Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus_new_introspect.c Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus_old.c Fix build with CONFIG_NO_CONFIG_BLOBS 2013-03-16 12:20:21 +02:00
dbus_old.h Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus_old_handlers.c Use ARRAY_SIZE() macro 2013-10-26 17:49:05 +03:00
dbus_old_handlers.h Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus_old_handlers_wps.c Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
fi.epitest.hostap.WPASupplicant.service.in wpa_supplicant: Edit BINDIR in dbus and systemd service files 2011-07-15 12:25:02 +03:00
fi.w1.wpa_supplicant1.service.in wpa_supplicant: Edit BINDIR in dbus and systemd service files 2011-07-15 12:25:02 +03:00
Makefile dbus: Remove unused D-Bus version defines 2012-01-29 12:53:12 +02:00