From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ] obex: Fix always searching UUID using 128 bit format
Date: Thu, 5 Oct 2017 16:11:09 +0300 [thread overview]
Message-ID: <20171005131109.13999-1-luiz.dentz@gmail.com> (raw)
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
next reply other threads:[~2017-10-05 13:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-05 13:11 Luiz Augusto von Dentz [this message]
2017-10-06 6:44 ` [PATCH BlueZ] obex: Fix always searching UUID using 128 bit format Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171005131109.13999-1-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox