[PATCH] report error of P2P find over D-Bus
Vasyl Vavrychuk
vvavrychuk at gmail.com
Thu Feb 1 04:07:30 PST 2018
Signed-off-by: Vasyl Vavrychuk <vvavrychuk at gmail.com>
---
wpa_supplicant/dbus/dbus_new_handlers_p2p.c | 7 +++++--
1 file 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 73b9e20c2..c0d010675 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
@@ -129,8 +129,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, 0);
+ if (wpas_p2p_find(wpa_s, timeout, type, num_req_dev_types, req_dev_types,
+ NULL, 0, 0, NULL, 0))
+ reply = wpas_dbus_error_unknown_error(message,
+ "Could not start P2P find");
+
os_free(req_dev_types);
return reply;
--
2.11.0
More information about the Hostap
mailing list