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.
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;