aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
diff options
context:
space:
mode:
authorVasyl Vavrychuk <vvavrychuk@gmail.com>2018-02-01 12:07:30 (GMT)
committerJouni Malinen <j@w1.fi>2018-02-03 10:25:32 (GMT)
commitebf4043739e4619bce0f249a7b1f5437f6e3e754 (patch)
treedf427fe4e9b9af37ec195a763009922992390f28 /wpa_supplicant/dbus/dbus_new_handlers_p2p.c
parent66b9f3ca8a82b497a6ec3a4a4fff1271d5f80b98 (diff)
downloadhostap-ebf4043739e4619bce0f249a7b1f5437f6e3e754.zip
hostap-ebf4043739e4619bce0f249a7b1f5437f6e3e754.tar.gz
hostap-ebf4043739e4619bce0f249a7b1f5437f6e3e754.tar.bz2
D-Bus: Report error on starting P2P find
Signed-off-by: Vasyl Vavrychuk <vvavrychuk@gmail.com>
Diffstat (limited to 'wpa_supplicant/dbus/dbus_new_handlers_p2p.c')
-rw-r--r--wpa_supplicant/dbus/dbus_new_handlers_p2p.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
index a04783d..9305b9a 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
@@ -146,8 +146,11 @@ DBusMessage * wpas_dbus_handler_p2p_find(DBusMessage *message,
wpa_s = wpa_s->global->p2p_init_wpa_s;
- wpas_p2p_find(wpa_s, timeout, type, num_req_dev_types, req_dev_types,
- NULL, 0, 0, NULL, freq);
+ if (wpas_p2p_find(wpa_s, timeout, type, num_req_dev_types,
+ req_dev_types, NULL, 0, 0, NULL, freq))
+ reply = wpas_dbus_error_unknown_error(
+ message, "Could not start P2P find");
+
os_free(req_dev_types);
return reply;