All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/5] device: Don't attempt to connect LE if ATT is already connected
@ 2023-03-01  1:38 Luiz Augusto von Dentz
  2023-03-01  1:38 ` [PATCH BlueZ 2/5] client: Allow transport.send command to work with multiple transports Luiz Augusto von Dentz
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Luiz Augusto von Dentz @ 2023-03-01  1:38 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This checks if an att instance already exists before attempting to
connect it once again.
---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/device.c b/src/device.c
index d270421cc7c9..cb16d37c1ae1 100644
--- a/src/device.c
+++ b/src/device.c
@@ -5422,7 +5422,7 @@ int device_connect_le(struct btd_device *dev)
 	char addr[18];
 
 	/* There is one connection attempt going on */
-	if (dev->att_io)
+	if (dev->att_io || dev->att)
 		return -EALREADY;
 
 	ba2str(&dev->bdaddr, addr);
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-03-02 20:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-01  1:38 [PATCH BlueZ 1/5] device: Don't attempt to connect LE if ATT is already connected Luiz Augusto von Dentz
2023-03-01  1:38 ` [PATCH BlueZ 2/5] client: Allow transport.send command to work with multiple transports Luiz Augusto von Dentz
2023-03-01  1:38 ` [PATCH BlueZ 3/5] shared/bap: Cleanup requests on detach Luiz Augusto von Dentz
2023-03-01  1:38 ` [PATCH BlueZ 4/5] share/gatt-client: Introduce idle callback Luiz Augusto von Dentz
2023-03-01  1:38 ` [PATCH BlueZ 5/5] media: Fix not checking BREDR support for A2DP Luiz Augusto von Dentz
2023-03-01  4:58 ` [BlueZ,1/5] device: Don't attempt to connect LE if ATT is already connected bluez.test.bot
2023-03-02 20:30 ` [PATCH BlueZ 1/5] " patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.