From 8db801ac504476800ed0e78d0145091a04ca8c87 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 22 May 2023 10:44:41 +0200 Subject: [PATCH] a2dp: log correct local seid in a2dp_config_process_set_config --- src/classic/a2dp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/classic/a2dp.c b/src/classic/a2dp.c index 729415984..aed794546 100644 --- a/src/classic/a2dp.c +++ b/src/classic/a2dp.c @@ -407,12 +407,13 @@ static void a2dp_config_process_handle_media_configuration(avdtp_role_t role, co void a2dp_config_process_set_config(avdtp_role_t role, avdtp_connection_t *connection) { a2dp_config_process_t * config_process = a2dp_config_process_for_role(role, connection); + uint8_t local_seid = avdtp_stream_endpoint_seid(config_process->local_stream_endpoint); uint8_t remote_seid = config_process->local_stream_endpoint->set_config_remote_seid; log_info("A2DP initiate set configuration locally and wait for response ... local seid 0x%02x, remote seid 0x%02x", - avdtp_stream_endpoint_seid(connection->a2dp_source_config_process.local_stream_endpoint), remote_seid); + local_seid, remote_seid); config_process->state = A2DP_W4_SET_CONFIGURATION; avdtp_set_configuration(connection->avdtp_cid, - avdtp_stream_endpoint_seid(config_process->local_stream_endpoint), + local_seid, remote_seid, config_process->local_stream_endpoint->remote_configuration_bitmap, config_process->local_stream_endpoint->remote_configuration);