lib: MGMT_OP_SET_BLOCKED_KEYS Api definitions
authorAlain Michaud <alainm@chromium.org>
Tue, 7 Jan 2020 01:28:18 +0000 (01:28 +0000)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:48 +0000 (14:30 +0530)
Adding the required definitions for the MGMT_OP_SET_BLOCKED_KEYS Api.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
lib/mgmt.h

index e414bb6..3324945 100644 (file)
@@ -593,6 +593,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 {