Bluetooth: Fix OOB data present value for BR/EDR Secure Connections
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 31 Jan 2015 07:20:56 +0000 (23:20 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 31 Jan 2015 20:26:12 +0000 (21:26 +0100)
commitd01cb1dbb47db5a60dc3f2af4164583a915d7fd5
tree38bf0a926f2ae378a341064f68a4192ac9e10bcd
parentedb175ab32954f6ac0de6abfe5211ba7ba6d2068
Bluetooth: Fix OOB data present value for BR/EDR Secure Connections

When BR/EDR Secure Connections has been enabled, the OOB data present
value can take 2 additional values. The host has to clearly provide
details about if P-192 OOB data, P-256 OOB data or a combination of
P-192 and P-256 OOB data is present.

In case BR/EDR Secure Connections is not enabled or not supported,
then check that P-192 OOB data is actually present and return the
correct value based on that.

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