From f13e45796af2c56ad72f63fc6700e71fd1b334fc Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 27 Jan 2021 16:39:55 +0100 Subject: [PATCH] test/pts: select single remote stream endpoint in avdtp_source for config commands --- test/pts/avdtp_source_test.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/pts/avdtp_source_test.c b/test/pts/avdtp_source_test.c index 5a6a4ccc6..d42bfea2a 100644 --- a/test/pts/avdtp_source_test.c +++ b/test/pts/avdtp_source_test.c @@ -470,6 +470,14 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe } break; + case AVDTP_SUBEVENT_SIGNALING_SEP_DICOVERY_DONE: + // select remote if there's only a single remote + if (num_remote_seps == 1){ + media_tracker.remote_seid = remote_seps[0].sep.seid; + printf("Only one remote Stream Endpoint with SEID %u, select it for initiator commands\n", media_tracker.remote_seid); + } + break; + case AVDTP_SUBEVENT_SIGNALING_MEDIA_TRANSPORT_CAPABILITY: printf("CAPABILITY - MEDIA_TRANSPORT supported on remote.\n"); break;