summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-08-06 08:08:42 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-08-06 08:08:42 +0000
commit049d8b7167e88eb376a7173188eb09a5d6b19b41 (patch)
treefc0ac163068080e15b0182768491e556975d29fb /include
parent9409e3e8e152290e253889df6922c56ef606b62b (diff)
Add HCI message header
Diffstat (limited to 'include')
-rw-r--r--include/hci.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hci.h b/include/hci.h
index 29518dbb..c9de094d 100644
--- a/include/hci.h
+++ b/include/hci.h
@@ -1370,6 +1370,13 @@ typedef struct {
} __attribute__ ((packed)) hci_sco_hdr;
#define HCI_SCO_HDR_SIZE 3
+typedef struct {
+ uint16_t device;
+ uint16_t type;
+ uint16_t plen;
+} __attribute__ ((packed)) hci_msg_hdr;
+#define HCI_MSG_HDR_SIZE 6
+
/* Command opcode pack/unpack */
#define cmd_opcode_pack(ogf, ocf) (uint16_t)((ocf & 0x03ff)|(ogf << 10))
#define cmd_opcode_ogf(op) (op >> 10)