hci: update state before sending hci command

This commit is contained in:
Matthias Ringwald 2024-12-17 15:24:18 +01:00
parent b182b7f477
commit c769c85c11

View File

@ -7293,8 +7293,8 @@ static bool hci_run_general_pending_commands(void){
log_info("sending hci_le_create_connection");
hci_stack->le_connection_own_addr_type = hci_stack->le_own_addr_type;
hci_get_own_address_for_addr_type(hci_stack->le_connection_own_addr_type, hci_stack->le_connection_own_address);
hci_send_le_create_connection(0, connection->address_type, connection->address);
connection->state = SENT_CREATE_CONNECTION;
hci_send_le_create_connection(0, connection->address_type, connection->address);
#endif
#endif
break;