diff options
Diffstat (limited to 'net/bluetooth/smp.h')
-rw-r--r-- | net/bluetooth/smp.h | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/net/bluetooth/smp.h b/net/bluetooth/smp.h index 1277147a9150..5a8dc36460a1 100644 --- a/net/bluetooth/smp.h +++ b/net/bluetooth/smp.h | |||
@@ -111,39 +111,11 @@ struct smp_cmd_security_req { | |||
111 | #define SMP_CMD_NOTSUPP 0x07 | 111 | #define SMP_CMD_NOTSUPP 0x07 |
112 | #define SMP_UNSPECIFIED 0x08 | 112 | #define SMP_UNSPECIFIED 0x08 |
113 | #define SMP_REPEATED_ATTEMPTS 0x09 | 113 | #define SMP_REPEATED_ATTEMPTS 0x09 |
114 | #define SMP_INVALID_PARAMS 0x0a | ||
114 | 115 | ||
115 | #define SMP_MIN_ENC_KEY_SIZE 7 | 116 | #define SMP_MIN_ENC_KEY_SIZE 7 |
116 | #define SMP_MAX_ENC_KEY_SIZE 16 | 117 | #define SMP_MAX_ENC_KEY_SIZE 16 |
117 | 118 | ||
118 | #define SMP_FLAG_TK_VALID 1 | ||
119 | #define SMP_FLAG_CFM_PENDING 2 | ||
120 | #define SMP_FLAG_MITM_AUTH 3 | ||
121 | #define SMP_FLAG_COMPLETE 4 | ||
122 | #define SMP_FLAG_INITIATOR 5 | ||
123 | |||
124 | struct smp_chan { | ||
125 | struct l2cap_conn *conn; | ||
126 | u8 preq[7]; /* SMP Pairing Request */ | ||
127 | u8 prsp[7]; /* SMP Pairing Response */ | ||
128 | u8 prnd[16]; /* SMP Pairing Random (local) */ | ||
129 | u8 rrnd[16]; /* SMP Pairing Random (remote) */ | ||
130 | u8 pcnf[16]; /* SMP Pairing Confirm */ | ||
131 | u8 tk[16]; /* SMP Temporary Key */ | ||
132 | u8 enc_key_size; | ||
133 | u8 remote_key_dist; | ||
134 | bdaddr_t id_addr; | ||
135 | u8 id_addr_type; | ||
136 | u8 irk[16]; | ||
137 | struct smp_csrk *csrk; | ||
138 | struct smp_csrk *slave_csrk; | ||
139 | struct smp_ltk *ltk; | ||
140 | struct smp_ltk *slave_ltk; | ||
141 | struct smp_irk *remote_irk; | ||
142 | unsigned long smp_flags; | ||
143 | struct work_struct confirm; | ||
144 | struct work_struct random; | ||
145 | }; | ||
146 | |||
147 | /* SMP Commands */ | 119 | /* SMP Commands */ |
148 | bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level); | 120 | bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level); |
149 | int smp_conn_security(struct hci_conn *hcon, __u8 sec_level); | 121 | int smp_conn_security(struct hci_conn *hcon, __u8 sec_level); |