From 1a6246f1305faee949e8f489f70da80c4ede8c99 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Tue, 27 Nov 2018 15:30:56 +0000 Subject: [PATCH] BLE: Remove double handling of DM_CONN_OPEN_IND . --- .../TARGET_CORDIO/source/CordioPalGap.cpp | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalGap.cpp b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalGap.cpp index 1179fa776e..7b15cfe3d9 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalGap.cpp +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalGap.cpp @@ -510,30 +510,7 @@ void Gap::gap_handler(const wsfMsgHdr_t *msg) handler->on_periodic_advertising_sync_loss(evt->syncHandle); } break; - - case DM_CONN_OPEN_IND: { - if (!handler) { - break; - } - - // TODO: filter with old event ... - const hciLeConnCmplEvt_t *evt = (const hciLeConnCmplEvt_t *) msg; - handler->on_enhanced_connection_complete( - hci_error_code_t(evt->status), - evt->handle, - connection_role_t(evt->role), - connection_peer_address_type_t(evt->addrType), - evt->peerAddr, - evt->localRpa, - evt->peerRpa, - evt->connInterval, - evt->connLatency, - evt->supTimeout, - clock_accuracy_t(evt->clockAccuracy) - ); - } - break; - + case DM_SCAN_REQ_RCVD_IND: { if (!handler) { break;