diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2014-01-10 05:07:18 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-02-13 02:51:31 -0500 |
commit | e2f9913157133c3ffab4b835940927879d541b57 (patch) | |
tree | 06c141a205be7da727e8bdc77c2e3f55094234db /include/net/bluetooth | |
parent | eb4b95c627258f0b5cee6c26c8e478dda6941e2b (diff) |
Bluetooth: Add HCI command definition for extended OOB data
The Secure Connections feature introduces the support for P-256 strength
pairings (compared to P-192 with Secure Simple Pairing). This however
means that for out-of-band pairing the hash and randomizer needs to be
differentiated. Two new commands are introduced to handle the possible
combinations of P-192 and P-256. This add the HCI command definition
for both.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/hci.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 2a35d273de2c..e4e94bfc5232 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
@@ -664,6 +664,15 @@ struct hci_rp_set_csb { | |||
664 | 664 | ||
665 | #define HCI_OP_START_SYNC_TRAIN 0x0443 | 665 | #define HCI_OP_START_SYNC_TRAIN 0x0443 |
666 | 666 | ||
667 | #define HCI_OP_REMOTE_OOB_EXT_DATA_REPLY 0x0445 | ||
668 | struct hci_cp_remote_oob_ext_data_reply { | ||
669 | bdaddr_t bdaddr; | ||
670 | __u8 hash192[16]; | ||
671 | __u8 randomizer192[16]; | ||
672 | __u8 hash256[16]; | ||
673 | __u8 randomizer256[16]; | ||
674 | } __packed; | ||
675 | |||
667 | #define HCI_OP_SNIFF_MODE 0x0803 | 676 | #define HCI_OP_SNIFF_MODE 0x0803 |
668 | struct hci_cp_sniff_mode { | 677 | struct hci_cp_sniff_mode { |
669 | __le16 handle; | 678 | __le16 handle; |
@@ -948,6 +957,15 @@ struct hci_cp_write_sc_support { | |||
948 | __u8 support; | 957 | __u8 support; |
949 | } __packed; | 958 | } __packed; |
950 | 959 | ||
960 | #define HCI_OP_READ_LOCAL_OOB_EXT_DATA 0x0c7d | ||
961 | struct hci_rp_read_local_oob_ext_data { | ||
962 | __u8 status; | ||
963 | __u8 hash192[16]; | ||
964 | __u8 randomizer192[16]; | ||
965 | __u8 hash256[16]; | ||
966 | __u8 randomizer256[16]; | ||
967 | } __packed; | ||
968 | |||
951 | #define HCI_OP_READ_LOCAL_VERSION 0x1001 | 969 | #define HCI_OP_READ_LOCAL_VERSION 0x1001 |
952 | struct hci_rp_read_local_version { | 970 | struct hci_rp_read_local_version { |
953 | __u8 status; | 971 | __u8 status; |