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:
9f887ae
)
core: Add reasoning for mgmt_pair_device timeout
author
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 25 Jan 2013 16:12:44 +0000
(18:12 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 25 Jan 2013 16:12:44 +0000
(18:12 +0200)
src/adapter.c
patch
|
blob
|
history
diff --git
a/src/adapter.c
b/src/adapter.c
index
beb50cd
..
37da297
100644
(file)
--- a/
src/adapter.c
+++ b/
src/adapter.c
@@
-4878,6
+4878,11
@@
int adapter_create_bonding(struct btd_adapter *adapter, const bdaddr_t *bdaddr,
}
adapter->pair_device_id = id;
+
+ /* Due to a bug in the kernel it is possible that a LE pairing
+ * request never times out. Therefore, add a timer to clean up
+ * if no response arrives
+ */
adapter->pair_device_timeout = g_timeout_add_seconds(BONDING_TIMEOUT,
pair_device_timeout, data);