Bluetooth: Fix OOB data present value for SMP pairing
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 31 Jan 2015 08:15:52 +0000 (00:15 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 31 Jan 2015 20:26:14 +0000 (21:26 +0100)
commit4775a4ea14d3e15645336e4b0f1355e526c57956
tree41ecd4f3bae7e86133cdf5ee7098b9342b1ac4f1
parent659c7fb08463b3dcf6aebb4daa0c5463289ccb97
Bluetooth: Fix OOB data present value for SMP pairing

Before setting the OOB data present flag with SMP pairing, check the
newly introduced present tracking that actual OOB data values have
been provided. The existence of remote OOB data structure does not
actually mean that the correct data values are available.

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