summaryrefslogtreecommitdiff
path: root/monitor/bt.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-12-30 20:33:57 -0800
committerMarcel Holtmann <marcel@holtmann.org>2013-12-30 20:33:57 -0800
commitd0e729fd75ed2936c5718a8abb0e6f96e5c0bba5 (patch)
treea0982dbaf7fcb417189bed4dfc7930282fb026e4 /monitor/bt.h
parenta222b8440f0e3beb0cfa7277f1ec450ebe2927e5 (diff)
downloadbluez-d0e729fd75ed2936c5718a8abb0e6f96e5c0bba5.tar.gz
monitor: Add structure for SCO packets
Diffstat (limited to 'monitor/bt.h')
-rw-r--r--monitor/bt.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/monitor/bt.h b/monitor/bt.h
index 5a27120cf..a66b1a513 100644
--- a/monitor/bt.h
+++ b/monitor/bt.h
@@ -104,14 +104,19 @@ struct bt_ll_reject_ind {
#define BT_H4_SCO_PKT 0x03
#define BT_H4_EVT_PKT 0x04
+struct bt_hci_cmd_hdr {
+ uint16_t opcode;
+ uint8_t plen;
+} __attribute__ ((packed));
+
struct bt_hci_acl_hdr {
uint16_t handle;
uint16_t dlen;
} __attribute__ ((packed));
-struct bt_hci_cmd_hdr {
- uint16_t opcode;
- uint8_t plen;
+struct bt_hci_sco_hdr {
+ uint16_t handle;
+ uint8_t dlen;
} __attribute__ ((packed));
struct bt_hci_evt_hdr {