From 1dfd35da20a75611066247d47daa1945c77313b2 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Mon, 20 Apr 2020 17:01:56 +0200 Subject: [PATCH] wifi: change return type of p2p-connect D-Bus method call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the following error when invoking the Connect() p2p method: call-p2p-connect: failed with Method “fi.w1.wpa_supplicant1.Interface.P2PDevice.Connect” returned type “(s)”, but expected “()” Fixes: b83f07916a54 ('supplicant: large rework of wpa_supplicant handling') (cherry picked from commit a5338affb5e64c48fcdb90f1b7bbf9a93cae4342) --- src/supplicant/nm-supplicant-interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/supplicant/nm-supplicant-interface.c b/src/supplicant/nm-supplicant-interface.c index cc3d109e35..a02f540256 100644 --- a/src/supplicant/nm-supplicant-interface.c +++ b/src/supplicant/nm-supplicant-interface.c @@ -2504,7 +2504,7 @@ nm_supplicant_interface_p2p_connect (NMSupplicantInterface *self, NM_WPAS_DBUS_IFACE_INTERFACE_P2P_DEVICE, "Connect", g_variant_new ("(a{sv})", &builder), - G_VARIANT_TYPE ("()"), + G_VARIANT_TYPE ("(s)"), "p2p-connect"); }