@@ -78,6 +78,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \
file://0001-adapter-restrict-delta-0-RSSI-to-proximity-filters.patch \
file://0001-avdtp-Fix-error-handling-for-AVDTP_OPEN-cmd.patch \
file://0001-avdtp-Fix-GET_CONFIGURATION-cmd.patch \
+ file://0001-avdtp-Return-correct-error-when-SEP-is-inuse.patch \
"
S = "${UNPACKDIR}/bluez-${PV}"
new file mode 100644
@@ -0,0 +1,33 @@
+From f1bbe63447bcc69beb546bc1e26a4e99c529d70e Mon Sep 17 00:00:00 2001
+From: Simon Mikuda <simon.mikuda@streamunlimited.com>
+Date: Tue, 9 Jun 2026 23:30:13 +0200
+Subject: [PATCH] avdtp: Return correct error when SEP is inuse
+
+This fixes AVDTP/SNK/ACP/SIG/SMG/BI-08-C
+Upstream-Status: Backport [https://github.com/bluez/bluez/commit/39ad431de60b896a03904887a0f1d0285b719edd]
+Signed-off-by: Simon Mikuda <simon.mikuda@streamunlimited.com>
+Signed-off-by: Jinwang Li <jinwang.li@oss.qualcomm.com>
+---
+ profiles/audio/avdtp.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c
+index 7cfc9a80d..b57ba609b 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.34.1
+
Reject AVDTP_SET_CONFIGURATION with SEP_IN_USE when the SEID is already bound to an active stream. Signed-off-by: Jinwang Li <jinwang.li@oss.qualcomm.com> --- meta/recipes-connectivity/bluez5/bluez5.inc | 1 + ...turn-correct-error-when-SEP-is-inuse.patch | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 meta/recipes-connectivity/bluez5/bluez5/0001-avdtp-Return-correct-error-when-SEP-is-inuse.patch