From patchwork Wed Oct 21 10:08:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinwang Li X-Patchwork-Id: 101562 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.8050.1792577316663013516 for ; Wed, 21 Oct 2026 03:08:36 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=j7+f7ZBK; 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.168.131, mailfrom: jinwli@qualcomm.com) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69LA5YZs335128; Wed, 21 Oct 2026 10:08:36 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=+33BbLM8g66 NbumOE5aKlvtWSXKDKSRWDDLzkVmOsiY=; b=j7+f7ZBKosEvYnnx/DYMc+w/da1 R3Xdx8ngykMHjYaac5e8larsrGSYj3llJqqWlBSVtxPRrlK9q2btmW3LB7YgukC9 3ONG0hz1QHyAEbuWDmeeVT/fiLFuc3FinmZMBTHoe8ATNAHMg2YMfjQtqnvsaJyQ yqE7bqgw3KkjqmTo5KEhDMbipXuDdhpQbGwZtfX/gJkMKRNRJPm+4saVNUTxTxqo P+4mjG4yB6I5b/4I/aER9TABEiwOVUUmhMU6kYW/4Y3jOCCduafhw2nbjzgughh2 H3p6I4EhRx7+eNrlVb3ZPAoCx6fY8yC7nBRnCcL/VPq97Rm+eUfN7Mde4JA== 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 4hetj486yb-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 21 Oct 2026 10:08:35 +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 69LA8XFX3533787; Wed, 21 Oct 2026 10:08:33 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 69LA8Xwk3533743 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 21 Oct 2026 10:08:33 +0000 (GMT) Received: by bt-iot-sh02-lnx.ap.qualcomm.com (Postfix, from userid 4467392) id 7F83E235D5; Wed, 21 Oct 2026 18:08:32 +0800 (CST) From: Jinwang Li To: openembedded-core@lists.openembedded.org, yoann.congal@smile.fr 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 v2 1/5] bluez5: Fix error handling for AVDTP_OPEN cmd Date: Wed, 21 Oct 2026 18:08:25 +0800 Message-Id: <20261021100829.2460593-2-jinwang.li@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261021100829.2460593-1-jinwang.li@oss.qualcomm.com> References: <20261021100829.2460593-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-ORIG-GUID: G3fPIaiyZSZT6w4x0XpA1orJYR4wggYP X-Proofpoint-GUID: G3fPIaiyZSZT6w4x0XpA1orJYR4wggYP X-Authority-Analysis: v=2.4 cv=N768hG9B c=1 sm=1 tr=0 ts=6ad88f24 cx=c_pps a=nuhDOHQX5FNHPW3J6Bj6AA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=NEAV23lmAAAA:8 a=EUspDBNiAAAA:8 a=jIbkme_7AAAA:8 a=mlo28EofXKx8c11XVc4A:9 a=4Z6V1Uo88S3JekNeKaJk:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA0MCBTYWx0ZWRfX83YAzklM/VZU FDxsEsQmmxg9CBQ0F+FgpH64iSDzRAw9IZ60z6w4Jfj4NfWxyps4xfXroSNUaEYiKS+b5izF+nA wlC3UkpVwNFsKO36qfsow8QC6mK/dXd5Bhi9veNEZRbmsrJHWAjCUZSzbSCzQwgf+Z0sMOi410Y /710tveJammYP5klNnt9Eo0cpqxiRdIkBfZ0JvILos8op9TchEamUGXzsCRKu3Y+Kifm4eMnK+u P/uh/tapq3A/dTGB0wMuIPF5E0joJBy5lbdIUWpkhOXlqQe9gmS3nLAu3/TwUSwh9MEAaEBQdbv tdhdAqsj3QS54uztLAKaN67zXcJ0Qlm9wczj4B9zBL9tCDBze621imKtYSaKf+SHrGl6+y+Cfq/ nqh2CXftgRkGUq7OuhPvIy/nmrGsnwM/jEHfSw9SVVCe5t3RkQVoV1QE/INVh3gdTOsrRRDZQgy Emk8pVe3h99wr+/zuYQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA0MCBTYWx0ZWRfX36wflrP8Ryad lkT/hWVYO2c75wUwBllZJrBOffyatfrxBRAvfj6Np2+YcU72BTbv4TCIfh4HEVrQU2bftvFvXXw Q4gT9ycv7EDdLwFS+FWtfEp43pcorJA= 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-21_03,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 clxscore=1015 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210040 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 21 Oct 2026 10:08:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/248382 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 | 48 +++++++++++++++++++ 2 files changed, 49 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..ba77d1e046 --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-avdtp-Fix-error-handling-for-AVDTP_OPEN-cmd.patch @@ -0,0 +1,48 @@ +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: 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 Wed Oct 21 10:08:26 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinwang Li X-Patchwork-Id: 101564 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.8080.1792577316772348172 for ; Wed, 21 Oct 2026 03:08:36 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=SJlYyScQ; 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.168.131, mailfrom: jinwli@qualcomm.com) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69LA5k4d1391613; Wed, 21 Oct 2026 10:08:36 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=mUtpxK75LQD nV5sNdiwj3MOfGz+3kOY6Z/aFvR2USxM=; b=SJlYyScQXrPEnUFvgsaCzHD2D/B anUzoKrcTkqmq0WzzBZE04x2CKTo5ox4iLt20f40FKqYkNpyAOzpP9NQMazY1GUO ZRPocS85I0CVqnGYWTwH7p9xH66uhQRjn5XSarQTOHo3xw378R1HKk/plYZRK5Z0 HA4nL105eCrahqc9mbb9nM849P1NaegWwCGbQKFzms8P8kU+YdLuk+5yHM/RonKb NidJ7yIRSKjTexpcWr6FLI19UfQUlJo/xs3BDiFCIndwUXbBM8L+t01RIXLhIyob EwVlfaMBJQKaLUbfAiD1sC0FXUMbM47oTyq0i36XvNfAHuwHdJ9VLpAPDpg== 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 4hedabke26-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 21 Oct 2026 10:08:36 +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 69LA8Xw53533784; Wed, 21 Oct 2026 10:08:33 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 69LA8XMj3533741 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 21 Oct 2026 10:08:33 +0000 (GMT) Received: by bt-iot-sh02-lnx.ap.qualcomm.com (Postfix, from userid 4467392) id 84C5E23A64; Wed, 21 Oct 2026 18:08:32 +0800 (CST) From: Jinwang Li To: openembedded-core@lists.openembedded.org, yoann.congal@smile.fr 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 v2 2/5] bluez5: Fix GET_CONFIGURATION cmd Date: Wed, 21 Oct 2026 18:08:26 +0800 Message-Id: <20261021100829.2460593-3-jinwang.li@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261021100829.2460593-1-jinwang.li@oss.qualcomm.com> References: <20261021100829.2460593-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: AW1haW4tMjYxMDIxMDA0MCBTYWx0ZWRfX4AWlEuAQsSSZ fuI6AZ97M5hM+lsL/1DCHGUyWE0z5EoKOil29e7nrOG1hdgFfUHKOSFzRbL9sbn0Jc8bk4yrU7l B18JXVfIEdHsNPc1w4WzhxuwtN2WwN4= X-Proofpoint-ORIG-GUID: FSdgqd7-EgsiORLyeiWJ_CmwqrspZlDm X-Proofpoint-GUID: FSdgqd7-EgsiORLyeiWJ_CmwqrspZlDm X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA0MCBTYWx0ZWRfX9ENbFyNjoNvF RnVIuSaYW9d4YTNPtUjEkIBrmH094Ci523dQgFljcaLmQvCc2o0G7KwUD6qHiBSFp2QCIczF8Zo L4lN6ZAvW6+sTxra9OpVk5YyiDPzv5SRoEmQoPrFysXG5h8DiXDEv6UJ4waQ2V4YlwxV2LGDXXK 4yQo0qsyc4F6ejPF3h/vcbyNWi4glUokYAQd+wpjkjASwVYEpDaeyZUf0V3SgD3x6BRXGNdghCx JgYf58M8XjkGYS/gRIv//m0YXH5OfnPsQhxqKlpEzph4//p3KgzKnYoFyOTWWkeyPc16iHw8L1/ 2YVH3FXZf1DhkmNpYAujrmCa3E1NkdPzJyofQmmXY0jrfa2/Et0G1EowtGaSMxOevTmoHYy6hj8 P3TDKZPZ241QegV0RS51n2jNSNPUa3c9y5vD2RtWYNC8oW9DlLv7l7aXOar6UkiEhaEaFsNvEwm malPqwYcil3pDUe5hKg== X-Authority-Analysis: v=2.4 cv=NLpAaE6g c=1 sm=1 tr=0 ts=6ad88f24 cx=c_pps a=nuhDOHQX5FNHPW3J6Bj6AA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq: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-21_03,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 impostorscore=0 phishscore=0 spamscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210040 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 21 Oct 2026 10:08:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/248383 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 | 36 +++++++++++++++++++ 2 files changed, 37 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..3226ba39be --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-avdtp-Fix-GET_CONFIGURATION-cmd.patch @@ -0,0 +1,36 @@ +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: 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 Wed Oct 21 10:08:27 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinwang Li X-Patchwork-Id: 101563 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.8051.1792577317021056388 for ; Wed, 21 Oct 2026 03:08:37 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=ZmmhtOTN; 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.168.131, mailfrom: jinwli@qualcomm.com) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69LA5jZf3015966; Wed, 21 Oct 2026 10:08:36 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=wI8hq2Dwjee JC3vOtQ4KE9v6mNJhKr/n1AtpbNw3lWw=; b=ZmmhtOTNWs1P3IgCPNmRUz7/+l6 RlbvJLLv8UoJUml/BN3pBTOG5Wf7gxK5ArRvervdEF22AEmjYcqkIzcbK9p21Z/D rw7AEcC4vNBlQlESCAQV6BtNaqmUGwCRONgB4s53rFfS+5IwtFJjERmUpD4yYBaX VL5vnOs9N9kI/bU9n0KaaIo1bGsVmFIFaDkcA9D5teBvfBtSpZqXDaUcqwXSrvxx ZPzSXrCOVw7dTG2lgGlJXvMunj7LTBjUL6zg1JLKMjtY0QLJe/ecQqigiwvfjQs7 OYht0ngvMLP9OU0vygaKXneOfr7qEa6QOJ5/nyO/TJVc+LwWTSXyLEwmVOw== 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 4hesy78h8q-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 21 Oct 2026 10:08:36 +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 69LA8XNK3533786; Wed, 21 Oct 2026 10:08:33 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 69LA8XsD3533740 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 21 Oct 2026 10:08:33 +0000 (GMT) Received: by bt-iot-sh02-lnx.ap.qualcomm.com (Postfix, from userid 4467392) id 8A11923BF1; Wed, 21 Oct 2026 18:08:32 +0800 (CST) From: Jinwang Li To: openembedded-core@lists.openembedded.org, yoann.congal@smile.fr 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 v2 3/5] bluez5: Return correct error when SEP is inuse Date: Wed, 21 Oct 2026 18:08:27 +0800 Message-Id: <20261021100829.2460593-4-jinwang.li@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261021100829.2460593-1-jinwang.li@oss.qualcomm.com> References: <20261021100829.2460593-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-GUID: 415t584c2-gGkq9vrnQk_oBR4GjHyDWJ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA0MCBTYWx0ZWRfX+s/eeyMHM3Nm mShr1qswzo+OUuC2ja1VWM5dGY4kkZSKo59EX64qHOYsuQkH//nN7PAdpuJQLhnFA4ab4T4y6Uu k2VW3lW+BGzZ/WMKVKDgEma+lUF3ReGBn1QCQS1/s78eFczK0YaNjJVknpi8Ubl6gNgjE9P5ZzE j0GH7ui2ZTifkrEcnhT/yYQY8+8h8UCUHH6ZHsQufGI7uMbn0icbcTfXpLKMjcQmNcaOxOQL5M5 Rb7X5apogwsG/Aj1gLPfAhLeiDs4+M+2kJCS2Owb6kvgx5bWvwSkXJaFdvRJEaC2cPGFOk4W5is 3VaKEkjx62pR3EChWVehUvnLE1YRR8qVvPhHwbGHoM5CbQpS56cPPbL8j+OT8xn1wG1jhNM5lp3 a+tX0VlCQn6njkCmZ1fQivtq1YPmCIc84/9zw892p4q9AdE/7T5OwubKPkgbJa0fOdZJnlvpW5k 7picoXp9cHm1hWEcGLA== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA0MCBTYWx0ZWRfXzdDloA2meUH7 o9F9ojzHRj6vn/Ncpi/F93vUDoK4Nm0LOMWnrFOYPT5m8YIrMH41fDIuCE62wi4VhjaBQi9n5I5 4MJA8q/Pn2PpvXyUGdgUO/2xaM2S4Bg= X-Proofpoint-ORIG-GUID: 415t584c2-gGkq9vrnQk_oBR4GjHyDWJ X-Authority-Analysis: v=2.4 cv=IPaXmQvG c=1 sm=1 tr=0 ts=6ad88f24 cx=c_pps a=nuhDOHQX5FNHPW3J6Bj6AA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z: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-21_03,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 impostorscore=0 spamscore=0 priorityscore=1501 adultscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210040 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 21 Oct 2026 10:08:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/248385 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 | 32 +++++++++++++++++++ 2 files changed, 33 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..583e2c2e23 --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-avdtp-Return-correct-error-when-SEP-is-inuse.patch @@ -0,0 +1,32 @@ +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: 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 Wed Oct 21 10:08:28 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinwang Li X-Patchwork-Id: 101565 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.8081.1792577316877263233 for ; Wed, 21 Oct 2026 03:08:36 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=Lqpc7Pdw; 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.168.131, mailfrom: jinwli@qualcomm.com) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69LA5n9P3620521; Wed, 21 Oct 2026 10:08:36 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=Lqpc7PdwzEq62XNvQPVXIhQ0JI0 KCsfkc4Ukyu1cfKsRn7txClpoeTZ5D7nRRKIaULgxaVoUW9aLffzAjnD7vkclRbx nlLXAomvTh9BbEF43owgCIkYqOowwbKTrAzXZXtxgkfTyj76SGqySDjvb8Y/v8CD LoWt1mPQZf6gGcgXuZ0Aquxh8D2ruEnkYbTT/7DEA2yYinAhpyHNJoV8Q6kFYwjd AxX6CN7fZ8IfO/521hL9D5t6bxQmYvbuQHqeIeb/CjrTOB0NXx0kb/D+tqwr5DQR gLRFUN3KnYfGj1PjSuNmT65T35aIkKTh6Cv9wdMJzKiaPHvMK8ZpctZqiFw== 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 4hebyd3t5d-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 21 Oct 2026 10:08:36 +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 69LA8XrI3533788; Wed, 21 Oct 2026 10:08:33 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 69LA8X253533742 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 21 Oct 2026 10:08:33 +0000 (GMT) Received: by bt-iot-sh02-lnx.ap.qualcomm.com (Postfix, from userid 4467392) id 8EA0123C5F; Wed, 21 Oct 2026 18:08:32 +0800 (CST) From: Jinwang Li To: openembedded-core@lists.openembedded.org, yoann.congal@smile.fr 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 v2 4/5] bluez5: Fix ABORT response being discarded Date: Wed, 21 Oct 2026 18:08:28 +0800 Message-Id: <20261021100829.2460593-5-jinwang.li@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261021100829.2460593-1-jinwang.li@oss.qualcomm.com> References: <20261021100829.2460593-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: AW1haW4tMjYxMDIxMDA0MCBTYWx0ZWRfX8Fv+DQ+S8RTq o98nG+/c+6yWgd9REe7eqIRxDarLWn9szboFHLUJ5WZwIdKrjPrItj6wbIZnxdNS4kZBVjh7fs0 WTcrSZYreEgFkYZhiTuR8o3IO9Rtr8JxDKh07g9G4/OydiWxNIPgpqrbugWORDKI/jRDlPBB8HJ 1Yi6/XjVQWGChSEqiqFDDSEQkputLrW4jDKS/rWAhaTm4SRuCy2SszZANyFLOFJCHgHZjLeIz2Z gw4VvMmnckbNIMtJ7iI1AgiVp4+kODQnTWUb34MXRsQDaJdtvNvxF3I0Ix/VcLQ6CExYjO/BCYx k6HEjV4KU/mrht935OK143rnUIpUhnoLJPaKiw65JE6eeeITPUyHHmTboCr6pBXXYQbTwtaKeS0 +le5+MGJKHABM8KM+uDdtJlz88mn7nX+dAhVkuwBwOS2+Kf5Gvo8hv5+dgzpDA1rF0KfKfqS54c CDJGe/d2FySr8bbkDBA== X-Authority-Analysis: v=2.4 cv=TdsDJhQh c=1 sm=1 tr=0 ts=6ad88f24 cx=c_pps a=nuhDOHQX5FNHPW3J6Bj6AA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=NEAV23lmAAAA:8 a=EUspDBNiAAAA:8 a=GEOtgntP3vMpD6wtaq8A:9 X-Proofpoint-ORIG-GUID: KNfH4dlhxxkeTmHny2rscpgUyYP3Fmt4 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA0MCBTYWx0ZWRfX9inKr6eLzCm8 09BMKbgyCxeTeeKDXd1fWSZyUg3G3D0HbAtL/XmhVS+e+3FtHtLxUpmsxNaGNLgtkKPaWy7DOs3 pUGQ8dzCikIxxZh5f2N2vuO20Ktx3Nc= X-Proofpoint-GUID: KNfH4dlhxxkeTmHny2rscpgUyYP3Fmt4 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-21_03,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 phishscore=0 impostorscore=0 spamscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210040 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 21 Oct 2026 10:08:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/248384 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 Wed Oct 21 10:08:29 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinwang Li X-Patchwork-Id: 101566 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.8082.1792577317045515450 for ; Wed, 21 Oct 2026 03:08:37 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=Nzkj8aGz; 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.168.131, mailfrom: jinwli@qualcomm.com) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69LA5kPv3015991; Wed, 21 Oct 2026 10:08:36 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=Nzkj8aGzYK8Tnj7zb6l4kT1MDpk UpzxTK4nvO+HgDzwE9V8CviwlH8OfSwbPtXhm8uhh/5++hyuGCdZ5vD19SYA3XIg takN7A44SE+up/fMghC8oB0ynFvEcrgNslCVaQidqEiG8zz6SaTsliXllZRJc2SC m6jH8MYhrjw0na06PS9t2y/yr3HHFVOuCTESaw3T6u6ZvZYlWRQpNS3Ewl6I4sID 1+D8s8oYB7BRgdWIo+P1joBNmir19ginvzTxGUnMkvsvz+kSSnXlpKPSAfqLzUfm 3duz+3TNe4Dl2UAeN6x21/K5mpSYxcI1NJkizXygJRC3F9foUP+ckzLGOoQ== 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 4hesy78h8r-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 21 Oct 2026 10:08:36 +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 69LA8XNL3533786; Wed, 21 Oct 2026 10:08:34 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 69LA8YYu3533814 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 21 Oct 2026 10:08:34 +0000 (GMT) Received: by bt-iot-sh02-lnx.ap.qualcomm.com (Postfix, from userid 4467392) id 932D023C69; Wed, 21 Oct 2026 18:08:32 +0800 (CST) From: Jinwang Li To: openembedded-core@lists.openembedded.org, yoann.congal@smile.fr 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 v2 5/5] bluez5: Fix u128_to_string skipping data[4] Date: Wed, 21 Oct 2026 18:08:29 +0800 Message-Id: <20261021100829.2460593-6-jinwang.li@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261021100829.2460593-1-jinwang.li@oss.qualcomm.com> References: <20261021100829.2460593-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-GUID: _kx8OZNFY9685AjdUEdsrwZmIJILTFcr X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA0MCBTYWx0ZWRfX7FzuLI7TNhgQ rUoXNobV2JmtYYtU31m/kvXefPArtXL0YddZmoOjblwfBe3UIf1EFkgwI0WJSBaxisBFWTN59EW uZGhLOd5xvmGWfnymCxWe97wuzP/7Rdk//AefBdBkigfMx4J2ZGiwsewd4wXwm+ZQD4NrUL1IGE C57/355JCWwBWkNQHw6WUtrGQqHUHvzkxthGNXU+VmlNFcAM878wCVNIDZPTB1VA7HwIWEV3jWi 8jBEzdz4rGxkTLR5CjAk4ukBaL/HOC4D9WoaT56I6lBEwy+eM0oOkEpDFVGUi4F4kMM5hNrNBbg xo2JAFbHNgid/i8QAIcguUoxd44UC77Vq9QHjA54HlcdanrBv3dgKoXqq8IZcr6oYbLZVonYhaA Ir/d9oJhJVgEoIioi7ZAwsGLJi8/w/GTQKy0WhTbcUW0ngs0oyc46lTKsc0HIxFcmAobkdka6GK Looi7R+gAMOtUZofBSw== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA0MCBTYWx0ZWRfX6rw/u+pSzNtw AFhdDAJFZ7/gF8c50ivsPf000avEX8hcFcrm2WPyWQKMaBKhlfVSVgOt/gr5isoh+x7FD+mgp16 w5PgLKyJxBg353ueDDSdmHYUaXk6RVE= X-Proofpoint-ORIG-GUID: _kx8OZNFY9685AjdUEdsrwZmIJILTFcr X-Authority-Analysis: v=2.4 cv=IPaXmQvG c=1 sm=1 tr=0 ts=6ad88f24 cx=c_pps a=nuhDOHQX5FNHPW3J6Bj6AA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z: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-21_03,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 impostorscore=0 spamscore=0 priorityscore=1501 adultscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210040 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 21 Oct 2026 10:08:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/248386 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 +