D-Bus: Fix P2P Group PSK property getter
authorJouni Malinen <j@w1.fi>
Fri, 2 Jan 2015 10:20:44 +0000 (12:20 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 2 Jan 2015 20:50:27 +0000 (22:50 +0200)
commit20e1d81e093e01e1e1405e2abbc5616213c70aba
treef2660b1ee0362b1e56ae154fab10e29f85a44ccf
parenta0caebf3977a037a87e4636b2bb7be5ae1b3fe4d
D-Bus: Fix P2P Group PSK property getter

This was returning a byte array of the pointer to the PSK, not the
actual PSK, due to incorrect use of
wpas_dbus_simple_array_property_getter(). In addition, there is no need
to limit this property based on the role of the device in the group, so
return the PSK if it is available (which it will be for both GO and P2P
Client roles).

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/dbus/dbus_new_handlers_p2p.c