OSDN Git Service

Bluetooth: SMP: Fix trying to use non-existent local OOB data
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 11 Sep 2018 11:10:12 +0000 (14:10 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 11 Sep 2018 11:33:57 +0000 (13:33 +0200)
commit94f14e4728125f979629b2b020d31cd718191626
tree4a1d3a89a9d736b27d68266f3056f94ed5078fd0
parent7c5cca3588545e7f255171e28e0dd6e384ebb91d
Bluetooth: SMP: Fix trying to use non-existent local OOB data

A remote device may claim that it has received our OOB data, even
though we never geneated it. Add a new flag to track whether we
actually have OOB data, and ignore the remote peer's flag if haven't
generated OOB data.

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