diff --git a/src/l2cap.c b/src/l2cap.c index e0664de3f..361120a87 100644 --- a/src/l2cap.c +++ b/src/l2cap.c @@ -1978,7 +1978,7 @@ uint8_t l2cap_create_channel(btstack_packet_handler_t channel_packet_handler, bd // check if hci connection is already usable hci_connection_t * conn = hci_connection_for_bd_addr_and_type(address, BD_ADDR_TYPE_ACL); - if (conn){ + if (conn && conn->con_handle != HCI_CON_HANDLE_INVALID){ log_info("l2cap_create_channel, hci connection 0x%04x already exists", conn->con_handle); l2cap_handle_connection_complete(conn->con_handle, channel); // check if remote supported fearures are already received