P2P: Fix D-Bus PresenceRequest to use group interface
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 25 May 2015 15:21:05 +0000 (18:21 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 25 May 2015 15:31:09 +0000 (18:31 +0300)
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 <jouni@qca.qualcomm.com>
wpa_supplicant/dbus/dbus_new_handlers_p2p.c

index 32f0a35..a966882 100644 (file)
@@ -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.");