From dbdb76a871f66859413f58c56dd81714c8ce2685 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 2 Apr 2024 11:08:42 +0200 Subject: [PATCH] avdtp: use round robin for outgoing connections --- CHANGELOG.md | 1 + src/classic/avdtp.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5871f3110..5f23e4645 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - HFP HF: send HF Indicator update only if enabled by AG - HFP AG: send OK after SLC for HF that does not support 3-way-calling or HF Indicators - HSP HS: use EV3 and 2EV3 packets for 7.5 ms voice interval +- AVDTP: use round robin for outgoing connections ### Changed - HCI: hci_reserved_packet_buffer and higher layer functions asserts if packet buffer is free instead of return value diff --git a/src/classic/avdtp.c b/src/classic/avdtp.c index 91e47cb2f..4df0d0c7c 100644 --- a/src/classic/avdtp.c +++ b/src/classic/avdtp.c @@ -248,7 +248,7 @@ static avdtp_connection_t * avdtp_create_connection(bd_addr_t remote_addr, uint1 connection->avdtp_cid = cid; (void)memcpy(connection->remote_addr, remote_addr, 6); - btstack_linked_list_add(&avdtp_connections, (btstack_linked_item_t *) connection); + btstack_linked_list_add_tail(&avdtp_connections, (btstack_linked_item_t *) connection); return connection; }