summaryrefslogtreecommitdiffstats
path: root/src/device.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-12-04 15:51:04 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2008-12-04 15:51:04 +0200
commit49ab8b0601cfa8380f68b9e57319984478751267 (patch)
treea6f9cd14a6c5c3f32bae1c8e4c54cd3c784eccea /src/device.c
parent0f26327986cf2a0aae3b3e30faf3728dfb36f6d5 (diff)
Add support for the LegacyPairing property
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;