OSDN Git Service

network: Fix always attempting to connect to PANU service
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 26 Nov 2012 13:09:21 +0000 (15:09 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 26 Nov 2012 14:36:15 +0000 (16:36 +0200)
connection_connect takes the remote role as parameter not the local one.

profiles/network/manager.c

index 06abe1b..06ef9fc 100644 (file)
@@ -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;