summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-02-21 15:07:35 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2014-02-21 16:15:56 +0200
commita9f523e0c3627ea2ea3c894c2d34b756ee533637 (patch)
tree8131637cbee6d1db8c7197742dcf03a1c28fa3d1 /plugins
parente87dadbe1bbfa39feead7488a06605e0cda29ecb (diff)
downloadbluez-a9f523e0c3627ea2ea3c894c2d34b756ee533637.tar.gz
core: Split LE and BR/EDR states for devices
For dual mode devices there are several state variables that are independent for each bearer. This patch splits these states up into two separate variable groups in btd_device and tracks the values based on what kind of connection is in question. The information is also used to select which bearer to use with Device1.Connect and Device1.Pair. The basic rule is that the bearer that's not connected/paired is selected, or then the bearer over which the device was last seen is selected.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/neard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/neard.c b/plugins/neard.c
index ba3b6680b..137d601c5 100644
--- a/plugins/neard.c
+++ b/plugins/neard.c
@@ -327,7 +327,7 @@ static int check_device(struct btd_device *device)
return -ENOENT;
/* If already paired */
- if (device_is_paired(device)) {
+ if (device_is_paired(device, BDADDR_BREDR)) {
DBG("already paired");
return -EALREADY;
}