From 8681e4e3762a06abf164572753f0d7a409fc4e11 Mon Sep 17 00:00:00 2001 From: Mark Wang Date: Fri, 5 Jul 2024 19:01:19 +0800 Subject: [PATCH] Bluetooth: A2DP: Fix mistake parameter need to use the value from stream. Signed-off-by: Mark Wang --- subsys/bluetooth/host/classic/a2dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/classic/a2dp.c b/subsys/bluetooth/host/classic/a2dp.c index 76300861c1beeb9..5cb5203e6e28cbe 100644 --- a/subsys/bluetooth/host/classic/a2dp.c +++ b/subsys/bluetooth/host/classic/a2dp.c @@ -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); }