diff options
Diffstat (limited to 'hcid/dbus-common.c')
-rw-r--r-- | hcid/dbus-common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hcid/dbus-common.c b/hcid/dbus-common.c index 4caef1ef..4cbc42aa 100644 --- a/hcid/dbus-common.c +++ b/hcid/dbus-common.c @@ -54,6 +54,7 @@ #include "dbus-error.h" #include "manager.h" #include "adapter.h" +#include "device.h" #include "dbus-hci.h" #include "dbus-service.h" #include "dbus-database.h" @@ -294,6 +295,8 @@ void hcid_dbus_exit(void) release_default_auth_agent(); release_services(conn); + device_cleanup(); + /* Unregister all paths in Adapter path hierarchy */ if (!dbus_connection_list_registered(conn, BASE_PATH, &children)) goto done; @@ -337,6 +340,9 @@ int hcid_dbus_init(void) if (!security_init(conn, BASE_PATH)) return -1; + if (device_init(conn) == FALSE) + return -1; + set_dbus_connection(conn); return 0; |