OSDN Git Service

monitor: Add some missing HCI command definitions
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 8 Sep 2013 04:23:52 +0000 (21:23 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 8 Sep 2013 04:23:52 +0000 (21:23 -0700)
monitor/bt.h

index c104cb2..e0a942e 100644 (file)
@@ -649,6 +649,19 @@ struct bt_hci_cmd_write_page_scan_activity {
        uint16_t window;
 } __attribute__ ((packed));
 
+#define BT_HCI_CMD_READ_INQUIRY_SCAN_ACTIVITY  0x0c1d
+struct bt_hci_rsp_read_inquiry_scan_activity {
+       uint8_t  status;
+       uint16_t interval;
+       uint16_t window;
+} __attribute__ ((packed));
+
+#define BT_HCI_CMD_WRITE_INQUIRY_SCAN_ACTIVITY 0x0c1e
+struct bt_hci_cmd_write_inquiry_scan_activity {
+       uint16_t interval;
+       uint16_t window;
+} __attribute__ ((packed));
+
 #define BT_HCI_CMD_READ_AUTH_ENABLE            0x0c1f
 struct bt_hci_rsp_read_auth_enable {
        uint8_t  status;
@@ -660,6 +673,17 @@ struct bt_hci_cmd_write_auth_enable {
        uint8_t  enable;
 } __attribute__ ((packed));
 
+#define BT_HCI_CMD_READ_ENCRYPT_MODE           0x0c21
+struct bt_hci_rsp_read_encrypt_mode {
+       uint8_t  status;
+       uint8_t  mode;
+} __attribute__ ((packed));
+
+#define BT_HCI_CMD_WRITE_ENCRYPT_MODE          0x0c22
+struct bt_hci_cmd_write_encrypt_mode {
+       uint8_t  mode;
+} __attribute__ ((packed));
+
 #define BT_HCI_CMD_READ_CLASS_OF_DEV           0x0c23
 struct bt_hci_rsp_read_class_of_dev {
        uint8_t  status;
@@ -690,6 +714,10 @@ struct bt_hci_cmd_host_buffer_size {
        uint16_t sco_max_pkt;
 } __attribute__ ((packed));
 
+#define BT_HCI_CMD_READ_CURRENT_IAC_LAP                0x0c39
+
+#define BT_HCI_CMD_WRITE_CURRENT_IAC_LAP       0x0c3a
+
 #define BT_HCI_CMD_SET_AFH_HOST_CLASSIFICATION 0x0c3f
 struct bt_hci_cmd_set_afh_host_classification {
        uint8_t  map[10];
@@ -992,6 +1020,8 @@ struct bt_hci_rsp_write_remote_amp_assoc {
        uint8_t  phy_handle;
 } __attribute__ ((packed));
 
+#define BT_HCI_CMD_ENABLE_DUT_MODE             0x1803
+
 #define BT_HCI_CMD_LE_SET_EVENT_MASK           0x2001
 struct bt_hci_cmd_le_set_event_mask {
        uint8_t  mask[8];