From b5ea8df6643a68f86e069c8ea3ef5123ccd220a9 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 23 Mar 2022 14:52:09 +0100 Subject: [PATCH] hci: remove code to init new connection already set in create_connection_for_bd_addr_and_type for new connection --- src/hci.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/hci.c b/src/hci.c index adbd93130..6f138f3eb 100644 --- a/src/hci.c +++ b/src/hci.c @@ -6089,9 +6089,6 @@ uint8_t hci_send_cmd_packet(uint8_t *packet, int size){ conn->role = HCI_ROLE_MASTER; } - conn->con_handle = HCI_CON_HANDLE_INVALID; - conn->role = HCI_ROLE_INVALID; - log_info("conn state %u", conn->state); // TODO: L2CAP should not send create connection command, instead a (new) gap function should be used switch (conn->state) {