From 623577103727cf441f6c83fe908348d10fa84121 Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Thu, 12 Jan 2012 14:59:41 -0400 Subject: [PATCH] Add missing "Legacy" property for LE devices Some UIs may assume that a device lacking the Legacy property is pre 2.1. To be more consistent with BR/EDR devices, always set Legacy property explicitly to False. This makes these UIs not ask for a PIN code when doing Just Works pairing for LE devices. --- src/adapter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/adapter.c b/src/adapter.c index e65780e56..7e4bbb6fb 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -2671,11 +2671,14 @@ void adapter_emit_device_found(struct btd_adapter *adapter, else broadcaster = TRUE; + dev->legacy = FALSE; + emit_device_found(adapter->path, paddr, "Address", DBUS_TYPE_STRING, &paddr, "RSSI", DBUS_TYPE_INT16, &rssi, "Name", DBUS_TYPE_STRING, &dev->name, "Alias", DBUS_TYPE_STRING, &alias, + "LegacyPairing", DBUS_TYPE_BOOLEAN, &dev->legacy, "Paired", DBUS_TYPE_BOOLEAN, &paired, "Broadcaster", DBUS_TYPE_BOOLEAN, &broadcaster, "UUIDs", DBUS_TYPE_ARRAY, &dev->uuids, uuid_count, -- 2.47.3