aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/smp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c
index 56828db68109..69839797b7dc 100644
--- a/net/bluetooth/smp.c
+++ b/net/bluetooth/smp.c
@@ -280,7 +280,7 @@ static void smp_cmd_pairing_random(struct l2cap_conn *conn, struct sk_buff *skb)
280 struct hci_conn *hcon = conn->hcon; 280 struct hci_conn *hcon = conn->hcon;
281 struct crypto_blkcipher *tfm = hcon->hdev->tfm; 281 struct crypto_blkcipher *tfm = hcon->hdev->tfm;
282 int ret; 282 int ret;
283 u8 key[16], res[16], random[16], confirm[16], buf[128]; 283 u8 key[16], res[16], random[16], confirm[16];
284 284
285 swap128(skb->data, random); 285 swap128(skb->data, random);
286 skb_pull(skb, sizeof(random)); 286 skb_pull(skb, sizeof(random));
@@ -329,10 +329,6 @@ static void smp_cmd_pairing_random(struct l2cap_conn *conn, struct sk_buff *skb)
329 329
330 smp_s1(tfm, conn->tk, conn->prnd, random, key); 330 smp_s1(tfm, conn->tk, conn->prnd, random, key);
331 swap128(key, hcon->ltk); 331 swap128(key, hcon->ltk);
332
333 hex_dump_to_buffer(key, sizeof(key), 16, 1, buf,
334 sizeof(buf), 0);
335 BT_DBG("key %s", buf);
336 } 332 }
337} 333}
338 334