diff options
author | Kiran K <kiran.k@intel.com> | 2021-03-08 14:16:01 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2021-03-08 16:48:05 +0100 |
commit | d00745da644d42c2f97293eb3fe19cfd5c0b073c (patch) | |
tree | 6bd469ebe6727407c50cc188f20198b07a7a36e1 /drivers/bluetooth | |
parent | Bluetooth: btusb: print firmware file name on error loading firmware (diff) | |
download | linux-d00745da644d42c2f97293eb3fe19cfd5c0b073c.tar.xz linux-d00745da644d42c2f97293eb3fe19cfd5c0b073c.zip |
Bluetooth: btintel: Fix offset calculation boot address parameter
Boot address parameter was not getting updated properly
due to wrong offset
Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/btintel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c index 88ce5f0ffc4b..fa97324454ea 100644 --- a/drivers/bluetooth/btintel.c +++ b/drivers/bluetooth/btintel.c @@ -863,7 +863,8 @@ static int btintel_download_firmware_payload(struct hci_dev *hdev, /* The boot parameter is the first 32-bit value * 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); } |