From 96512a00d094935d77fb9e0efe9072f5dca442bf Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 25 May 2015 18:21:05 +0300 Subject: [PATCH] P2P: Fix D-Bus PresenceRequest to use group interface This command is for a specific P2P group, not for the P2P Device instance and as such, wpa_s pointer must not be replaced with the interface that is used for P2P Device management. Signed-off-by: Jouni Malinen --- wpa_supplicant/dbus/dbus_new_handlers_p2p.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c index 32f0a353f..a96688248 100644 --- a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c +++ b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c @@ -282,9 +282,6 @@ DBusMessage * wpas_dbus_handler_p2p_presence_request( wpa_dbus_dict_entry_clear(&entry); } - if (wpa_s->p2p_dev) - wpa_s = wpa_s->p2p_dev; - if (wpas_p2p_presence_req(wpa_s, dur1, int1, dur2, int2) < 0) return wpas_dbus_error_unknown_error(message, "Failed to invoke presence request.");