wifi: change return type of p2p-connect D-Bus method call

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: b83f07916a ('supplicant: large rework of wpa_supplicant handling')
(cherry picked from commit a5338affb5)
This commit is contained in:
Beniamino Galvani 2020-04-20 17:01:56 +02:00
parent 4938299a9b
commit 1dfd35da20

View file

@ -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");
}