From 16e63f9e39109a24da42aaf763cf69fdf3bfbce9 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Tue, 31 Jan 2012 14:10:51 -0300 Subject: [PATCH] device: Fix not using the same way for pairing LE devices Now that both backends (hciops and mgmtops) are capable of pairing LE devices, we don't have to force the procedure. --- src/adapter.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/adapter.c b/src/adapter.c index d5075db74..25f70ff1c 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -1578,15 +1578,7 @@ static DBusMessage *create_paired_device(DBusConnection *conn, return btd_error_failed(msg, strerror(-err)); } - if (device_is_bredr(device)) - return device_create_bonding(device, conn, msg, - agent_path, cap); - - err = device_browse_primary(device, conn, msg, TRUE); - if (err < 0) - return btd_error_failed(msg, strerror(-err)); - - return NULL; + return device_create_bonding(device, conn, msg, agent_path, cap); } static gint device_path_cmp(struct btd_device *device, const gchar *path) -- 2.47.3