summaryrefslogtreecommitdiffstats
path: root/src/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index f8014e00..b385814c 100644
--- a/src/device.c
+++ b/src/device.c
@@ -254,6 +254,13 @@ static DBusMessage *get_properties(DBusConnection *conn,
ptr = adapter_get_path(adapter);
dict_append_entry(&dict, "Adapter", DBUS_TYPE_OBJECT_PATH, &ptr);
+ if (read_remote_eir(&src, &device->bdaddr, NULL) < 0)
+ boolean = TRUE;
+ else
+ boolean = FALSE;
+
+ dict_append_entry(&dict, "LegacyPairing", DBUS_TYPE_BOOLEAN, &boolean);
+
dbus_message_iter_close_container(&iter, &dict);
return reply;