From patchwork Mon Oct 19 08:23:42 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinwang Li X-Patchwork-Id: 101261 X-Patchwork-Delegate: yoann.congal@smile.fr Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id F356FCCF2E0 for ; Mon, 19 Oct 2026 08:24:04 +0000 (UTC) Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.29872.1792398237546518446 for ; Mon, 19 Oct 2026 01:23:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=PnYid0Ih; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: qualcomm.com, ip: 205.220.180.131, mailfrom: jinwli@qualcomm.com) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69J7n7ZA1089230 for ; Mon, 19 Oct 2026 08:23:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=AposdZkazPx lKr/rfbl4wQfuhry0aK4wdjdwby8lBNw=; b=PnYid0IhFxzYKehsE+sSFl/yQ/I cGilP6D1JD2+fBZGeu3YiuLUH+ut4VNV7K3Rs8VATmf9DGeHKZyHCp0SVH4tckY2 ODXY4nYaVsNN3Y+a3UDZG5bDJWGPMqYW7yvSAbS56O7CNRAo2G2WzE9B8ja2/irp hQRKLtLjZVesNpOY9v+Sqr7hjrdveURgAG8/MzTSamxMS2henxRDzlyoiGMYwkdb MWKzFEVWW71tLhR2z817uMAd81h6LmpXxqoITOH9x8XG9mR5Tbei9SN2/iLsLBs5 GneLp6s7gR7IABHPG+RPKwSerz9LE7+2AMTS/+yg9NgLarvW8U59I1WiX9Q== Received: from aptaippmta01.qualcomm.com (tpe-colo-wan-fw-bordernet.qualcomm.com [103.229.16.4]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf5c8491-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Mon, 19 Oct 2026 08:23:56 +0000 (GMT) Received: from pps.filterd (aptaippmta01.qualcomm.com [127.0.0.1]) by APTAIPPMTA01.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 69J8NrYd4111236; Mon, 19 Oct 2026 08:23:53 GMT Received: from bt-iot-sh02-lnx.ap.qualcomm.com (smtphost-taiwan.qualcomm.com [10.249.136.33]) by APTAIPPMTA01.qualcomm.com (PPS) with ESMTPS id 69J8Nrax4111188 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 19 Oct 2026 08:23:53 +0000 (GMT) Received: by bt-iot-sh02-lnx.ap.qualcomm.com (Postfix, from userid 4467392) id 8667C23C36; Mon, 19 Oct 2026 16:23:52 +0800 (CST) From: Jinwang Li To: openembedded-core@lists.openembedded.org Cc: cheng.jiang@oss.qualcomm.com, quic_chezhou@quicinc.com, wei.deng@oss.qualcomm.com, shuai.zhang@oss.qualcomm.com, mengshi.wu@oss.qualcomm.com, jinwang.li@oss.qualcomm.com, xiuzhuo.shang@oss.qualcomm.com Subject: [wrynose][PATCH 1/5] bluez5: Fix error handling for AVDTP_OPEN cmd Date: Mon, 19 Oct 2026 16:23:42 +0800 Message-Id: <20261019082346.3287363-2-jinwang.li@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261019082346.3287363-1-jinwang.li@oss.qualcomm.com> References: <20261019082346.3287363-1-jinwang.li@oss.qualcomm.com> MIME-Version: 1.0 X-Proofpoint-Reinject: loops=2 maxloops=12 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDAzMyBTYWx0ZWRfX4kdvmJi9D0Af Lr015XsExDHokfFRmx+WCqrqRwTZWemIAyf0PMIbER6hSXBETpaDOBVMRspxU+ArQ/NQ+TD8qTb ebmYc8DR+RH9Ev39Ht5sxVW8056+Tlg= X-Proofpoint-ORIG-GUID: CEnPOjOJ2l6MDAwaY1D1gffzM94eKaaE X-Proofpoint-GUID: CEnPOjOJ2l6MDAwaY1D1gffzM94eKaaE X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDAzMyBTYWx0ZWRfXwQUe8N59Il1s xqoxNCicvDIGnE8SXIH60eVfcVLm5HaWgvr47lFkLaOh5SYqlON9kTuXJYNDR6FA6C/sbmTf/gj dQf2KWDruftJ7SuxXum3dYZSQUJvUcc+12kZ/lCJY/ATmW35FqLa7/wyTe8Sf4zrvCVYdFtby0O pAjABFYI2tZVo8uvrMrLKtIVy69mhcqHA/4EFQXqrqtTMtykpHQybqT0ZGN7Yrc5L0I0T+PxLou fh7n8/XL9f8g+SKfKOW3oscgSZ6jQ+4ygB8R5RQJD9RZ+RmK6cH61csIzeilTsd2RNCYkbi8/VD gfx+3JXOhEoXUB+AAbLPlNmBMhVWspnQ12hLE6j1KQDLo8gVSG0l4BHppNjLz3xJuY91Vd8luJG dMXoxoAZwuwR4nSwr4ovLyc6CznIdPEu1uli2+JwcWxNtjYGO/IeljsrCPmxv0i5gmtXS0FZfXJ X4TWF4Adoq41IrXV+UA== X-Authority-Analysis: v=2.4 cv=K6O3jCWI c=1 sm=1 tr=0 ts=6ad5d39c cx=c_pps a=nuhDOHQX5FNHPW3J6Bj6AA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=NEAV23lmAAAA:8 a=EUspDBNiAAAA:8 a=jIbkme_7AAAA:8 a=mlo28EofXKx8c11XVc4A:9 a=4Z6V1Uo88S3JekNeKaJk:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 malwarescore=0 adultscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190033 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 19 Oct 2026 08:24:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/248144 Return BAD_STATE instead of BAD_ACP_SEID when the SEID maps to a valid local SEP. Signed-off-by: Jinwang Li --- meta/recipes-connectivity/bluez5/bluez5.inc | 1 + ...ix-error-handling-for-AVDTP_OPEN-cmd.patch | 49 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 meta/recipes-connectivity/bluez5/bluez5/0001-avdtp-Fix-error-handling-for-AVDTP_OPEN-cmd.patch diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc index d857c23a57..169269d377 100644 --- a/meta/recipes-connectivity/bluez5/bluez5.inc +++ b/meta/recipes-connectivity/bluez5/bluez5.inc @@ -76,6 +76,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ file://0001-src-device-Fix-stored-gatt-cache-DB-Hash-value-no.patch \ file://0001-profile-Set-L2CAP-IMTU-for-OBEX-profile-listeners.patch \ file://0001-adapter-restrict-delta-0-RSSI-to-proximity-filters.patch \ + file://0001-avdtp-Fix-error-handling-for-AVDTP_OPEN-cmd.patch \ " S = "${UNPACKDIR}/bluez-${PV}" diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-avdtp-Fix-error-handling-for-AVDTP_OPEN-cmd.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-avdtp-Fix-error-handling-for-AVDTP_OPEN-cmd.patch new file mode 100644 index 0000000000..0d346a2258 --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-avdtp-Fix-error-handling-for-AVDTP_OPEN-cmd.patch @@ -0,0 +1,49 @@ +From 4e0aba5a8ebd969b68cd3442e9f8066a4b15a366 Mon Sep 17 00:00:00 2001 +From: Simon Mikuda +Date: Mon, 8 Jun 2026 13:29:23 +0200 +Subject: [PATCH] avdtp: Fix error handling for AVDTP_OPEN cmd + +We have to return BAD_STATE when local SEP is available instead of +BAD_ACP_SEID. + +This fixes: AVDTP/SNK/ACP/SIG/SMG/BI-26-C +Upstream-Status: Backport [https://github.com/bluez/bluez/commit/7c1c90f7b6d0f653c581878a039e2d02362f33f5] +Signed-off-by: Simon Mikuda +Signed-off-by: Jinwang Li +--- + profiles/audio/avdtp.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c +index b57ba609b..56d27b973 100644 +--- a/profiles/audio/avdtp.c ++++ b/profiles/audio/avdtp.c +@@ -1777,13 +1777,14 @@ static gboolean avdtp_open_cmd(struct avdtp *session, uint8_t transaction, + return FALSE; + } + +- stream = find_stream_by_lseid(session, req->acp_seid); +- if (!stream) { ++ sep = find_local_sep_by_seid(session, req->acp_seid); ++ if (!sep) { + err = AVDTP_BAD_ACP_SEID; + goto failed; + } + +- if (stream->state != AVDTP_STATE_CONFIGURED) { ++ stream = find_stream_by_lsep(session, sep); ++ if (!stream || stream->state != AVDTP_STATE_CONFIGURED) { + err = AVDTP_BAD_STATE; + goto failed; + } +@@ -1796,7 +1797,6 @@ static gboolean avdtp_open_cmd(struct avdtp *session, uint8_t transaction, + AVDTP_OPEN, NULL, 0); + } + +- sep = stream->lsep; + if (sep->ind && sep->ind->open && !session->pending_open) { + if (!sep->ind->open(session, sep, stream, &err, + sep->user_data)) +-- +2.34.1 + From patchwork Mon Oct 19 08:23:43 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinwang Li X-Patchwork-Id: 101260 X-Patchwork-Delegate: yoann.congal@smile.fr Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D04EBCCF2E3 for ; Mon, 19 Oct 2026 08:24:04 +0000 (UTC) Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.29871.1792398237501148498 for ; Mon, 19 Oct 2026 01:23:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=m0Bh29Dl; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: qualcomm.com, ip: 205.220.180.131, mailfrom: jinwli@qualcomm.com) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69J7nJjq1089874 for ; Mon, 19 Oct 2026 08:23:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=6+DQprWnQGx YkqOIgTnWFUb/eZiCFyKzn43PYX65U1U=; b=m0Bh29Dldz5KbyEKuPkw5ZxvTeZ Hfu8lk/vnnoEoVHVj5Ab4dzM+u8SHqpeNFLdyc1qsW5MZ7fin6tZeNNTGCPLRV/x ozldPJHqeQXs5Y3c/DHv7xLAGgY6LVixuh8nE4ddzkGaxi2bakYQPJn+D0yeNp/2 0rE23Ordhbk8HmZU9COb8+AE2akl3yNdw7L761fgsAROHiGS6hwiTSLB2zKh1C/3 oKvIieprLB0qQPY8Vbw/R5Qs/CWR64g79ZUZ7PVWs2KCXivpesRyt0NAAlPAsBU2 L+XYpl6GFSkNffHssml4UbOtROH2+fnj+uqDet9MqR/cHjbiG0KGZwA+vtg== Received: from aptaippmta02.qualcomm.com (tpe-colo-wan-fw-bordernet.qualcomm.com [103.229.16.4]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf5c8490-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Mon, 19 Oct 2026 08:23:56 +0000 (GMT) Received: from pps.filterd (aptaippmta02.qualcomm.com [127.0.0.1]) by APTAIPPMTA02.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 69J8Nrqv4111158; Mon, 19 Oct 2026 08:23:53 GMT Received: from bt-iot-sh02-lnx.ap.qualcomm.com (smtphost-taiwan.qualcomm.com [10.249.136.33]) by APTAIPPMTA02.qualcomm.com (PPS) with ESMTPS id 69J8Nr1r4111141 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 19 Oct 2026 08:23:53 +0000 (GMT) Received: by bt-iot-sh02-lnx.ap.qualcomm.com (Postfix, from userid 4467392) id 8A88823C59; Mon, 19 Oct 2026 16:23:52 +0800 (CST) From: Jinwang Li To: openembedded-core@lists.openembedded.org Cc: cheng.jiang@oss.qualcomm.com, quic_chezhou@quicinc.com, wei.deng@oss.qualcomm.com, shuai.zhang@oss.qualcomm.com, mengshi.wu@oss.qualcomm.com, jinwang.li@oss.qualcomm.com, xiuzhuo.shang@oss.qualcomm.com Subject: [wrynose][PATCH 2/5] bluez5: Fix GET_CONFIGURATION cmd Date: Mon, 19 Oct 2026 16:23:43 +0800 Message-Id: <20261019082346.3287363-3-jinwang.li@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261019082346.3287363-1-jinwang.li@oss.qualcomm.com> References: <20261019082346.3287363-1-jinwang.li@oss.qualcomm.com> MIME-Version: 1.0 X-Proofpoint-Reinject: loops=2 maxloops=12 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDAzMyBTYWx0ZWRfXyHznAapGdGCL CzcPZ2ybKN5w6lM1fuOaqGqouniKPel+jFcqULqzXXk3QUe/sWurFnRNxg6Zindvki2lFkWYJRs rc6BCzLU4xwDvXOXJKgGkMXR0HfnM9c= X-Proofpoint-ORIG-GUID: JweShCyXZ5ZSlRguMy6jTcKEsAWuIWYV X-Proofpoint-GUID: JweShCyXZ5ZSlRguMy6jTcKEsAWuIWYV X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDAzMyBTYWx0ZWRfX0yHfc/IF2rS0 mF3OBLtHeZOvxME+hW2fwdYwXsCQswMmuU6h08PZ0dF26wz9tobLA8CAFk5KrQJLvhoD73tE3ei vP0dWmmDJQGUA0uUZLjre87gktcqZSNXgbr/VmeE1ydx4hvXQQkfCr4//5NFNd+Er+jy7Ey6/dx 5Gesur057OU4ArYMgpnmPXPCLolOkVbAPNfuiQJawd/H+fVQde+caR9GP4mg75PThL4g/h6M9OR f5L3h8+Nkql9O9bviwEpDT8X/W88+czS5Cbn3PnrQx8Q7v/FDZ2plYdp0VXodzvJVA9sECuFmKC KHfqtuI62sRIbN9+2TQJF9nodb7yi27fIN2n5QkLWaZoVZIwX3Via9DLwBHWBoq5hqhPazFw1h+ Hj/ZH8fj/9iVNW1RgMj6+s9hrtuMENxyS/Z3cnyfc+R9D6lWw6Dmf5nfO6ZyTqAMs+zuwMXz2aY B+fzCNQRGXp3K9/dHIQ== X-Authority-Analysis: v=2.4 cv=K6O3jCWI c=1 sm=1 tr=0 ts=6ad5d39c cx=c_pps a=nuhDOHQX5FNHPW3J6Bj6AA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=NEAV23lmAAAA:8 a=EUspDBNiAAAA:8 a=jIbkme_7AAAA:8 a=4HOn1LdvDNRzZusI_zYA:9 a=4Z6V1Uo88S3JekNeKaJk:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 malwarescore=0 adultscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190033 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 19 Oct 2026 08:24:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/248143 Check the resolved stream instead of an always-NULL sep pointer when testing for BAD_ACP_SEID. Signed-off-by: Jinwang Li --- meta/recipes-connectivity/bluez5/bluez5.inc | 1 + ...0001-avdtp-Fix-GET_CONFIGURATION-cmd.patch | 37 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 meta/recipes-connectivity/bluez5/bluez5/0001-avdtp-Fix-GET_CONFIGURATION-cmd.patch diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc index 169269d377..7e05bda4f1 100644 --- a/meta/recipes-connectivity/bluez5/bluez5.inc +++ b/meta/recipes-connectivity/bluez5/bluez5.inc @@ -77,6 +77,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ file://0001-profile-Set-L2CAP-IMTU-for-OBEX-profile-listeners.patch \ 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 \ " S = "${UNPACKDIR}/bluez-${PV}" diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-avdtp-Fix-GET_CONFIGURATION-cmd.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-avdtp-Fix-GET_CONFIGURATION-cmd.patch new file mode 100644 index 0000000000..eb1738f75c --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-avdtp-Fix-GET_CONFIGURATION-cmd.patch @@ -0,0 +1,37 @@ +From 8e5ca68aeee22970e3ccf3bbb30c050938ba09a2 Mon Sep 17 00:00:00 2001 +From: Simon Mikuda +Date: Mon, 8 Jun 2026 13:29:22 +0200 +Subject: [PATCH] avdtp: Fix GET_CONFIGURATION cmd + +This fixes AVDTP/SNK/ACP/SIG/SMG/BV-12-C +Upstream-Status: Backport [https://github.com/bluez/bluez/commit/60437c06560e46d211aaf99620cc9510dfd8081f] +Signed-off-by: Simon Mikuda +Signed-off-by: Jinwang Li +--- + profiles/audio/avdtp.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c +index d475a545e..7cfc9a80d 100644 +--- a/profiles/audio/avdtp.c ++++ b/profiles/audio/avdtp.c +@@ -1641,7 +1641,6 @@ static gboolean avdtp_getconf_cmd(struct avdtp *session, uint8_t transaction, + struct seid_req *req, int size) + { + GSList *l; +- struct avdtp_local_sep *sep = NULL; + struct avdtp_stream *stream; + int rsp_size; + uint8_t err; +@@ -1656,7 +1655,7 @@ static gboolean avdtp_getconf_cmd(struct avdtp *session, uint8_t transaction, + memset(buf, 0, sizeof(buf)); + + stream = find_stream_by_lseid(session, req->acp_seid); +- if (!sep) { ++ if (!stream) { + err = AVDTP_BAD_ACP_SEID; + goto failed; + } +-- +2.34.1 + From patchwork Mon Oct 19 08:23:44 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinwang Li X-Patchwork-Id: 101258 X-Patchwork-Delegate: yoann.congal@smile.fr Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3561CCF2DA for ; Mon, 19 Oct 2026 08:24:04 +0000 (UTC) Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.29873.1792398238096242586 for ; Mon, 19 Oct 2026 01:23:58 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=ibcphYJ1; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: qualcomm.com, ip: 205.220.180.131, mailfrom: jinwli@qualcomm.com) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69J4jG591555639 for ; Mon, 19 Oct 2026 08:23:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=onL/3M68Fp+ JK5R1t7ROOq2zGlNyDXsNkMnzNSISf2E=; b=ibcphYJ1PV1tYZNL9GwTcTZ1VZ8 gNE3w2DDirpMdC7FZGHwyFa3kwLQa2saFEjitL6OsbxIX/rkudDYiul+G87JhODj cyXrLSeBxOFBSMpxYGbFn0W2H2Dg/qEQbnysU1xwhThCWgQ6cwQL6zrTCf0zxh5k ckMwVgBosJgW4DGSJ9szi/WbH7desBkVeoIWSpatwZAwwjWWP4qaUGWHkOksb9iD 4srtErWxsnuBDl5WnBWVqKlTnqtbFnvu5+ExnvyLgT5LwEBjaVCHBB9zWDcwCrpV c7gHKjpmi081KEO8J27m5yvf22/y4O7M9Fg6Do9RyRmoIzDoMyw+pvRF01A== Received: from aptaippmta01.qualcomm.com (tpe-colo-wan-fw-bordernet.qualcomm.com [103.229.16.4]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hd5ur1sby-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Mon, 19 Oct 2026 08:23:56 +0000 (GMT) Received: from pps.filterd (aptaippmta01.qualcomm.com [127.0.0.1]) by APTAIPPMTA01.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 69J8NrSb4111219; Mon, 19 Oct 2026 08:23:53 GMT Received: from bt-iot-sh02-lnx.ap.qualcomm.com (smtphost-taiwan.qualcomm.com [10.249.136.33]) by APTAIPPMTA01.qualcomm.com (PPS) with ESMTPS id 69J8NrEu4111186 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 19 Oct 2026 08:23:53 +0000 (GMT) Received: by bt-iot-sh02-lnx.ap.qualcomm.com (Postfix, from userid 4467392) id 8EEA524341; Mon, 19 Oct 2026 16:23:52 +0800 (CST) From: Jinwang Li To: openembedded-core@lists.openembedded.org Cc: cheng.jiang@oss.qualcomm.com, quic_chezhou@quicinc.com, wei.deng@oss.qualcomm.com, shuai.zhang@oss.qualcomm.com, mengshi.wu@oss.qualcomm.com, jinwang.li@oss.qualcomm.com, xiuzhuo.shang@oss.qualcomm.com Subject: [wrynose][PATCH 3/5] bluez5: Return correct error when SEP is inuse Date: Mon, 19 Oct 2026 16:23:44 +0800 Message-Id: <20261019082346.3287363-4-jinwang.li@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261019082346.3287363-1-jinwang.li@oss.qualcomm.com> References: <20261019082346.3287363-1-jinwang.li@oss.qualcomm.com> MIME-Version: 1.0 X-Proofpoint-Reinject: loops=2 maxloops=12 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDAzMyBTYWx0ZWRfXwc4C+v8bESiF hXRfRnfust4LWsp0pLgrQhIiOrmq5Wi1APMgEuaOq4W7AhPMGbMCNzrxGzUf8V5QP5ydsIOhAjq 3OSbSBOiYIjNXLwA1x3cDZeYSSWbbpA= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDAzMyBTYWx0ZWRfX+i5pIOPcj3MV v5CCxfzlAXaJ1q61AWvlePmeOn1aSiujLV2E+Fup/AWAPR7W594H02rtM8mTB+dOIrPTcRh2I2+ xXUrqaFF8mZyoJ+aml80lqAzTVr7eqohXeA2x71J2m0JAotCCckQU/+gDUCNSQebmAu38vt963o BhGPnpFqraT/GyBF4GpCtwMcx3+pRqqEKKhAGN7cBgLwQhwz2ZA2ClOzBPnI0xh3HIEbIY5TFwF bb6HDAj2lDpfF1VHsHPOkTGw9X0Olwj0dH1FGgxednjHUaX0yn3rUwWzz2uBDCMNm0M67j06U4s iDkzdUDdQ2AG34mXEwvT6zovHdcjtuW/YHRqYbNPzlI1DevuIOozKo7s/KcpxcEVlIfn4OqAK0R NsiSR33oJMw1pQqDPz+ZtwNW6F+qVa9kw46Xd3xk9KGTdwERgjxm27yPQGKlHZgoGUhKigJx7fh OKc9qavFaokp7KfmVkg== X-Proofpoint-ORIG-GUID: 3vjgaN88n0IaV6flAGhqLqRmLjnKtf3V X-Proofpoint-GUID: 3vjgaN88n0IaV6flAGhqLqRmLjnKtf3V X-Authority-Analysis: v=2.4 cv=CP6/zhrD c=1 sm=1 tr=0 ts=6ad5d39c cx=c_pps a=nuhDOHQX5FNHPW3J6Bj6AA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=NEAV23lmAAAA:8 a=EUspDBNiAAAA:8 a=jIbkme_7AAAA:8 a=IccVTasTp-42yIGwOJcA:9 a=4Z6V1Uo88S3JekNeKaJk:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 priorityscore=1501 spamscore=0 impostorscore=0 phishscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190033 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 19 Oct 2026 08:24:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/248146 Reject AVDTP_SET_CONFIGURATION with SEP_IN_USE when the SEID is already bound to an active stream. Signed-off-by: Jinwang Li --- 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 diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc index 7e05bda4f1..de9835e5a7 100644 --- a/meta/recipes-connectivity/bluez5/bluez5.inc +++ b/meta/recipes-connectivity/bluez5/bluez5.inc @@ -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}" diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-avdtp-Return-correct-error-when-SEP-is-inuse.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-avdtp-Return-correct-error-when-SEP-is-inuse.patch new file mode 100644 index 0000000000..76121a7eb6 --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-avdtp-Return-correct-error-when-SEP-is-inuse.patch @@ -0,0 +1,33 @@ +From f1bbe63447bcc69beb546bc1e26a4e99c529d70e Mon Sep 17 00:00:00 2001 +From: Simon Mikuda +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 +Signed-off-by: Jinwang Li +--- + 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 + From patchwork Mon Oct 19 08:23:45 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinwang Li X-Patchwork-Id: 101259 X-Patchwork-Delegate: yoann.congal@smile.fr Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BE82CCF2DF for ; Mon, 19 Oct 2026 08:24:04 +0000 (UTC) Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.30012.1792398237653906394 for ; Mon, 19 Oct 2026 01:23:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=aXqS0993; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: qualcomm.com, ip: 205.220.180.131, mailfrom: jinwli@qualcomm.com) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69J4iu551405347 for ; Mon, 19 Oct 2026 08:23:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=FGt3NZ4kIQA 7Fv6FZ2ollMFSh0kpDfgU8FaBwhC1WNc=; b=aXqS0993d45RV7Tcru0wec0TCBM 6I8XmdGxGaQs4rIoH4G8pZNrChxB32AxgoXq9DlthkzUR6ijF6KEry0t6GPVMtFT GXF/rq9PhoqL5DeLU00X6kQMlElNyqfe3fnDYEfbVnv9tN8+v3b+pxgEZ1ehHYSn 27TK3ERL2oWwbV6kxceBh0MXyM1RG75MXnIYg08sB1XYbJ91F5jY7THosNKq++dG EInBPuSrt4hPxXyK8Q5ploNUq1kS3RnwsZN+wcQfPHfsY0KMKMDmxFGtwqOguAfk z5iB3hO8tTz+oYHgFay82JKpeotyWX3M0hd+pANVJ+9MtkKrmj0VDNRGtmQ== Received: from aptaippmta01.qualcomm.com (tpe-colo-wan-fw-bordernet.qualcomm.com [103.229.16.4]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdbvr8xc4-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Mon, 19 Oct 2026 08:23:56 +0000 (GMT) Received: from pps.filterd (aptaippmta01.qualcomm.com [127.0.0.1]) by APTAIPPMTA01.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 69J8Nrtu4111220; Mon, 19 Oct 2026 08:23:53 GMT Received: from bt-iot-sh02-lnx.ap.qualcomm.com (smtphost-taiwan.qualcomm.com [10.249.136.33]) by APTAIPPMTA01.qualcomm.com (PPS) with ESMTPS id 69J8Nror4111187 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 19 Oct 2026 08:23:53 +0000 (GMT) Received: by bt-iot-sh02-lnx.ap.qualcomm.com (Postfix, from userid 4467392) id 9392924342; Mon, 19 Oct 2026 16:23:52 +0800 (CST) From: Jinwang Li To: openembedded-core@lists.openembedded.org Cc: cheng.jiang@oss.qualcomm.com, quic_chezhou@quicinc.com, wei.deng@oss.qualcomm.com, shuai.zhang@oss.qualcomm.com, mengshi.wu@oss.qualcomm.com, jinwang.li@oss.qualcomm.com, xiuzhuo.shang@oss.qualcomm.com Subject: [wrynose][PATCH 4/5] bluez5: Fix ABORT response being discarded Date: Mon, 19 Oct 2026 16:23:45 +0800 Message-Id: <20261019082346.3287363-5-jinwang.li@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261019082346.3287363-1-jinwang.li@oss.qualcomm.com> References: <20261019082346.3287363-1-jinwang.li@oss.qualcomm.com> MIME-Version: 1.0 X-Proofpoint-Reinject: loops=2 maxloops=12 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDAzMyBTYWx0ZWRfXxDIM99Ywy2Lr 5JAPf8sMdbngt13d6n8oOisUCMurDohEiywtsOJyb7Z87XyboTYi2BSIrrxf757TNO4CXwGZdtw tzJPx29plwAj1uHTykqZ5PzopYP28HeU0E7vGANRM1IVsej+w+T7PBY3DsQEVUVY9TpCjgYTOLD yXozpshxRSyotLyztYVArbOz2y3Z0RSfDbPgO+uXnl060dHmiQzMsN4SdkIiyycmxuqe66DQS1W vT3NsIkKY4sNS/bbRcPz9/SkZM89Xugcg2LjVt++FJdVELaNllr4U9R0xmqW4390PMao9JDN5TH Xk4mq9aN0WE9gRUT6amz9pOvoH3/J7/5yDgBbwJK5SeBXCAHtXffj26mXbCbYRbV6xr0XemCeG5 ky2beReNBI0cwhLjYu2iRbhbnwFDfqo1foI78Cd7147k8b6e/NtSVIddy9qQ6cTTLWHeuWRpZju acKCeuhOclM8QO64fFg== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDAzMyBTYWx0ZWRfX1wDOdzKbXnib C2wSwglJBLZ5ZxTDic47qCzD5i4ZMRp1u/Ch9VK79yUw8QlRBeSGvVNT33jDo6kit7fawrAOUD+ qSd8NdGjjz4XWrWjvpNq/CPFBlJGlVc= X-Proofpoint-GUID: xpmH9Gx5znuzr1aqskFeNe3Dej2fHync X-Authority-Analysis: v=2.4 cv=K/+3jCWI c=1 sm=1 tr=0 ts=6ad5d39c cx=c_pps a=nuhDOHQX5FNHPW3J6Bj6AA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=NEAV23lmAAAA:8 a=EUspDBNiAAAA:8 a=GEOtgntP3vMpD6wtaq8A:9 X-Proofpoint-ORIG-GUID: xpmH9Gx5znuzr1aqskFeNe3Dej2fHync X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 spamscore=0 suspectscore=0 adultscore=0 impostorscore=0 clxscore=1015 bulkscore=0 lowpriorityscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190033 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 19 Oct 2026 08:24:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/248145 Send the ABORT response after transfer_complete(), since it clears the pending tx queue and was discarding the response first. Signed-off-by: Jinwang Li --- meta/recipes-connectivity/bluez5/bluez5.inc | 1 + ...x-Fix-ABORT-response-being-discarded.patch | 44 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 meta/recipes-connectivity/bluez5/bluez5/0001-gobex-Fix-ABORT-response-being-discarded.patch diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc index de9835e5a7..db650acdd0 100644 --- a/meta/recipes-connectivity/bluez5/bluez5.inc +++ b/meta/recipes-connectivity/bluez5/bluez5.inc @@ -79,6 +79,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ 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 \ + file://0001-gobex-Fix-ABORT-response-being-discarded.patch \ " S = "${UNPACKDIR}/bluez-${PV}" diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-gobex-Fix-ABORT-response-being-discarded.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-gobex-Fix-ABORT-response-being-discarded.patch new file mode 100644 index 0000000000..5c0d7414ee --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-gobex-Fix-ABORT-response-being-discarded.patch @@ -0,0 +1,44 @@ +From 38a88cc433e0bc3cccb6dab126e484fc06ccd8bb Mon Sep 17 00:00:00 2001 +From: Jinwang Li +Date: Thu, 27 Aug 2026 16:36:51 +0800 +Subject: [PATCH] gobex: Fix ABORT response being discarded + +g_obex_drop_tx_queue() in transfer_complete() clears any pending tx, +so the ABORT success response should be enqueued after transfer_complete(). + +Fixes the following PTS test cases: +- OPP/SR/OPH/BV-27-I +- FTP/SR/OTR/BV-02-C +- PBAP/PSE/PDF/BV-06-I +- PBAP/PSE/PBF/BV-03-I + +Fixes: 7a35c12a6ceb ("gobex: Fix segfault caused by interrupted transfer") +Upstream-Status: Backport [https://github.com/bluez/bluez/commit/d094be10ff0cc9d48714d35557e0fd297f36f907] +Assisted-by: Claude:claude-sonnet-5 +Signed-off-by: Jinwang Li +--- + gobex/gobex-transfer.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/gobex/gobex-transfer.c b/gobex/gobex-transfer.c +index c94d018b2..e4c7c557d 100644 +--- a/gobex/gobex-transfer.c ++++ b/gobex/gobex-transfer.c +@@ -314,11 +314,12 @@ static void transfer_abort_req(GObex *obex, GObexPacket *req, gpointer user_data + + err = g_error_new(G_OBEX_ERROR, G_OBEX_ERROR_CANCELLED, + "Request was aborted"); +- rsp = g_obex_packet_new(G_OBEX_RSP_SUCCESS, TRUE, G_OBEX_HDR_INVALID); +- g_obex_send(obex, rsp, NULL); + + transfer_complete(transfer, err); + g_error_free(err); ++ ++ rsp = g_obex_packet_new(G_OBEX_RSP_SUCCESS, TRUE, G_OBEX_HDR_INVALID); ++ g_obex_send(obex, rsp, NULL); + } + + static guint8 put_get_bytes(struct transfer *transfer, GObexPacket *req) +-- +2.34.1 + From patchwork Mon Oct 19 08:23:46 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinwang Li X-Patchwork-Id: 101257 X-Patchwork-Delegate: yoann.congal@smile.fr Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71600CCF2D6 for ; Mon, 19 Oct 2026 08:24:04 +0000 (UTC) Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.30013.1792398238716290627 for ; Mon, 19 Oct 2026 01:23:58 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=HveV20yE; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: qualcomm.com, ip: 205.220.180.131, mailfrom: jinwli@qualcomm.com) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69J7n7ja1089224 for ; Mon, 19 Oct 2026 08:23:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=8hVTaLr+ZcX e+ZApqZF/B/id3qOHjUtGhEVgOZPEZF8=; b=HveV20yEMkjWiKZ/Gh2x466djdF eft33/sF8GbHjxaKe65b4kFXmdW/ZxeziWXrHP6ZkvHAE8Ya+DZL3844baUTsQ6P eIDzsw+ztmWYG+BctF7JE+v7oIfJoC/PsN2shoyl3TSrTBWOhxSCRCL1/u1HPSSz lXZFaHIo79HI8kysG4jPdjhHijYVo2kaB3zp3vrI+FmLy8c72MgyIHk/FRkJJ5+I WiKpoaIzHYhwTqvHhrZ9RwgXub8ZIItfsnTr6S/hkRizYOAEQvDn230GzAgUrQVk e6JYjnK0uIX4qjaO5agMI98DUP+l3rCkTY614lZIy6Mly/g2/C9JrVKPXiw== Received: from aptaippmta01.qualcomm.com (tpe-colo-wan-fw-bordernet.qualcomm.com [103.229.16.4]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf5c8492-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Mon, 19 Oct 2026 08:23:57 +0000 (GMT) Received: from pps.filterd (aptaippmta01.qualcomm.com [127.0.0.1]) by APTAIPPMTA01.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 69J8NrSc4111219 for ; Mon, 19 Oct 2026 08:23:55 GMT Received: from bt-iot-sh02-lnx.ap.qualcomm.com (smtphost-taiwan.qualcomm.com [10.249.136.33]) by APTAIPPMTA01.qualcomm.com (PPS) with ESMTPS id 69J8Ns5E4111265 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 19 Oct 2026 08:23:54 +0000 (GMT) Received: by bt-iot-sh02-lnx.ap.qualcomm.com (Postfix, from userid 4467392) id 993A224343; Mon, 19 Oct 2026 16:23:52 +0800 (CST) From: Jinwang Li To: openembedded-core@lists.openembedded.org Cc: cheng.jiang@oss.qualcomm.com, quic_chezhou@quicinc.com, wei.deng@oss.qualcomm.com, shuai.zhang@oss.qualcomm.com, mengshi.wu@oss.qualcomm.com, jinwang.li@oss.qualcomm.com, xiuzhuo.shang@oss.qualcomm.com Subject: [wrynose][PATCH 5/5] bluez5: Fix u128_to_string skipping data[4] Date: Mon, 19 Oct 2026 16:23:46 +0800 Message-Id: <20261019082346.3287363-6-jinwang.li@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261019082346.3287363-1-jinwang.li@oss.qualcomm.com> References: <20261019082346.3287363-1-jinwang.li@oss.qualcomm.com> MIME-Version: 1.0 X-Proofpoint-Reinject: loops=2 maxloops=12 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDAzMyBTYWx0ZWRfX3Df84Ufh+rtA AQQoVq8cXQOUiXLmTeJQ1w0JDdCV0JvJDjT7EeALMfHX9uW0kS08748oPA5g6t7VmedK4u43CCF Pdj4asZdQGjxxTNGai4sR8e7ooGIWSY= X-Proofpoint-ORIG-GUID: bmUYpdWmpr075O3xfhgXyjSc2ct3qCfM X-Proofpoint-GUID: bmUYpdWmpr075O3xfhgXyjSc2ct3qCfM X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDAzMyBTYWx0ZWRfX/7KhcF8JzNE4 5JL34AotA8E+gbyOCbdCB1bGw5utLWmZQMeqG89J2JRftI/fs0Yv5wXQEm75VHM111/7iaxqWSh h30wxD2Z6BjOGIWFNRfqAqHNJb4hEnG9MV6uRQ9erY5LEGH+gBWiWoeSvS6I6FBWD8EzAq/iEJh JCt8g3+UZNifJCi6V+5t2IzuJC2j+g4FF75u/sRJ6zK5A07ZQNIMSfLWIb3NE1qhGaWniEVhq38 iZSU2J2fdmbAU1+PdimgXWZoLnFEXbYgnWVhw9g8cRjC2oBxyeS2CMme2rLFFwTNszdtm/kBMko 7U2SgayNtIk1noSFL/iV5+vuv8VamASn7RhVC6ImALaBQtmv/N8McO7LcMk+lrUmFV9KgsuZnC8 gw2V5SfEBLYZr9IGUk3l8KEtbGk+EouFFXzedGyAJlbcl5iYvyjjJ3p7ZU4c7NS1Ni6fNlrHbzT dOpJRQ6ZSBAL4fkd1Pg== X-Authority-Analysis: v=2.4 cv=K6O3jCWI c=1 sm=1 tr=0 ts=6ad5d39d cx=c_pps a=nuhDOHQX5FNHPW3J6Bj6AA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=NEAV23lmAAAA:8 a=EUspDBNiAAAA:8 a=Ce38G63GkGelMzpPKy8A:9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 malwarescore=0 adultscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190033 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 19 Oct 2026 08:24:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/248147 data[3] was used twice, skipping data[4] in the output string. Signed-off-by: Jinwang Li --- meta/recipes-connectivity/bluez5/bluez5.inc | 1 + ...p-Fix-u128_to_string-skipping-data-4.patch | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 meta/recipes-connectivity/bluez5/bluez5/0001-obexd-pbap-Fix-u128_to_string-skipping-data-4.patch diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc index db650acdd0..75d76cf96d 100644 --- a/meta/recipes-connectivity/bluez5/bluez5.inc +++ b/meta/recipes-connectivity/bluez5/bluez5.inc @@ -80,6 +80,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ file://0001-avdtp-Fix-GET_CONFIGURATION-cmd.patch \ file://0001-avdtp-Return-correct-error-when-SEP-is-inuse.patch \ file://0001-gobex-Fix-ABORT-response-being-discarded.patch \ + file://0001-obexd-pbap-Fix-u128_to_string-skipping-data-4.patch \ " S = "${UNPACKDIR}/bluez-${PV}" diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-obexd-pbap-Fix-u128_to_string-skipping-data-4.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-obexd-pbap-Fix-u128_to_string-skipping-data-4.patch new file mode 100644 index 0000000000..338bc228c1 --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-obexd-pbap-Fix-u128_to_string-skipping-data-4.patch @@ -0,0 +1,33 @@ +From 198f4e0785644cea2b2154b383fc4ad354707947 Mon Sep 17 00:00:00 2001 +From: Jinwang Li +Date: Wed, 23 Sep 2026 11:29:57 +0800 +Subject: [PATCH] obexd/pbap: Fix u128_to_string skipping data[4] + +u128_to_string uses data[3] twice causing data[4] to be skipped and +DatabaseIdentifier, PrimaryCounter and SecondaryCounter properties to +be printed with wrong values. + +Fixes: 5ee26d43c65c ("obexd/client: Add DatabaseIdentifier property") +Upstream-Status: Backport [https://github.com/bluez/bluez/commit/8b4a4176063831476bc9244d20f43b552e4b5554] +Assisted-by: opencode:claude-sonnet-5 +Signed-off-by: Jinwang Li +--- + obexd/client/pbap.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/obexd/client/pbap.c b/obexd/client/pbap.c +index 0f575e61e..d89b6aafa 100644 +--- a/obexd/client/pbap.c ++++ b/obexd/client/pbap.c +@@ -1098,7 +1098,7 @@ static int u128_to_string(uint8_t *data, char *str, size_t len) + return snprintf(str, len, "%02X%02X%02X%02X%02X%02X%02X%02X" + "%02X%02X%02X%02X%02X%02X%02X%02X", + data[0], data[1], data[2], data[3], +- data[3], data[5], data[6], data[7], ++ data[4], data[5], data[6], data[7], + data[8], data[9], data[10], data[11], + data[12], data[13], data[14], data[15]); + } +-- +2.34.1 +