提交 d00745da 编写于 作者: K Kiran K 提交者: Marcel Holtmann

Bluetooth: btintel: Fix offset calculation boot address parameter

Boot address parameter was not getting updated properly
due to wrong offset
Signed-off-by: NKiran K <kiran.k@intel.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 62acbbb6
...@@ -863,7 +863,8 @@ static int btintel_download_firmware_payload(struct hci_dev *hdev, ...@@ -863,7 +863,8 @@ static int btintel_download_firmware_payload(struct hci_dev *hdev,
/* The boot parameter is the first 32-bit value /* The boot parameter is the first 32-bit value
* and rest of 3 octets are reserved. * and rest of 3 octets are reserved.
*/ */
*boot_param = get_unaligned_le32(fw_ptr + sizeof(*cmd)); *boot_param = get_unaligned_le32(fw_ptr + frag_len +
sizeof(*cmd));
bt_dev_dbg(hdev, "boot_param=0x%x", *boot_param); bt_dev_dbg(hdev, "boot_param=0x%x", *boot_param);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册