aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/bluetooth/hci.h')
-rw-r--r--include/net/bluetooth/hci.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 67ad9843034..5b2fed5eebf 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -210,6 +210,7 @@ enum {
210 210
211#define LMP_EV4 0x01 211#define LMP_EV4 0x01
212#define LMP_EV5 0x02 212#define LMP_EV5 0x02
213#define LMP_NO_BREDR 0x20
213#define LMP_LE 0x40 214#define LMP_LE 0x40
214 215
215#define LMP_SNIFF_SUBR 0x02 216#define LMP_SNIFF_SUBR 0x02
@@ -279,6 +280,10 @@ enum {
279#define HCI_ERROR_LOCAL_HOST_TERM 0x16 280#define HCI_ERROR_LOCAL_HOST_TERM 0x16
280#define HCI_ERROR_PAIRING_NOT_ALLOWED 0x18 281#define HCI_ERROR_PAIRING_NOT_ALLOWED 0x18
281 282
283/* Flow control modes */
284#define HCI_FLOW_CTL_MODE_PACKET_BASED 0x00
285#define HCI_FLOW_CTL_MODE_BLOCK_BASED 0x01
286
282/* ----- HCI Commands ---- */ 287/* ----- HCI Commands ---- */
283#define HCI_OP_NOP 0x0000 288#define HCI_OP_NOP 0x0000
284 289
@@ -745,6 +750,14 @@ struct hci_rp_read_bd_addr {
745 bdaddr_t bdaddr; 750 bdaddr_t bdaddr;
746} __packed; 751} __packed;
747 752
753#define HCI_OP_READ_DATA_BLOCK_SIZE 0x100a
754struct hci_rp_read_data_block_size {
755 __u8 status;
756 __le16 max_acl_len;
757 __le16 block_len;
758 __le16 num_blocks;
759} __packed;
760
748#define HCI_OP_WRITE_PAGE_SCAN_ACTIVITY 0x0c1c 761#define HCI_OP_WRITE_PAGE_SCAN_ACTIVITY 0x0c1c
749struct hci_cp_write_page_scan_activity { 762struct hci_cp_write_page_scan_activity {
750 __le16 interval; 763 __le16 interval;
@@ -791,6 +804,9 @@ struct hci_cp_le_set_scan_param {
791 __u8 filter_policy; 804 __u8 filter_policy;
792} __packed; 805} __packed;
793 806
807#define LE_SCANNING_DISABLED 0x00
808#define LE_SCANNING_ENABLED 0x01
809
794#define HCI_OP_LE_SET_SCAN_ENABLE 0x200c 810#define HCI_OP_LE_SET_SCAN_ENABLE 0x200c
795struct hci_cp_le_set_scan_enable { 811struct hci_cp_le_set_scan_enable {
796 __u8 enable; 812 __u8 enable;
@@ -966,9 +982,14 @@ struct hci_ev_role_change {
966} __packed; 982} __packed;
967 983
968#define HCI_EV_NUM_COMP_PKTS 0x13 984#define HCI_EV_NUM_COMP_PKTS 0x13
985struct hci_comp_pkts_info {
986 __le16 handle;
987 __le16 count;
988} __packed;
989
969struct hci_ev_num_comp_pkts { 990struct hci_ev_num_comp_pkts {
970 __u8 num_hndl; 991 __u8 num_hndl;
971 /* variable length part */ 992 struct hci_comp_pkts_info handles[0];
972} __packed; 993} __packed;
973 994
974#define HCI_EV_MODE_CHANGE 0x14 995#define HCI_EV_MODE_CHANGE 0x14