Bluetooth: Read encryption key size for BR/EDR connections
Since Bluetooth 3.0 there's a HCI command available for reading the encryption key size of an BR/EDR connection. This information is essential e.g. for generating an LTK using SMP over BR/EDR, so store it as part of struct hci_conn. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:

committed by
Marcel Holtmann

parent
035ad621b6
commit
821f376668
@@ -1202,6 +1202,16 @@ struct hci_rp_read_clock {
|
||||
__le16 accuracy;
|
||||
} __packed;
|
||||
|
||||
#define HCI_OP_READ_ENC_KEY_SIZE 0x1408
|
||||
struct hci_cp_read_enc_key_size {
|
||||
__le16 handle;
|
||||
} __packed;
|
||||
struct hci_rp_read_enc_key_size {
|
||||
__u8 status;
|
||||
__le16 handle;
|
||||
__u8 key_size;
|
||||
} __packed;
|
||||
|
||||
#define HCI_OP_READ_LOCAL_AMP_INFO 0x1409
|
||||
struct hci_rp_read_local_amp_info {
|
||||
__u8 status;
|
||||
|
Reference in New Issue
Block a user