diff --git a/proximity/reporter.c b/proximity/reporter.c
index bbb97ea..c5a3bb8 100644
--- a/proximity/reporter.c
+++ b/proximity/reporter.c
HIGH_ALERT = 0x02,
};
+static DBusConnection *connection;
+
static void register_link_loss(struct btd_adapter *adapter)
{
uint16_t start_handle, h;
return -ENOTSUP;
}
+ connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
+ if (connection == NULL)
+ return -EIO;
DBG("Proximity Reporter for adapter %p", adapter);
register_link_loss(adapter);
void reporter_exit(struct btd_adapter *adapter)
{
+ dbus_connection_unref(connection);
}