aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/smp.c
diff options
context:
space:
mode:
authorHemant Gupta <hemant.gupta@stericsson.com>2011-12-23 00:37:24 -0500
committerGustavo F. Padovan <padovan@profusion.mobi>2011-12-23 13:55:06 -0500
commit3573b80c42e88c2a43c068c86bcd1a753cf6e1a0 (patch)
treec5d3101ff84f7d1db6f2bfe012be9fae59e9f82a /net/bluetooth/smp.c
parentaf3e6359a2b52970c63c3c9f73d52be281a162ad (diff)
Bluetooth: Incorrect address while storing LTK.
This patch fixes incorrect address storage while storing Long Term Key for LE Devices using SMP (Security Manager Protocol). The address stored should be of remote device and not of source device. Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/smp.c')
-rw-r--r--net/bluetooth/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c
index 9fea4bfd0eb5..32c47de30344 100644
--- a/net/bluetooth/smp.c
+++ b/net/bluetooth/smp.c
@@ -820,7 +820,7 @@ static int smp_cmd_master_ident(struct l2cap_conn *conn, struct sk_buff *skb)
820 820
821 skb_pull(skb, sizeof(*rp)); 821 skb_pull(skb, sizeof(*rp));
822 822
823 hci_add_ltk(conn->hcon->hdev, 1, conn->src, smp->smp_key_size, 823 hci_add_ltk(conn->hcon->hdev, 1, conn->dst, smp->smp_key_size,
824 rp->ediv, rp->rand, smp->tk); 824 rp->ediv, rp->rand, smp->tk);
825 825
826 smp_distribute_keys(conn, 1); 826 smp_distribute_keys(conn, 1);