Bluetooth: Enforce zero-valued hash/rand192 for LE OOB
commitd25b78e2ed60ea33dc1008d0f50b3410b73212a0
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 27 Jan 2015 10:55:52 +0000 (27 12:55 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 28 Jan 2015 20:26:19 +0000 (28 21:26 +0100)
tree48a49a400c587df4122eee8ffb244bc3b576d048
parentcda0dd7809f89e8d7f88335690d84b8482d33111
Bluetooth: Enforce zero-valued hash/rand192 for LE OOB

Until legacy SMP OOB pairing is implemented user space should be given a
clear error when trying to use it. This patch adds a corresponding check
to the Add Remote OOB Data handler function which returns "invalid
parameters" if non-zero Rand192 or Hash192 parameters were given for an
LE address.

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