Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ] avdtp: Return correct error when SEP is inuse
@ 2026-06-09 21:30 Simon Mikuda
  2026-06-09 23:06 ` [BlueZ] " bluez.test.bot
  2026-06-10 18:40 ` [PATCH BlueZ] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Simon Mikuda @ 2026-06-09 21:30 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Simon Mikuda

This fixes AVDTP/SNK/ACP/SIG/SMG/BI-08-C
---
 profiles/audio/avdtp.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c
index 6be6e99b4..56d27b973 100644
--- a/profiles/audio/avdtp.c
+++ b/profiles/audio/avdtp.c
@@ -1556,6 +1556,12 @@ static gboolean avdtp_setconf_cmd(struct avdtp *session, uint8_t transaction,
 		goto failed;
 	}
 
+	/* check if SEID is in use */
+	if (find_stream_by_lsep(session, sep)) {
+		err = AVDTP_SEP_IN_USE;
+		goto failed;
+	}
+
 	switch (sep->info.type) {
 	case AVDTP_SEP_TYPE_SOURCE:
 		service = btd_device_get_service(session->device,
-- 
2.43.0


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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-09 21:30 [PATCH BlueZ] avdtp: Return correct error when SEP is inuse Simon Mikuda
2026-06-09 23:06 ` [BlueZ] " bluez.test.bot
2026-06-10 18:40 ` [PATCH BlueZ] " patchwork-bot+bluetooth

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