]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
dbus: Provide the P2P Device Address from the relevant structure
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Wed, 14 May 2014 13:10:40 +0000 (16:10 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 16 May 2014 15:19:37 +0000 (18:19 +0300)
Fixes a minor mistake: the p2p_info structure should be used here
instead of the peer_handler_args one.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
wpa_supplicant/dbus/dbus_new_handlers_p2p.c

index 7857bfd73179dd57da9157d5b6b7f9c7e57600bc..20cbeedc0f1d38f10ffab6e9868e62f556024fdc 100644 (file)
@@ -1516,7 +1516,7 @@ dbus_bool_t wpas_dbus_getter_p2p_peer_device_address(DBusMessageIter *iter,
        }
 
        return wpas_dbus_simple_array_property_getter(
-               iter, DBUS_TYPE_BYTE, (char *) peer_args->p2p_device_addr,
+               iter, DBUS_TYPE_BYTE, (char *) info->p2p_device_addr,
                ETH_ALEN, error);
 }