From b7d93813b4f141ff26356f305f2c0881f7d20cf0 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Wed, 10 Feb 2010 20:44:36 +0100 Subject: [PATCH] Bring bluetooth interfaces up at startup With the current code we're powering up the bluetooth devices through change_powered, which gets indirectly called from connman_device_register() through adapter_properties_reply(). Since we're calling connman_device_register() withouth setting the device path, change_powered actually does nothing. We have to set the device path before calling connman_device_register() and then the bluetooth devices will actually be powered up. --- plugins/bluetooth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index 6780874..ef852dd 100644 --- a/plugins/bluetooth.c +++ b/plugins/bluetooth.c @@ -625,6 +625,8 @@ static void adapter_properties_reply(DBusPendingCall *call, void *user_data) connman_device_set_mode(device, CONNMAN_DEVICE_MODE_NETWORK_MULTIPLE); + connman_device_set_string(device, "Path", path); + if (connman_device_register(device) < 0) { connman_device_unref(device); goto done; -- 2.7.4