gap: emit GAP_SUBEVENT_LE_CONNECTION_COMPLETE for failed outgoing connections

This commit is contained in:
Matthias Ringwald 2024-04-05 13:52:43 +02:00
parent 434260a167
commit 4dbe0476f2
2 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Fixed
- GAP: allow use of own address type different from gap_random_set_mode() incl. RPA in LE Extended Advertising
- GAP: emit GAP_SUBEVENT_LE_CONNECTION_COMPLETE for failed outgoing connections
- SM: abort pairing with invalid parameter error for encryption key size > 16
- SM: ignore Security Request after re-encryption has started
- SM: respond to Pairing Request after Identity Resolution failed

View File

@ -3362,7 +3362,10 @@ static void hci_handle_le_connection_complete_event(const uint8_t * hci_event){
btstack_linked_list_remove(&hci_stack->connections, (btstack_linked_item_t *) conn);
btstack_memory_hci_connection_free( conn );
}
return;
// emit GAP_SUBEVENT_LE_CONNECTION_COMPLETE for error case
hci_emit_event(gap_event, sizeof(gap_event), 1);
return;
}
#endif