Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ] set: Abandon the use of the existing set gatt-db
@ 2026-06-18  2:52 zhangchen200426
  2026-06-18  7:14 ` [BlueZ] " bluez.test.bot
  2026-06-18 13:33 ` [PATCH BlueZ] " Luiz Augusto von Dentz
  0 siblings, 2 replies; 3+ messages in thread
From: zhangchen200426 @ 2026-06-18  2:52 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Chen Zhang

From: Chen Zhang <zhangchen01@kylinos.cn>

When pairing and connecting a pair of earbuds, if you attempt to connect the
second earbud while one earbud is already connected, reusing the existing
set gatt-db will interrupt the GATT procedure. Subsequently, the attribute
values will no longer be read, and the ASE state will not switch. This will
eventually prevent the second earbud from creating a CIS, resulting in no sound
output from the later-connected earbud during music playback.

Signed-off-by: Zhang Chen <zhangchen01@kylinos.cn>
---
 src/set.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/src/set.c b/src/set.c
index 4ca2f78c3..0f2e9613c 100644
--- a/src/set.c
+++ b/src/set.c
@@ -282,20 +282,6 @@ static void foreach_rsi(void *data, void *user_data)
 	if (memcmp(ad->data, res, sizeof(res)))
 		return;
 
-	/* Attempt to use existing gatt_db from set if device has never been
-	 * connected before.
-	 *
-	 * If dbs don't really match bt_gatt_client will attempt to rediscover
-	 * the ranges that don't match.
-	 */
-	if (gatt_db_isempty(btd_device_get_gatt_db(set->device))) {
-		struct btd_device *device;
-
-		device = queue_get_entries(set->devices)->data;
-		btd_device_set_gatt_db(set->device,
-					btd_device_get_gatt_db(device));
-	}
-
 	device_connect_le(set->device);
 }
 
-- 
2.25.1


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

end of thread, other threads:[~2026-06-18 13:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-18  2:52 [PATCH BlueZ] set: Abandon the use of the existing set gatt-db zhangchen200426
2026-06-18  7:14 ` [BlueZ] " bluez.test.bot
2026-06-18 13:33 ` [PATCH BlueZ] " Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox