From 895f6685f2096df1f5f42ae210e435d1cc39a8d4 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Wed, 14 Mar 2018 12:59:22 +0100 Subject: [PATCH] hci: fix debug output for incomming SCO connection --- src/hci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hci.c b/src/hci.c index ccccacb3e..3c396c633 100644 --- a/src/hci.c +++ b/src/hci.c @@ -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;