From e4f8701065b422dadfeb58e1ac66a048b9157a98 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 27 Aug 2013 14:31:44 -0700 Subject: [PATCH] monitor: Add structures for RSSI and link quality commands --- monitor/bt.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/monitor/bt.h b/monitor/bt.h index 78e2a4d40..4229643eb 100644 --- a/monitor/bt.h +++ b/monitor/bt.h @@ -844,6 +844,26 @@ struct bt_hci_rsp_read_data_block_size { uint16_t num_blocks; } __attribute__ ((packed)); +#define BT_HCI_CMD_READ_LINK_QUALITY 0x1403 +struct bt_hci_cmd_read_link_quality { + uint16_t handle; +} __attribute__ ((packed)); +struct bt_hci_rsp_read_link_quality { + uint8_t status; + uint16_t handle; + uint8_t link_quality; +} __attribute__ ((packed)); + +#define BT_HCI_CMD_READ_RSSI 0x1405 +struct bt_hci_cmd_read_rssi { + uint16_t handle; +} __attribute__ ((packed)); +struct bt_hci_rsp_read_rssi { + uint8_t status; + uint16_t handle; + int8_t rssi; +} __attribute__ ((packed)); + #define BT_HCI_CMD_READ_CLOCK 0x1407 struct bt_hci_cmd_read_clock { uint16_t handle; -- 2.47.3