提交 770bfefa 编写于 作者: A Andrei Emeltchenko 提交者: Gustavo Padovan

Bluetooth: Derive remote and local amp id from chan struct

l2cap_chan already keeps information about *_amp_id.
Signed-off-by: NAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
上级 439f34ac
...@@ -4573,9 +4573,11 @@ static void l2cap_do_move_cancel(struct l2cap_chan *chan, int result) ...@@ -4573,9 +4573,11 @@ static void l2cap_do_move_cancel(struct l2cap_chan *chan, int result)
l2cap_ertm_send(chan); l2cap_ertm_send(chan);
} }
void l2cap_physical_cfm(struct l2cap_chan *chan, int result, u8 local_amp_id, void l2cap_physical_cfm(struct l2cap_chan *chan, int result)
u8 remote_amp_id)
{ {
u8 local_amp_id = chan->local_amp_id;
u8 remote_amp_id = chan->ctrl_id;
BT_DBG("chan %p, result %d, local_amp_id %d, remote_amp_id %d", BT_DBG("chan %p, result %d, local_amp_id %d, remote_amp_id %d",
chan, result, local_amp_id, remote_amp_id); chan, result, local_amp_id, remote_amp_id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册