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=1796384459; b=Rt5kudNMSpygX6PLaFM0FPXdy7aLs9NfIR8nlduLBLAH6sTBgnOA396E2i+SgKZ2g2Zb mX7ittetLqXE/lwDMZrsaNRWQkBI1JMvtI/GgfRHHULJ3OB2qpbnFcDmLLX/rkmNzepLH 4EfoDtvSqgQ/mYxx4L/wPk/cSakocIEasaMVmX+twCqkMF0HHmc5avxxRE14PepJ8c51A nokP6I+3AK4qRHJeNcX1YyTqfSdMTrGfei5gG/BsvER5mE9BTwGjeowoC3zNnCGrDu7LI c27byjmQC5JarFiuDBMiI/z7ZFBAU8zql3PlAoHmDHt+5yRtq5+GOduOmpMwMlqGWVg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384459; 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=bij4OhZf6lAC6PwPYpm96n2seSwCoUO/lgkB8i++l4Q=; b=LWYkeU2EYWniil+35/6MA2iM9PpZYlFk5wxHp8/UFjJ8jKY9yLipEvPjUAo3YfcltGcW PBdh8+e7BT/10jjS7jL/rzodoDYXBHgRa/wnXnH/MoahkKYgM6eVn94aCh2oAGvdOtFpv 2R2PGbuGbZwdgB+SWdY70lSkjCOJneTYsNKUJpoBxqK2BBexR99g5iETpaPz39ENEqOvI tM2mhyP+Y+wH4tR1TVjUTyoE9+yXB8na9vmRGekyq5pRe7qPIILr10XtJf9EqfK+WRpzo NglG/5J+2On4QvVHP/z4KDtdvWa4GbANsdTx/1h2GM3P9XtaMbC+A8cHZTAtXUkKhSA== 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=cMrYoBou; 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 275CD606A32C; Fri, 4 Dec 2026 11:40:59 +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=cMrYoBou Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9423A1F000CE; Fri, 4 Dec 2026 11:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796384459; bh=bij4OhZf6lAC6PwPYpm96n2seSwCoUO/lgkB8i++l4Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=cMrYoBou933eBdr8zy/WHj+9oIBVZ5bs+ox5fMfvB0ALBuixEl2RUAWrT313JJYtX xbUJYLuNLLhnVii9YQQW9iE1XF0e1k/hFXUlNmaqRbML8vBlliEek+zZgsDSVfyESW 1tSmHFO0ze6iqcerkufpEgr9TxXor4Aww++1Qe+Y= 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.6 0160/1167] Bluetooth: hci_conn: Fix SCO/eSCO Transport_Unit_Size for HCI data path Date: Fri, 4 Dec 2026 18:53:07 +0900 Message-ID: <20261204100706.249522702@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-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 987f780a5acd8..11066b6b84bfc 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c @@ -332,8 +332,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: @@ -358,8 +360,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: @@ -389,8 +393,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