Bluetooth: Add basic LE SC OOB support for remote OOB data
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 28 Oct 2014 14:17:05 +0000 (15:17 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 3 Dec 2014 15:51:21 +0000 (16:51 +0100)
commita29b073351ffdda0ce9745f3bd98f5a513c523d7
tree58d29f40901ed040e7939cb5db44c6d0ba077534
parent02b05bd8b0a632e9a26795bced8f19ca6a5f7079
Bluetooth: Add basic LE SC OOB support for remote OOB data

This patch adds basic OOB pairing support when we've received the remote
OOB data. This includes tracking the remote r value (in smp->rr) as well
as doing the appropriate f4() call when needed. Previously the OOB rand
would have been stored in smp->rrnd however these are actually two
independent values so we need separate variables for them. Na/Nb in the
spec maps to smp->prnd/rrnd and ra/rb maps to smp->rr with smp->pr to
come once local OOB data is supported.

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