test/pts: select single remote stream endpoint in avdtp_source for config commands

This commit is contained in:
Matthias Ringwald 2021-01-27 16:39:55 +01:00
parent 4a24e821b7
commit f13e45796a

View File

@ -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;