Diff between 9f887aed6cf6904dd88631c2432501b71d2b71de and 52659e10c05c72b6598b6b0db180b0fcad2e4a2d
Changed Files
| File | Additions | Deletions | Status |
| src/adapter.c | +5 | -0 | modified |
Full Patch
diff --git a/src/adapter.c b/src/adapter.c
index beb50cd..37da297 100644
--- 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);