From 928fba8492bbc39d0c140558c865a1d2d4240740 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 26 Nov 2012 15:09:19 +0200 Subject: [PATCH] network: Fix not responding to Device.ConnectProfile 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 240344672..5d3b230a6 100644 --- a/profiles/network/connection.c +++ b/profiles/network/connection.c @@ -419,6 +419,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( -- 2.11.0