aboutsummaryrefslogtreecommitdiffstats
path: root/src/adapter.c
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2012-01-31 14:10:51 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-01-31 09:32:44 -0800
commit16e63f9e39109a24da42aaf763cf69fdf3bfbce9 (patch)
tree1bdd3793fa87b27d51642edc853217d7c68133dd /src/adapter.c
parent3a19051954b0cafb184814fff90b373beb979eb2 (diff)
downloadbluez-16e63f9e39109a24da42aaf763cf69fdf3bfbce9.tar.gz
bluez-16e63f9e39109a24da42aaf763cf69fdf3bfbce9.tar.xz
bluez-16e63f9e39109a24da42aaf763cf69fdf3bfbce9.zip
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.
Diffstat (limited to 'src/adapter.c')
-rw-r--r--src/adapter.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/adapter.c b/src/adapter.c
index d5075db7..25f70ff1 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)