summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/smp.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-03-16 12:34:55 -0700
committerJohan Hedberg <johan.hedberg@intel.com>2015-03-16 21:36:19 +0200
commite091526dfdaa955a7481a696094ac9e5d1bdb0fe (patch)
treeb24a78c66eab33f1103e4a4cbb477f38558a3f62 /net/bluetooth/smp.c
parentcb06d366fbf88f3923951d862f8c5b03fb483b43 (diff)
downloadop-kernel-dev-e091526dfdaa955a7481a696094ac9e5d1bdb0fe.zip
op-kernel-dev-e091526dfdaa955a7481a696094ac9e5d1bdb0fe.tar.gz
Bluetooth: Use smp->remote_pk + 32 instead of &smp->remote_pk[32]
Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
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 1bd2810..2b5c139 100644
--- a/net/bluetooth/smp.c
+++ b/net/bluetooth/smp.c
@@ -2543,7 +2543,7 @@ static int smp_cmd_public_key(struct l2cap_conn *conn, struct sk_buff *skb)
}
SMP_DBG("Remote Public Key X: %32phN", smp->remote_pk);
- SMP_DBG("Remote Public Key Y: %32phN", &smp->remote_pk[32]);
+ SMP_DBG("Remote Public Key Y: %32phN", smp->remote_pk + 32);
if (!ecdh_shared_secret(smp->remote_pk, smp->local_sk, smp->dhkey))
return SMP_UNSPECIFIED;
OpenPOWER on IntegriCloud