Skip to contentSkip to conversation

core: Fix not adding UUID found during pairing

PATCH Applied Luiz Augusto von Dentz 2 participants 2 messages Jun 25, 2013 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 core: Fix not adding UUID found during pairing

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

This is a regression introduce by de63199f0c89fce76180edd40359fde4b13c54c1 where the list of UUID found is always empty thus causing no driver to be probed.

---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/device.c +1 -1
index c324764..edd377c 100644
@@ -2694,7 +2694,7 @@ static int update_record(struct browse_req *req, const char *uuid,
 	if (l == NULL) {
 		l = g_slist_find_custom(req->profiles_added, uuid,
 							bt_uuid_strcmp);
-		if (l == NULL)
+		if (l != NULL)
 			return 0;
 		req->profiles_added = g_slist_append(req->profiles_added,
 							g_strdup(uuid));
Signature · 1 line
1.8.1.4
#1 lore raw

Hi Luiz,

Quoted 6 lines · Luiz Augusto von Dentz

This is a regression introduce by de63199f0c89fce76180edd40359fde4b13c54c1 where the list of UUID found is always empty thus causing no driver to be probed.

---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied. Thanks.

Johan