[PATCH] report error of P2P find over D-Bus
Dan Williams
dcbw at redhat.com
Thu Feb 1 10:49:58 PST 2018
On Thu, 2018-02-01 at 14:07 +0200, Vasyl Vavrychuk wrote:
> Signed-off-by: Vasyl Vavrychuk <vvavrychuk at gmail.com>
LGTM.
Dan
> ---
> 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;
>
More information about the Hostap
mailing list