Thread (7 messages) 7 messages, 2 authors, 2012-01-31
STALE5291d

[PATCH BlueZ 3/6] device: Fix doing SDP discovery for LE devices after the bonding is complete

From: Vinicius Costa Gomes <hidden>
Date: 2012-01-31 17:10:50
Subsystem: the rest · Maintainer: Linus Torvalds

---
 src/device.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/device.c b/src/device.c
index 596ec0b..88cd4cc 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2380,8 +2380,12 @@ void device_bonding_complete(struct btd_device *device, uint8_t status)
 			device->discov_timer = 0;
 		}
 
-		device_browse_sdp(device, bonding->conn, bonding->msg,
-				NULL, FALSE);
+		if (device_is_bredr(device))
+			device_browse_sdp(device, bonding->conn, bonding->msg,
+								NULL, FALSE);
+		else
+			device_browse_primary(device, bonding->conn,
+							bonding->msg, FALSE);
 
 		bonding_request_free(bonding);
 	} else {
-- 
1.7.8.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help