public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] obex: Fix always searching UUID using 128 bit format
@ 2017-10-05 13:11 Luiz Augusto von Dentz
  2017-10-06  6:44 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2017-10-05 13:11 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

When discovering the SDP records the code should attempt to use
16 bit format whenever possible.
---
 obexd/client/bluetooth.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/obexd/client/bluetooth.c b/obexd/client/bluetooth.c
index e35124a0c..0c043e0ac 100644
--- a/obexd/client/bluetooth.c
+++ b/obexd/client/bluetooth.c
@@ -306,6 +306,8 @@ static gboolean service_callback(GIOChannel *io, GIOCondition cond,
 	if (bt_string2uuid(&uuid, session->service) < 0)
 		goto failed;
 
+	sdp_uuid128_to_uuid(&uuid);
+
 	search = sdp_list_append(NULL, &uuid);
 	attrid = sdp_list_append(NULL, &range);
 
-- 
2.13.6


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH BlueZ] obex: Fix always searching UUID using 128 bit format
  2017-10-05 13:11 [PATCH BlueZ] obex: Fix always searching UUID using 128 bit format Luiz Augusto von Dentz
@ 2017-10-06  6:44 ` Luiz Augusto von Dentz
  0 siblings, 0 replies; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2017-10-06  6:44 UTC (permalink / raw)
  To: linux-bluetooth@vger.kernel.org

Hi,

On Thu, Oct 5, 2017 at 4:11 PM, Luiz Augusto von Dentz
<luiz.dentz@gmail.com> wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> When discovering the SDP records the code should attempt to use
> 16 bit format whenever possible.
> ---
>  obexd/client/bluetooth.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/obexd/client/bluetooth.c b/obexd/client/bluetooth.c
> index e35124a0c..0c043e0ac 100644
> --- a/obexd/client/bluetooth.c
> +++ b/obexd/client/bluetooth.c
> @@ -306,6 +306,8 @@ static gboolean service_callback(GIOChannel *io, GIOCondition cond,
>         if (bt_string2uuid(&uuid, session->service) < 0)
>                 goto failed;
>
> +       sdp_uuid128_to_uuid(&uuid);
> +
>         search = sdp_list_append(NULL, &uuid);
>         attrid = sdp_list_append(NULL, &range);
>
> --
> 2.13.6
>

Applied.

-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-06  6:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-05 13:11 [PATCH BlueZ] obex: Fix always searching UUID using 128 bit format Luiz Augusto von Dentz
2017-10-06  6:44 ` Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox