From 220a91674213706540ba65ef2c7acb7378437050 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Mon, 16 Apr 2018 14:24:29 +0200 Subject: [PATCH] avdtp acceptor: fix sep configuration --- src/classic/avdtp_acceptor.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/classic/avdtp_acceptor.c b/src/classic/avdtp_acceptor.c index 2fff71c14..0392fc40c 100644 --- a/src/classic/avdtp_acceptor.c +++ b/src/classic/avdtp_acceptor.c @@ -230,11 +230,11 @@ void avdtp_acceptor_stream_config_subsm(avdtp_connection_t * connection, uint8_t if (stream_endpoint->remote_sep_index != AVDTP_INVALID_SEP_INDEX){ if (stream_endpoint->connection->remote_seps[stream_endpoint->remote_sep_index].in_use){ - // if (stream_endpoint->state < AVDTP_STREAM_ENDPOINT_OPENED){ - // stream_endpoint->connection->remote_seps[stream_endpoint->remote_sep_index] = sep; - // log_info("ACP: update seid %d, to %p", stream_endpoint->connection->remote_seps[stream_endpoint->remote_sep_index].seid, stream_endpoint); - // break; - // } + if (stream_endpoint->state < AVDTP_STREAM_ENDPOINT_OPENED){ + stream_endpoint->connection->remote_seps[stream_endpoint->remote_sep_index] = sep; + log_info("ACP: update seid %d, to %p", stream_endpoint->connection->remote_seps[stream_endpoint->remote_sep_index].seid, stream_endpoint); + break; + } // reject if already configured connection->error_code = SEP_IN_USE; // find first registered category and fire the error