diff options
author | Alain Michaud <alainm@chromium.org> | 2020-01-07 01:28:18 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-01-16 13:21:43 -0800 |
commit | 31c32aee5bebb4ce9b805ee2ab3e0f8f7196b21f (patch) | |
tree | d4a9e6c5590e90f452ab32ad3e1db0d350e45942 /lib | |
parent | 6a889a28f18d081785e53419f663ce5e4636c74d (diff) | |
download | bluez-31c32aee5bebb4ce9b805ee2ab3e0f8f7196b21f.tar.gz |
lib: MGMT_OP_SET_BLOCKED_KEYS Api definitions
Adding the required definitions for the MGMT_OP_SET_BLOCKED_KEYS Api.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mgmt.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/mgmt.h b/lib/mgmt.h index 570dec997..276445d0a 100644 --- a/lib/mgmt.h +++ b/lib/mgmt.h @@ -583,6 +583,21 @@ struct mgmt_cp_set_phy_confguration { uint32_t selected_phys; } __packed; +#define MGMT_OP_SET_BLOCKED_KEYS 0x0046 + +#define HCI_BLOCKED_KEY_TYPE_LINKKEY 0x00 +#define HCI_BLOCKED_KEY_TYPE_LTK 0x01 +#define HCI_BLOCKED_KEY_TYPE_IRK 0x02 + +struct mgmt_blocked_key_info { + uint8_t type; + uint8_t val[16]; +} __packed; + +struct mgmt_cp_set_blocked_keys { + uint16_t key_count; + struct mgmt_blocked_key_info keys[0]; +} __packed; #define MGMT_EV_CMD_COMPLETE 0x0001 struct mgmt_ev_cmd_complete { |