--- client/session.c | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/client/session.c b/client/session.c index 423eb8c..d8e3bf2 100644 --- a/client/session.c +++ b/client/session.c @@ -848,11 +848,21 @@ proceed: callback->func = function; callback->data = user_data; - req = send_method_call(session->conn_system, + if (source) { + req = send_method_call(session->conn_system, + BT_BUS_NAME, BT_PATH, + BT_MANAGER_IFACE, "FindAdapter", + manager_reply, callback, + DBUS_TYPE_STRING, &source, + DBUS_TYPE_INVALID); + } else { + req = send_method_call(session->conn_system, BT_BUS_NAME, BT_PATH, BT_MANAGER_IFACE, "DefaultAdapter", manager_reply, callback, DBUS_TYPE_INVALID); + } + if (!req) { session_unref(session); g_free(callback); -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html