Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: Add L2CAP channel to skb private data

Adding the channel to the skb private data makes possible to us know which
channel the skb we have came from.

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

authored by

Gustavo Padovan and committed by
Marcel Holtmann
0e790c64 8ffb9290

+3
+1
include/net/bluetooth/bluetooth.h
··· 282 282 __u8 incoming; 283 283 __u16 expect; 284 284 __u8 force_active; 285 + struct l2cap_chan *chan; 285 286 struct l2cap_ctrl control; 286 287 struct hci_req_ctrl req; 287 288 bdaddr_t bdaddr;
+2
net/bluetooth/l2cap_sock.c
··· 1174 1174 if (!skb) 1175 1175 return ERR_PTR(err); 1176 1176 1177 + bt_cb(skb)->chan = chan; 1178 + 1177 1179 return skb; 1178 1180 } 1179 1181