Bluetooth: Fix local OOB data handling for SMP
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 16 Mar 2015 09:45:43 +0000 (11:45 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 16 Mar 2015 16:16:45 +0000 (17:16 +0100)
commit882fafad71a4bac8e8a2445dfb08c38a71b4eef1
treec077fd85428f65fc858f124eb5d576670dc99b92
parent8e4e2ee5d80875177e03d57b807e0784f3d91e0e
Bluetooth: Fix local OOB data handling for SMP

We need to store the local ra/rb value in order to verify the Check
value received from the remote. This patch adds a new 'lr' for the local
ra/rb value and makes sure it gets used when verifying the DHKey Check
PDU received from the remote.

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