Skip to contentSkip to conversation

obex: Fix always searching UUID using 128 bit format

PATCH Applied Luiz Augusto von Dentz 1 participant 2 messages Oct 5, 2017 – Oct 6, 2017 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 obex: Fix always searching UUID using 128 bit format

From: Luiz Augusto von Dentz <[email protected]>

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(+)
obexd/client/bluetooth.c +2 -0
index e35124a0c..0c043e0ac 100644
@@ -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);
 
Signature · 1 line
2.13.6
author maintainer Applied
#1 lore raw

Hi,

Quoted 22 lines · Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

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(+)
obexd/client/bluetooth.c +2 -1
index e35124a0c..0c043e0ac 100644
@@ -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);
 
--
Quoted 2 lines

2.13.6

Applied.

Signature · 1 line
Luiz Augusto von Dentz