a2dp: avoid calling role specific avdtp functions

This commit is contained in:
Matthias Ringwald 2022-04-04 14:47:46 +02:00
parent a9d074b9db
commit ff9f995df8

View File

@ -807,9 +807,9 @@ void a2dp_config_process_avdtp_event_handler(avdtp_role_t role, uint8_t *packet,
avdtp_stream_endpoint_seid(connection->a2dp_source_config_process.local_stream_endpoint),
config_process->local_stream_endpoint->remote_sep.seid);
config_process->state = A2DP_W4_OPEN_STREAM_WITH_SEID;
avdtp_source_open_stream(cid,
avdtp_stream_endpoint_seid(config_process->local_stream_endpoint),
config_process->local_stream_endpoint->remote_sep.seid);
avdtp_open_stream(cid,
avdtp_stream_endpoint_seid(config_process->local_stream_endpoint),
config_process->local_stream_endpoint->remote_sep.seid);
break;
case A2DP_W2_RECONFIGURE_WITH_SEID: