From 97abfa24e81515774ea87ab44a6ca9236008808d Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 19 Aug 2019 10:36:45 +0200 Subject: [PATCH] hci_cmd: add hci_read_encryption_key_size --- src/hci_cmd.c | 7 ++++++- src/hci_cmd.h | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/hci_cmd.c b/src/hci_cmd.c index 8dd07c2e4..86a30741a 100644 --- a/src/hci_cmd.c +++ b/src/hci_cmd.c @@ -890,9 +890,14 @@ OPCODE(OGF_INFORMATIONAL_PARAMETERS, 0x09), "" */ const hci_cmd_t hci_read_rssi = { OPCODE(OGF_STATUS_PARAMETERS, 0x05), "H" -// no params }; +/** + * @param handle + */ +const hci_cmd_t hci_read_encryption_key_size = { +OPCODE(OGF_STATUS_PARAMETERS, 0x08), "H" +}; #ifdef ENABLE_BLE diff --git a/src/hci_cmd.h b/src/hci_cmd.h index c6187fccb..2974b0944 100644 --- a/src/hci_cmd.h +++ b/src/hci_cmd.h @@ -111,6 +111,7 @@ extern const hci_cmd_t hci_pin_code_request_reply; extern const hci_cmd_t hci_qos_setup; extern const hci_cmd_t hci_read_bd_addr; extern const hci_cmd_t hci_read_buffer_size; +extern const hci_cmd_t hci_read_encryption_key_size; extern const hci_cmd_t hci_read_le_host_supported; extern const hci_cmd_t hci_read_link_policy_settings; extern const hci_cmd_t hci_read_link_supervision_timeout;