Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255834
b: refs/heads/master
c: 9b3d674
h: refs/heads/master
v: v3
  • Loading branch information
Vinicius Costa Gomes authored and Gustavo F. Padovan committed Jun 13, 2011
1 parent a099357 commit 68e57cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a7a595f675f1b33dc73167147321dba5c4395acc
refs/heads/master: 9b3d67405b17d61ba8be9d824222fb410f487b8a
6 changes: 1 addition & 5 deletions trunk/net/bluetooth/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ static void smp_cmd_pairing_random(struct l2cap_conn *conn, struct sk_buff *skb)
struct hci_conn *hcon = conn->hcon;
struct crypto_blkcipher *tfm = hcon->hdev->tfm;
int ret;
u8 key[16], res[16], random[16], confirm[16], buf[128];
u8 key[16], res[16], random[16], confirm[16];

swap128(skb->data, random);
skb_pull(skb, sizeof(random));
Expand Down Expand Up @@ -329,10 +329,6 @@ static void smp_cmd_pairing_random(struct l2cap_conn *conn, struct sk_buff *skb)

smp_s1(tfm, conn->tk, conn->prnd, random, key);
swap128(key, hcon->ltk);

hex_dump_to_buffer(key, sizeof(key), 16, 1, buf,
sizeof(buf), 0);
BT_DBG("key %s", buf);
}
}

Expand Down

0 comments on commit 68e57cb

Please sign in to comment.