Skip to content

Commit

Permalink
Bluetooth: host: Fix endianness in hci_le_remove_iso_data_path
Browse files Browse the repository at this point in the history
Add missing endianness conversion of handle sent over HCI.

(cherry picked from commit cdbcdb8)

Original-Signed-off-by: Morten Priess <mtpr@oticon.com>
GitOrigin-RevId: cdbcdb8
Change-Id: Ica7935f3bad65def32013f2b6372b6b3fcc85585
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/4808573
Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com>
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Tested-by: Fabio Baltieri <fabiobaltieri@google.com>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
  • Loading branch information
mtpr-ot authored and Chromeos LUCI committed Aug 23, 2023
1 parent 8313dda commit 00cc746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/host/iso.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 00cc746

Please sign in to comment.