projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
439f34a
)
Bluetooth: Derive remote and local amp id from chan struct
author
Andrei Emeltchenko
<
[email protected]
>
Wed, 31 Oct 2012 13:46:29 +0000
(15:46 +0200)
committer
Gustavo Padovan
<
[email protected]
>
Thu, 1 Nov 2012 22:27:06 +0000
(20:27 -0200)
l2cap_chan already keeps information about *_amp_id.
Signed-off-by: Andrei Emeltchenko <
[email protected]
>
Acked-by: Marcel Holtmann <
[email protected]
>
Signed-off-by: Gustavo Padovan <
[email protected]
>
net/bluetooth/l2cap_core.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/l2cap_core.c
b/net/bluetooth/l2cap_core.c
index d51741fb5a9ca566cffc323d14e9de9bcb30525f..782e49c97e7e21210803af28635d6f49368f91ca 100644
(file)
--- 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)
l2cap_ertm_send(chan);
}
-void l2cap_physical_cfm(struct l2cap_chan *chan, int result, u8 local_amp_id,
- u8 remote_amp_id)
+void l2cap_physical_cfm(struct l2cap_chan *chan, int result)
{
+ 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",
chan, result, local_amp_id, remote_amp_id);