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>
This commit is contained in:
parent
8ffb929098
commit
0e790c64f3
@ -282,6 +282,7 @@ struct bt_skb_cb {
|
|||||||
__u8 incoming;
|
__u8 incoming;
|
||||||
__u16 expect;
|
__u16 expect;
|
||||||
__u8 force_active;
|
__u8 force_active;
|
||||||
|
struct l2cap_chan *chan;
|
||||||
struct l2cap_ctrl control;
|
struct l2cap_ctrl control;
|
||||||
struct hci_req_ctrl req;
|
struct hci_req_ctrl req;
|
||||||
bdaddr_t bdaddr;
|
bdaddr_t bdaddr;
|
||||||
|
@ -1174,6 +1174,8 @@ static struct sk_buff *l2cap_sock_alloc_skb_cb(struct l2cap_chan *chan,
|
|||||||
if (!skb)
|
if (!skb)
|
||||||
return ERR_PTR(err);
|
return ERR_PTR(err);
|
||||||
|
|
||||||
|
bt_cb(skb)->chan = chan;
|
||||||
|
|
||||||
return skb;
|
return skb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user