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 <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2015-05-25 18:21:05 +03:00 committed by Jouni Malinen
parent b740401f18
commit 96512a00d0

View 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.");