[PATCH BlueZ 1/3] core: Fix repeated connection attempt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch fixes possible repeated connections attempt to the same
remote device when there is an attempt pending, since device drivers
can request independently ATT connections.
---
 src/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/device.c b/src/device.c
index 7ff09aa..5988d37 100644
--- a/src/device.c
+++ b/src/device.c
@@ -3102,7 +3102,7 @@ guint btd_device_add_attio_callback(struct btd_device *device,
 		} else {
 			device->attios = g_slist_append(device->attios, attio);
 		}
-	} else {
+	} else if (device->auto_id == 0) {
 		device->auto_id = g_idle_add_full(G_PRIORITY_DEFAULT_IDLE,
 						att_connect, device,
 						att_connect_dispatched);
-- 
1.7.8.6

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux