Skip to content

Commit d00745d

Browse files
kirankrishnappa-intelholtmann
authored andcommitted
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 <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 62acbbb commit d00745d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/bluetooth/btintel.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,8 @@ static int btintel_download_firmware_payload(struct hci_dev *hdev,
863863
/* The boot parameter is the first 32-bit value
864864
* and rest of 3 octets are reserved.
865865
*/
866-
*boot_param = get_unaligned_le32(fw_ptr + sizeof(*cmd));
866+
*boot_param = get_unaligned_le32(fw_ptr + frag_len +
867+
sizeof(*cmd));
867868

868869
bt_dev_dbg(hdev, "boot_param=0x%x", *boot_param);
869870
}

0 commit comments

Comments
 (0)