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

Bluetooth: Add hci_skb_* helper wrappers for bt_cb(skb) access

For all the HCI driver related variables accesssed via bt_cb(skb),
provide helper wrappers.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>

+4
+4
include/net/bluetooth/bluetooth.h
··· 316 316 }; 317 317 #define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb)) 318 318 319 + #define hci_skb_pkt_type(skb) bt_cb((skb))->pkt_type 320 + #define hci_skb_expect(skb) bt_cb((skb))->expect 321 + #define hci_skb_opcode(skb) bt_cb((skb))->hci.opcode 322 + 319 323 static inline struct sk_buff *bt_skb_alloc(unsigned int len, gfp_t how) 320 324 { 321 325 struct sk_buff *skb;