Skip to content

Commit

Permalink
Bluetooth: btintel: Fix offset calculation boot address parameter
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kiran K authored and Marcel Holtmann committed Mar 8, 2021
1 parent 62acbbb commit d00745d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/bluetooth/btintel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d00745d

Please sign in to comment.