mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
This commit is contained in:
parent
035ad621b6
commit
821f376668
2 changed files with 97 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue