hci: fix debug output for incomming SCO connection

This commit is contained in:
Milanka Ringwald 2018-03-14 12:59:22 +01:00
parent 98cc33c4b3
commit 895f6685f2

View File

@ -3237,10 +3237,10 @@ static void hci_run(void){
#ifdef ENABLE_CLASSIC
case RECEIVED_CONNECTION_REQUEST:
log_info("sending hci_accept_connection_request, remote eSCO %u", connection->remote_supported_feature_eSCO);
connection->state = ACCEPTED_CONNECTION_REQUEST;
connection->role = HCI_ROLE_SLAVE;
if (connection->address_type == BD_ADDR_TYPE_CLASSIC){
log_info("sending hci_accept_connection_request, remote eSCO %u", connection->remote_supported_feature_eSCO);
connection->state = ACCEPTED_CONNECTION_REQUEST;
hci_send_cmd(&hci_accept_connection_request, connection->address, hci_stack->master_slave_policy);
}
return;