From d0e729fd75ed2936c5718a8abb0e6f96e5c0bba5 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 30 Dec 2013 20:33:57 -0800 Subject: [PATCH] monitor: Add structure for SCO packets --- monitor/bt.h | 11 ++++++++--- 1 file 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 { -- 2.47.3