aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/bluetooth.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/bluetooth/bluetooth.h')
-rw-r--r--include/net/bluetooth/bluetooth.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
index d8367cc7c76e..eeaff4b5cb62 100644
--- a/include/net/bluetooth/bluetooth.h
+++ b/include/net/bluetooth/bluetooth.h
@@ -278,16 +278,22 @@ struct hci_dev;
278 278
279typedef void (*hci_req_complete_t)(struct hci_dev *hdev, u8 status, u16 opcode); 279typedef void (*hci_req_complete_t)(struct hci_dev *hdev, u8 status, u16 opcode);
280 280
281struct req_ctrl {
282 bool start;
283 u8 event;
284 hci_req_complete_t complete;
285};
286
281struct bt_skb_cb { 287struct bt_skb_cb {
282 __u8 pkt_type; 288 __u8 pkt_type;
283 __u8 force_active; 289 __u8 force_active;
284 __u16 opcode; 290 __u16 opcode;
285 __u16 expect; 291 __u16 expect;
286 __u8 incoming:1; 292 __u8 incoming:1;
287 __u8 req_start:1; 293 union {
288 u8 req_event; 294 struct l2cap_ctrl l2cap;
289 hci_req_complete_t req_complete; 295 struct req_ctrl req;
290 struct l2cap_ctrl l2cap; 296 };
291}; 297};
292#define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb)) 298#define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb))
293 299