Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 770bfefa authored by Andrei Emeltchenko's avatar Andrei Emeltchenko Committed by Gustavo Padovan
Browse files

Bluetooth: Derive remote and local amp id from chan struct



l2cap_chan already keeps information about *_amp_id.

Signed-off-by: default avatarAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
parent 439f34ac
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -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);