diff --git a/CHANGELOG.md b/CHANGELOG.md index 792cfcaf5..7d744c29e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed - POSIX: fix RTS/CTS configuration by keeping local termios copy in btstack_uart_posix +- HCI: fix handling of HCI Connection Complete with error (regression introduced in v1.5.1) - GAP: disable scanning, advertising, connection before updating random address - GAP: fix LE Scan with whitelist - HFP_AG: fix tracking for call dropped during outgoing ringing diff --git a/src/hci.c b/src/hci.c index c5555aa46..b705b91cb 100644 --- a/src/hci.c +++ b/src/hci.c @@ -2194,10 +2194,10 @@ static void hci_initializing_event_handler(const uint8_t * packet, uint16_t size static void hci_handle_connection_failed(hci_connection_t * conn, uint8_t status){ // CC2564C might emit Connection Complete for rejected incoming SCO connection - // To prevent accidentally free'ing the CHI connection for the ACL connection, - // check if the hci connection has been outgoing + // To prevent accidentally free'ing the HCI connection for the ACL connection, + // check if we have been aware of the HCI connection switch (conn->state){ - case SEND_CREATE_CONNECTION: + case SENT_CREATE_CONNECTION: case RECEIVED_CONNECTION_REQUEST: break; default: