hostapd/wpa_supplicant/dbus
Vasyl Vavrychuk d53401c54b dbus: Redirect signal processing to the management device if present
This fixes sending of FindStopped, GroupFormationFailure, and
InvitationReceived signals in the case of separate P2P-Device interface.
This extends the coverage of the earlier commit
745d62322b ("dbus: Redirect P2P request to
the managment device if present") to these three functions that were
missing the redirection.

Some wireless controllers might have separate P2P-Device interface, see
as example result of 'iw dev':

phy#0
        Unnamed/non-netdev interface
                ...
                type P2P-device
                ...
        Interface wlp2s0
                type managed
                ...

In this case there is separate 'struct wpa_supplicant' created for this
p2p-dev-* device as result of 'wpa_supplicant_add_iface >
wpas_p2p_add_p2pdev_interface > wpa_supplicant_add_iface'.

This instance of wpa_supplicant is not registered in D-Bus
(wpas_dbus_register_*) since for corresponding P2P device interface flag
'struct wpa_interface > p2p_mgmt' is set.

But this instance is saved in p2p_init_wpa_s and is used for handling
P2P related D-Bus commands. Therefore we should look for D-Bus path in
the parent of p2p_init_wpa_s instance.

Without this change test dbus_p2p_discovery starts failing if we set
support_p2p_device in vm-run.sh.

Signed-off-by: Vasyl Vavrychuk <vvavrychuk@gmail.com>
2018-04-02 12:02:13 +03:00
..
.gitignore dbus: Clean dbus build files on wpa_supplicant 'make clean' 2009-12-20 20:29:09 +02:00
dbus-wpa_supplicant.conf D-Bus: Don't do <deny send_interface="..." /> in dbus service file 2016-02-07 11:55:09 +02:00
dbus_common.c D-Bus: Coding style cleanup 2015-01-02 22:50:26 +02:00
dbus_common.h Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus_common_i.h dbus: Expose interface globals via D-Bus properties 2015-10-28 23:41:32 +02:00
dbus_dict_helpers.c dbus: Remove unused dict helper functions 2015-11-01 00:16:57 +02:00
dbus_dict_helpers.h dbus: Remove unused dict helper functions 2015-11-01 00:16:57 +02:00
dbus_new.c dbus: Redirect signal processing to the management device if present 2018-04-02 12:02:13 +03:00
dbus_new.h dbus: Add MeshPeerDisconnected signal 2017-09-10 01:39:37 +03:00
dbus_new_handlers.c dbus: Add FILS to global capabilities 2018-04-02 11:56:06 +03:00
dbus_new_handlers.h dbus: Add new interface property to get mesh group 2017-09-10 01:39:37 +03:00
dbus_new_handlers_p2p.c D-Bus: Report error on starting P2P find 2018-02-03 12:25:32 +02:00
dbus_new_handlers_p2p.h dbus: Pass property description to getters/setters 2015-10-28 23:40:49 +02:00
dbus_new_handlers_wps.c D-Bus: Use a helper function to get possibly NULL strings 2016-12-23 21:28:43 +02:00
dbus_new_helpers.c dbus: Pass property description to getters/setters 2015-10-28 23:40:49 +02:00
dbus_new_helpers.h dbus: Expose interface globals via D-Bus properties 2015-10-28 23:41:32 +02:00
dbus_new_introspect.c dbus: Expose interface globals via D-Bus properties 2015-10-28 23:41:32 +02:00
dbus_old.c D-Bus: Fix operations when P2P management interface is used 2015-04-29 20:42:25 +03:00
dbus_old.h D-Bus: Coding style cleanup 2015-01-02 22:50:26 +02:00
dbus_old_handlers.c Move network add/remove operations to a common function 2016-08-18 20:46:18 +03:00
dbus_old_handlers.h D-Bus: Coding style cleanup 2015-01-02 22:50:26 +02:00
dbus_old_handlers_wps.c D-Bus (old): Fix wpsReg error message 2015-01-07 13:19:00 +02: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 Add CONFIG_CODE_COVERAGE=y option for gcov 2013-11-24 19:16:12 +02:00