From: Johan Hedberg <johan.hedberg@xxxxxxxxx> --- lib/hci.h | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/lib/hci.h b/lib/hci.h index 512dab9..1ac153f 100644 --- a/lib/hci.h +++ b/lib/hci.h @@ -2232,6 +2232,24 @@ typedef struct { #endif /* _NO_HCI_DEFS */ +struct hci_mgmt_hdr { + uint16_t opcode; + uint16_t len; +} __packed; +#define HCI_MGMT_HDR_SIZE 4 + +#define HCI_MGMT_OP_READ_VERSION 0x0001 +#define HCI_MGMT_OP_READ_FEATURES 0x0002 +#define HCI_MGMT_OP_READ_INDEX_LIST 0x0003 +#define HCI_MGMT_OP_READ_INFO 0x0004 +#define HCI_MGMT_OP_READ_STATISTICS 0x0005 +#define HCI_MGMT_OP_READ_MODE 0x0006 +#define HCI_MGMT_OP_WRITE_MODE 0x0007 + +#define HCI_MGMT_EV_CMD_COMPLETE 0x0001 +#define HCI_MGMT_EV_CMD_STATUS 0x0002 +#define HCI_MGMT_EV_CONTROLLER_ERROR 0x0003 + /* HCI Socket options */ #define HCI_DATA_DIR 1 #define HCI_FILTER 2 @@ -2244,9 +2262,12 @@ typedef struct { struct sockaddr_hci { sa_family_t hci_family; unsigned short hci_dev; + unsigned short hci_channel; }; #define HCI_DEV_NONE 0xffff +#define HCI_CHANNEL_CONTROL 1 + struct hci_filter { uint32_t type_mask; uint32_t event_mask[2]; -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html