|
@@ -316,6 +316,10 @@ struct bt_skb_cb {
|
|
};
|
|
};
|
|
#define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb))
|
|
#define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb))
|
|
|
|
|
|
|
|
+#define hci_skb_pkt_type(skb) bt_cb((skb))->pkt_type
|
|
|
|
+#define hci_skb_expect(skb) bt_cb((skb))->expect
|
|
|
|
+#define hci_skb_opcode(skb) bt_cb((skb))->hci.opcode
|
|
|
|
+
|
|
static inline struct sk_buff *bt_skb_alloc(unsigned int len, gfp_t how)
|
|
static inline struct sk_buff *bt_skb_alloc(unsigned int len, gfp_t how)
|
|
{
|
|
{
|
|
struct sk_buff *skb;
|
|
struct sk_buff *skb;
|