Bluetooth: Update New CSRK event to match latest specification
[cascardo/linux.git] / include / net / bluetooth / mgmt.h
index 95c34d5..fe8eef0 100644 (file)
@@ -301,10 +301,6 @@ struct mgmt_cp_user_passkey_neg_reply {
 #define MGMT_OP_READ_LOCAL_OOB_DATA    0x0020
 #define MGMT_READ_LOCAL_OOB_DATA_SIZE  0
 struct mgmt_rp_read_local_oob_data {
-       __u8    hash[16];
-       __u8    rand[16];
-} __packed;
-struct mgmt_rp_read_local_oob_ext_data {
        __u8    hash192[16];
        __u8    rand192[16];
        __u8    hash256[16];
@@ -651,9 +647,14 @@ struct mgmt_ev_new_irk {
        struct mgmt_irk_info irk;
 } __packed;
 
+#define MGMT_CSRK_LOCAL_UNAUTHENTICATED                0x00
+#define MGMT_CSRK_REMOTE_UNAUTHENTICATED       0x01
+#define MGMT_CSRK_LOCAL_AUTHENTICATED          0x02
+#define MGMT_CSRK_REMOTE_AUTHENTICATED         0x03
+
 struct mgmt_csrk_info {
        struct mgmt_addr_info addr;
-       __u8 master;
+       __u8 type;
        __u8 val[16];
 } __packed;