@@ -8976,6 +8976,11 @@ static int adapter_register(struct btd_adapter *adapter)
agent_unref(agent);
}
+ if (g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL) {
+ adapter->battery_provider_manager =
+ btd_battery_provider_manager_create(adapter);
+ }
+
/* Don't start GATT database and advertising managers on
* non-LE controllers.
*/
@@ -9010,11 +9015,6 @@ static int adapter_register(struct btd_adapter *adapter)
}
}
- if (g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL) {
- adapter->battery_provider_manager =
- btd_battery_provider_manager_create(adapter);
- }
-
db = btd_gatt_database_get_db(adapter->database);
adapter->db_id = gatt_db_register(db, services_modified,
services_modified,