diff options
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r-- | net/bluetooth/hci_conn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index ee5e59839b02..2c48bf0b5afb 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c | |||
@@ -276,7 +276,7 @@ u8 hci_le_conn_update(struct hci_conn *conn, u16 min, u16 max, u16 latency, | |||
276 | } | 276 | } |
277 | 277 | ||
278 | void hci_le_start_enc(struct hci_conn *conn, __le16 ediv, __le64 rand, | 278 | void hci_le_start_enc(struct hci_conn *conn, __le16 ediv, __le64 rand, |
279 | __u8 ltk[16]) | 279 | __u8 ltk[16], __u8 key_size) |
280 | { | 280 | { |
281 | struct hci_dev *hdev = conn->hdev; | 281 | struct hci_dev *hdev = conn->hdev; |
282 | struct hci_cp_le_start_enc cp; | 282 | struct hci_cp_le_start_enc cp; |
@@ -288,7 +288,7 @@ void hci_le_start_enc(struct hci_conn *conn, __le16 ediv, __le64 rand, | |||
288 | cp.handle = cpu_to_le16(conn->handle); | 288 | cp.handle = cpu_to_le16(conn->handle); |
289 | cp.rand = rand; | 289 | cp.rand = rand; |
290 | cp.ediv = ediv; | 290 | cp.ediv = ediv; |
291 | memcpy(cp.ltk, ltk, sizeof(cp.ltk)); | 291 | memcpy(cp.ltk, ltk, key_size); |
292 | 292 | ||
293 | hci_send_cmd(hdev, HCI_OP_LE_START_ENC, sizeof(cp), &cp); | 293 | hci_send_cmd(hdev, HCI_OP_LE_START_ENC, sizeof(cp), &cp); |
294 | } | 294 | } |