gap: stop LE connecting if create connection fails (e.g. connectable adv active and multiple roles not supported)

This commit is contained in:
Matthias Ringwald 2021-06-11 11:35:27 +02:00
parent ba9fc86712
commit f7e6a692b0
2 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Fixed
- GAP: store link key in hci connection struct to allow authenticate after pairing without bonding
- GAP: avoid requesting authentication twice
- GAP: gap: cache own address on start advertising and connecting, provide getters
- GAP: cache own address on start advertising and connecting, provide getters
- GAP: stop LE connecting if create connection fails (e.g. connectable adv active and multiple roles not supported)
- SM: fix race condition between local address changes and pairing procedure
- ATT DB: fix spelling `gatt_server_get_handle_range_for_service_with_uuid128`, `gatt_server_get_handle_range_for_service_with_uuid16`

View File

@ -2431,6 +2431,7 @@ static void event_handler(uint8_t *packet, uint16_t size){
#ifdef ENABLE_LE_CENTRAL
if (hci_is_le_connection_type(addr_type)){
hci_stack->le_connecting_state = LE_CONNECTING_IDLE;
hci_stack->le_connecting_request = LE_CONNECTING_IDLE;
}
#endif
// error => outgoing connection failed