From 5025022ab8da678ef22bebf23a9288fd340270c5 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Tue, 12 Mar 2019 16:43:27 +0000 Subject: [PATCH] handle extended reset --- .../targets/TARGET_CORDIO/driver/CordioHCIDriver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/driver/CordioHCIDriver.cpp b/features/FEATURE_BLE/targets/TARGET_CORDIO/driver/CordioHCIDriver.cpp index f1c704583a..c5cece99bf 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/driver/CordioHCIDriver.cpp +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/driver/CordioHCIDriver.cpp @@ -230,7 +230,7 @@ void CordioHCIDriver::handle_reset_sequence(uint8_t *pMsg) case HCI_OPCODE_READ_LOCAL_VER_INFO: if (hciCoreCb.extResetSeq) { /* send first extended command */ - (*hciCoreCb.extResetSeq)(pMsg, opcode); + HciReadLocalVerInfoCmd(); } else { /* initialize extended parameters */ hciCoreCb.maxAdvDataLen = 0; @@ -242,6 +242,7 @@ void CordioHCIDriver::handle_reset_sequence(uint8_t *pMsg) } break; + case HCI_OPCODE_READ_LOCAL_VER_INFO: case HCI_OPCODE_LE_READ_MAX_ADV_DATA_LEN: case HCI_OPCODE_LE_READ_NUM_SUP_ADV_SETS: case HCI_OPCODE_LE_READ_PER_ADV_LIST_SIZE: