Hi,
On Thu, 2014-04-03 at 10:07 +0300, Tomasz Bursztyka wrote:
> Identify which part does not support P2P: wpa_supplicant or the
> interface itself.
> ---
> gsupplicant/supplicant.c | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
> index 39ff2f1..da33aed 100644
> --- a/gsupplicant/supplicant.c
> +++ b/gsupplicant/supplicant.c
> @@ -1925,7 +1925,14 @@ static void interface_p2p_flush(const char *error,
> {
> GSupplicantInterface *interface = user_data;
>
> - if (!error)
> + if (error) {
> + if (!g_strcmp0(error,
> + "org.freedesktop.DBus.Error.UnknownMethod"))
> + g_warning("wpa_supplicant built without P2P support");
> + else
> + g_warning("interface %s does not support P2P",
> + interface->ifname);
> + } else
> interface->p2p_support = true;
>
> callback_p2p_support(interface);
Maybe use a connman_warn() instead, but as the message will potentially
repeat quite many times while ConnMan is running, a DBG will also do
just fine. We'll dig out the P2P unsupport from the logs later when
nothing works and nobody knows why.
Cheers,
Patrik
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman