hci: remove code to init new connection

already set in create_connection_for_bd_addr_and_type for new connection
This commit is contained in:
Matthias Ringwald 2022-03-23 14:52:09 +01:00
parent 10277393e9
commit b5ea8df664

View File

@ -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) {