OSDN Git Service

monitor: Add structures for RSSI and link quality commands
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 27 Aug 2013 21:31:44 +0000 (14:31 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 27 Aug 2013 21:31:44 +0000 (14:31 -0700)
monitor/bt.h

index 78e2a4d..4229643 100644 (file)
@@ -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;