mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 10:21:49 +00:00
avdtp acceptor: fix sep configuration
This commit is contained in:
parent
9c14a9f162
commit
220a916742
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user