[PATCH BlueZ] core: Fix connecting to an already connected device on pairing

Subsystems: the rest

STALE5094d

2 messages, 2 authors, 2012-10-11 · open the first message on its own page

[PATCH BlueZ] core: Fix connecting to an already connected device on pairing

From: João Paulo Rechi Vita <hidden>
Date: 2012-10-11 05:30:46

---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/device.c b/src/device.c
index d85d41c..0635dee 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2940,7 +2940,7 @@ DBusMessage *device_create_bonding(struct btd_device *device,
 	device->bonding = bonding;
 	bonding->device = device;
 
-	if (device_is_le(device)) {
+	if (device_is_le(device) && !device_is_connected(device)) {
 		adapter_connect_list_add(adapter, device);
 		return NULL;
 	}
-- 
1.7.11.4

Re: [PATCH BlueZ] core: Fix connecting to an already connected device on pairing

From: Johan Hedberg <hidden>
Date: 2012-10-11 06:58:37

João Paulo,

On Thu, Oct 11, 2012, João Paulo Rechi Vita wrote:
---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Applied. Thanks.

Johan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help