diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-10-31 09:46:29 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-11-01 18:27:06 -0400 |
commit | 770bfefa2cbe8f5911860fef1a68ea873a9bbdbe (patch) | |
tree | 509895b7db44a3141a4470c5c63098dd288aa47c /net/bluetooth | |
parent | 439f34acead5bb1679f194c2023f05b90dcb8b4c (diff) |
Bluetooth: Derive remote and local amp id from chan struct
l2cap_chan already keeps information about *_amp_id.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index d51741fb5a9c..782e49c97e7e 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -4573,9 +4573,11 @@ static void l2cap_do_move_cancel(struct l2cap_chan *chan, int result) | |||
4573 | l2cap_ertm_send(chan); | 4573 | l2cap_ertm_send(chan); |
4574 | } | 4574 | } |
4575 | 4575 | ||
4576 | void l2cap_physical_cfm(struct l2cap_chan *chan, int result, u8 local_amp_id, | 4576 | void l2cap_physical_cfm(struct l2cap_chan *chan, int result) |
4577 | u8 remote_amp_id) | ||
4578 | { | 4577 | { |
4578 | u8 local_amp_id = chan->local_amp_id; | ||
4579 | u8 remote_amp_id = chan->ctrl_id; | ||
4580 | |||
4579 | BT_DBG("chan %p, result %d, local_amp_id %d, remote_amp_id %d", | 4581 | BT_DBG("chan %p, result %d, local_amp_id %d, remote_amp_id %d", |
4580 | chan, result, local_amp_id, remote_amp_id); | 4582 | chan, result, local_amp_id, remote_amp_id); |
4581 | 4583 | ||