]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix exposing full value of shortened LTKs
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 10 Jun 2015 08:11:20 +0000 (11:11 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 10 Jun 2015 08:50:06 +0000 (10:50 +0200)
commitb9f04407a63700014cb6d8253f0968730294ed93
tree2a046d6e337cf63bf40f9ac991f2ff46291e9da8
parentfa4b1eeb50d4652d8a7deafa60a6edf50e4c1e66
Bluetooth: Fix exposing full value of shortened LTKs

When we notify user space of a new LTK or distribute an LTK to the
remote peer the value passed should be the shortened version so that
it's easy to compare values in various traces. The core spec also sets
the requirements for the shortening/masking as:

"The masking shall be done after generation and before being
distributed, used or stored."

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c
net/bluetooth/smp.c