hci: enable le enhanced connection complete event

This commit is contained in:
Matthias Ringwald 2023-11-23 16:33:42 +01:00
parent e4def79770
commit 920a6ac515

View File

@ -2273,9 +2273,9 @@ static void hci_initializing_run(void){
if (hci_le_supported()){
hci_stack->substate = HCI_INIT_W4_LE_SET_EVENT_MASK;
#ifdef ENABLE_LE_ENHANCED_CONNECTION_COMPLETE_EVENT
hci_send_cmd(&hci_le_set_event_mask, 0xffffffff, 0x07); // all events from core v5.3
hci_send_cmd(&hci_le_set_event_mask, 0xffffffff, 0x0107); // all events from core v5.3
#else
hci_send_cmd(&hci_le_set_event_mask, 0xfffffdff, 0x07); // all events from core v5.3 without LE Enhanced Connection Complete
hci_send_cmd(&hci_le_set_event_mask, 0xfffffdff, 0x0007); // all events from core v5.3 without LE Enhanced Connection Complete
#endif
break;
}