OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
985d3e8
)
core: Add reasoning for ATT connection during paring
author
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 25 Jan 2013 16:10:53 +0000
(18:10 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 25 Jan 2013 16:10:53 +0000
(18:10 +0200)
src/device.c
patch
|
blob
|
history
diff --git
a/src/device.c
b/src/device.c
index
9878b71
..
34902b3
100644
(file)
--- a/
src/device.c
+++ b/
src/device.c
@@
-1428,6
+1428,11
@@
static DBusMessage *pair_device(DBusConnection *conn, DBusMessage *msg,
device->bonding = bonding;
bonding->device = device;
+ /* Due to a bug in the kernel we might loose out on ATT commands
+ * that arrive during the SMP procedure, so connect the ATT
+ * channel first and only then start pairing (there's code for
+ * this in the ATT connect callback)
+ */
if (device_is_le(device) && !device_is_connected(device))
err = device_connect_le(device);
else