Skip to content

Commit

Permalink
Bluetooth: A2DP: Fix mistake parameter
Browse files Browse the repository at this point in the history
need to use the value from stream.

Signed-off-by: Mark Wang <[email protected]>
  • Loading branch information
MarkWangChinese committed Jul 5, 2024
1 parent c9708ff commit 8681e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/host/classic/a2dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ int bt_a2dp_stream_establish(struct bt_a2dp_stream *stream)
a2dp->open_param.req.func = bt_a2dp_open_cb;
a2dp->open_param.acp_stream_ep_id = stream->remote_ep != NULL ?
stream->remote_ep->sep.sep_info.id : stream->remote_ep_id;
a2dp->open_param.sep = a2dp->set_config_param.sep;
a2dp->open_param.sep = &stream->local_ep->sep;
return bt_avdtp_open(&a2dp->session, &a2dp->open_param);
}

Expand Down

0 comments on commit 8681e4e

Please sign in to comment.