From 4ffd914ee997ff998b8716efe2c4b0460d296c75 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 26 Nov 2012 15:09:21 +0200 Subject: [PATCH] network: Fix always attempting to connect to PANU service connection_connect takes the remote role as parameter not the local one. --- profiles/network/manager.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/profiles/network/manager.c b/profiles/network/manager.c index 06abe1bc7..06ef9fc10 100644 --- a/profiles/network/manager.c +++ b/profiles/network/manager.c @@ -100,8 +100,7 @@ static int connect_profile(struct btd_device *dev, struct btd_profile *profile, req->profile = profile; req->cb = cb; - err = connection_connect(dev, BNEP_SVC_PANU, NULL, connect_profile_cb, - req); + err = connection_connect(dev, id, NULL, connect_profile_cb, req); if (err < 0) { g_free(req); return err; -- 2.11.0