Skip to content

Commit b67b5c5

Browse files
mringwaldkalowsk
authored andcommitted
bluetooth: cyw43xxx: support newer PatchRAM files
The CYW43xxx for Infineon Controllers stops after the first LauncRAM command. Newer Controllers like the CYW5557x update the firmware in multiple stages, which is supported by this commit. Signed-off-by: Matthias Ringwald <matthias@ringwald.ch>
1 parent eb8cabb commit b67b5c5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/bluetooth/hci/h4_ifx_cyw43xxx.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,17 +189,14 @@ static int bt_firmware_download(const uint8_t *firmware_image, uint32_t size)
189189

190190
switch (op_code) {
191191
case BT_HCI_VND_OP_WRITE_RAM:
192+
case BT_HCI_VND_OP_LAUNCH_RAM:
192193
/* Update remaining length and data pointer:
193194
* content of data length + 2 bytes of opcode and 1 byte of data length.
194195
*/
195196
data += data_length + 3;
196197
remaining_length -= data_length + 3;
197198
break;
198199

199-
case BT_HCI_VND_OP_LAUNCH_RAM:
200-
remaining_length = 0;
201-
break;
202-
203200
default:
204201
return -ENOMEM;
205202
}

0 commit comments

Comments
 (0)