1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 #ifndef __HCI_MON_H
25 #define __HCI_MON_H
26
27 struct hci_mon_hdr {
28 __le16 opcode;
29 __le16 index;
30 __le16 len;
31 } __packed;
32 #define HCI_MON_HDR_SIZE 6
33
34 #define HCI_MON_NEW_INDEX 0
35 #define HCI_MON_DEL_INDEX 1
36 #define HCI_MON_COMMAND_PKT 2
37 #define HCI_MON_EVENT_PKT 3
38 #define HCI_MON_ACL_TX_PKT 4
39 #define HCI_MON_ACL_RX_PKT 5
40 #define HCI_MON_SCO_TX_PKT 6
41 #define HCI_MON_SCO_RX_PKT 7
42 #define HCI_MON_OPEN_INDEX 8
43 #define HCI_MON_CLOSE_INDEX 9
44 #define HCI_MON_INDEX_INFO 10
45 #define HCI_MON_VENDOR_DIAG 11
46 #define HCI_MON_SYSTEM_NOTE 12
47 #define HCI_MON_USER_LOGGING 13
48 #define HCI_MON_CTRL_OPEN 14
49 #define HCI_MON_CTRL_CLOSE 15
50 #define HCI_MON_CTRL_COMMAND 16
51 #define HCI_MON_CTRL_EVENT 17
52
53 struct hci_mon_new_index {
54 __u8 type;
55 __u8 bus;
56 bdaddr_t bdaddr;
57 char name[8];
58 } __packed;
59 #define HCI_MON_NEW_INDEX_SIZE 16
60
61 struct hci_mon_index_info {
62 bdaddr_t bdaddr;
63 __le16 manufacturer;
64 } __packed;
65 #define HCI_MON_INDEX_INFO_SIZE 8
66
67 #endif