Bluetooth: Use bt_cb(skb)->chan to send raw data back
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 21 Oct 2013 20:22:25 +0000 (18:22 -0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 21 Oct 2013 20:50:55 +0000 (13:50 -0700)
commit7f5396a774997a24e2adaffd973cfa5bd2b3e665
tree12de86590df4f1576a26d16c07e379eaa03e4eec
parent0e790c64f37a1a43c147720bdfa03b7c5538e24a
Bluetooth: Use bt_cb(skb)->chan to send raw data back

Instead of accessing skb->sk in L2CAP core we now compare the channel
a skb belongs to and not send it back if the channel is same. This change
removes another struct socket usage from L2CAP core.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c