From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796387068; b=By8uHZ8kU9IWQw1alT4wby4QFtGtgAl737M1xWiAL/CebtchTKOcWPyI14k4aKydpnW7 psVBZPyeTbLpnZ5IUCHGtzF2fpD5oCMeooLqkKAGSmZnxsO12kxxpQFvb555fNZHn77bO rZmk8tq3Ga3YSvyJ4djesM4gM7DZ1M3nR+q9Dl19Nf2qzGV/3dBOTOAGu1kDtzffBKSHS Q1IxxGjMEiz+7H8eIY6HWj/FKrvKoFlLTnxlf+k/o/OTfUhL5IQwOl5UnSkslODIhpcCx XllSPXt/3fmHPoi01qSY+XwB1zSkw6XqCargFZkp72jbNBArMUpcUaAPt704DCszoIw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387068; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=uvgFv90DaTSY946YAzQ/xvH+GNEiN5Q7X6LyZ2VdtGU=; b=wRoq2ltM2UD0rrXCWWH2C1wxOoLLS4W8E3tglF/tlJdKhvWlqEf1aCLWZylNPCBwizjp bHluddjzizJGVBRs0jx9nFueKvrCNsT1SFLK9QNpMOnUV2ZMqGMKIfVlyGX91ZVM3olR8 nlz9UQsWOIpZG2L/VmLP93fzsBp+yIXcNpgQAv67jytOpCVYgGSWSjLNVc09afBk9ewoK SZudcvwQsmZqNsHp4YW/xjuMmCWIM57xzAUdx0QIz1i9eX8upajd0NWJqmZ7YPGRosKmr RQ61QvpCsnHgch5B7KPWJA/otA3ivFIecYfr8nZu63aotQYSnnmEn3aNkUEgTjm33Kg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="MaxBw5/x"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8951F606A322; Fri, 4 Dec 2026 12:24:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=MaxBw5/x Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4F411F000C2; Fri, 4 Dec 2026 12:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796387068; bh=uvgFv90DaTSY946YAzQ/xvH+GNEiN5Q7X6LyZ2VdtGU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=MaxBw5/xCMuURbNwro5VvbjguPE3PD4fr7GDa1WNpmEqQtjWBieSO+U6WX/rxP4w0 lWB/9dPg+itIzaW0jf/c4+tDn5IrvRtY8d0UrvIfvQCtD3LLm7pSb0RZwLQeP7j3FK FeF/ymbzbZeUedr9dzxuq/dlxkrVagW/ueOyr3Tk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Zijun Hu , Luiz Augusto von Dentz , Sasha Levin Subject: [PATCH 6.1 0120/1059] Bluetooth: hci_conn: Fix SCO/eSCO Transport_Unit_Size for HCI data path Date: Fri, 4 Dec 2026 18:54:11 +0900 Message-ID: <20261204100647.331419037@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Zijun Hu [ Upstream commit 3efdadae3a252b14ca1f62b16e31a9aa7c5d30cf ] Correct (Input|Output)_Transport_Unit_Size based on Core spec v6.3, Vol 4, Part E, 7.1.45: "The Host shall set the Input_Transport_Unit_Size and Output_Transport_Unit_Size to be equal. For HCI Host transport the Host shall set them to 0." Fixes: b2af264ad3af ("Bluetooth: Add support for HCI_Enhanced_Setup_Synchronous_Connection command") Signed-off-by: Zijun Hu Signed-off-by: Luiz Augusto von Dentz Signed-off-by: Sasha Levin --- net/bluetooth/hci_conn.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 327c73431fb96..9bf200cd9b7f2 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c @@ -437,8 +437,10 @@ static int hci_enhanced_setup_sync(struct hci_dev *hdev, void *data) cp.out_pcm_sample_payload_msb_pos = 0; cp.in_data_path = conn->codec.data_path; cp.out_data_path = conn->codec.data_path; - cp.in_transport_unit_size = 1; - cp.out_transport_unit_size = 1; + if (conn->codec.data_path) { + cp.in_transport_unit_size = 1; + cp.out_transport_unit_size = 1; + } break; case BT_CODEC_TRANSPARENT: @@ -463,8 +465,10 @@ static int hci_enhanced_setup_sync(struct hci_dev *hdev, void *data) cp.out_pcm_sample_payload_msb_pos = 0; cp.in_data_path = conn->codec.data_path; cp.out_data_path = conn->codec.data_path; - cp.in_transport_unit_size = 1; - cp.out_transport_unit_size = 1; + if (conn->codec.data_path) { + cp.in_transport_unit_size = 1; + cp.out_transport_unit_size = 1; + } break; case BT_CODEC_CVSD: @@ -494,8 +498,10 @@ static int hci_enhanced_setup_sync(struct hci_dev *hdev, void *data) cp.out_pcm_sample_payload_msb_pos = 0; cp.in_data_path = conn->codec.data_path; cp.out_data_path = conn->codec.data_path; - cp.in_transport_unit_size = 16; - cp.out_transport_unit_size = 16; + if (conn->codec.data_path) { + cp.in_transport_unit_size = 16; + cp.out_transport_unit_size = 16; + } break; default: goto unlock; -- 2.53.0