diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-02-23 16:31:19 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-03-02 12:19:39 -0800 |
commit | 1923f5dd9068308e880eab5609becc601b41d286 (patch) | |
tree | 5bf27900ada7f0d4ee37d4ad3a8ae86cb940a65a /src/device.c | |
parent | 2be849c2398bb57424053ffd6ca408ef907469bc (diff) | |
download | bluez-1923f5dd9068308e880eab5609becc601b41d286.tar.gz |
device: Don't attempt to connect LE if ATT is already connected
This checks if an att instance already exists before attempting to
connect it once again.
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c index d270421cc..cb16d37c1 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); |