Thread (12 messages) 12 messages, 2 authors, 2012-11-26
STALE4988d

[PATCH BlueZ 08/11] network: Fix not responding to Device.ConnectProfile

From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Date: 2012-11-26 13:09:19
Subsystem: the rest · Maintainer: Linus Torvalds

From: Luiz Augusto von Dentz <redacted>

The callback passed to connection_connect has to be used to respond when
the connection completes.
---
 profiles/network/connection.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/profiles/network/connection.c b/profiles/network/connection.c
index 231164b..912e5b4 100644
--- a/profiles/network/connection.c
+++ b/profiles/network/connection.c
@@ -417,6 +417,8 @@ int connection_connect(struct btd_device *device, uint16_t id,
 
 	nc->state = CONNECTING;
 	nc->owner = g_strdup(owner);
+	nc->cb = cb;
+	nc->cb_data = data;
 
 	if (owner)
 		nc->watch = g_dbus_add_disconnect_watch(
-- 
1.7.11.7
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help