diff --git a/chipset-csr/bt_control_csr.c b/chipset-csr/bt_control_csr.c index f0117ef5f..7e4375ad7 100644 --- a/chipset-csr/bt_control_csr.c +++ b/chipset-csr/bt_control_csr.c @@ -48,6 +48,7 @@ #include /* memcpy */ #include "bt_control.h" +#include // minimal CSR init script static const uint8_t init_script[] = { @@ -102,6 +103,13 @@ static int bt_control_csr_next_cmd(void *config, uint8_t *hci_cmd_buffer){ init_script_offset += payload_len; + // support for warm boot command + uint16_t varid = READ_BT_16(hci_cmd_buffer, 10); + printf("csr: varid 0x%04x\n", varid); + if (varid == 0x4002){ + return 2; + } + return 1; }