From 00cc746e884b3fb40cf3eb9579168fc801b9a987 Mon Sep 17 00:00:00 2001 From: Morten Priess Date: Wed, 23 Aug 2023 12:48:59 +0200 Subject: [PATCH] Bluetooth: host: Fix endianness in hci_le_remove_iso_data_path Add missing endianness conversion of handle sent over HCI. (cherry picked from commit cdbcdb8e140f07ba070f7ef12062bb8d108732ae) Original-Signed-off-by: Morten Priess GitOrigin-RevId: cdbcdb8e140f07ba070f7ef12062bb8d108732ae Change-Id: Ica7935f3bad65def32013f2b6372b6b3fcc85585 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/4808573 Commit-Queue: Fabio Baltieri Tested-by: ChromeOS Prod (Robot) Tested-by: Fabio Baltieri Reviewed-by: Fabio Baltieri --- subsys/bluetooth/host/iso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/iso.c b/subsys/bluetooth/host/iso.c index 6c06ebbc52b..f8df05e32d9 100644 --- a/subsys/bluetooth/host/iso.c +++ b/subsys/bluetooth/host/iso.c @@ -1371,7 +1371,7 @@ static int hci_le_remove_iso_data_path(struct bt_conn *iso, uint8_t dir) } cp = net_buf_add(buf, sizeof(*cp)); - cp->handle = iso->handle; + cp->handle = sys_cpu_to_le16(iso->handle); cp->path_dir = dir; err = bt_hci_cmd_send_sync(BT_HCI_OP_LE_REMOVE_ISO_PATH, buf, &rsp);