Skip to content

Commit 1a6246f

Browse files
committed
BLE: Remove double handling of DM_CONN_OPEN_IND .
1 parent daee12d commit 1a6246f

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalGap.cpp

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -510,30 +510,7 @@ void Gap::gap_handler(const wsfMsgHdr_t *msg)
510510
handler->on_periodic_advertising_sync_loss(evt->syncHandle);
511511
}
512512
break;
513-
514-
case DM_CONN_OPEN_IND: {
515-
if (!handler) {
516-
break;
517-
}
518-
519-
// TODO: filter with old event ...
520-
const hciLeConnCmplEvt_t *evt = (const hciLeConnCmplEvt_t *) msg;
521-
handler->on_enhanced_connection_complete(
522-
hci_error_code_t(evt->status),
523-
evt->handle,
524-
connection_role_t(evt->role),
525-
connection_peer_address_type_t(evt->addrType),
526-
evt->peerAddr,
527-
evt->localRpa,
528-
evt->peerRpa,
529-
evt->connInterval,
530-
evt->connLatency,
531-
evt->supTimeout,
532-
clock_accuracy_t(evt->clockAccuracy)
533-
);
534-
}
535-
break;
536-
513+
537514
case DM_SCAN_REQ_RCVD_IND: {
538515
if (!handler) {
539516
break;

0 commit comments

Comments
 (0)