Bluetooth: Fix checking for proper key->master value in Load LTKs
authorJohan Hedberg <johan.hedberg@intel.com>
Sun, 20 Jan 2013 12:27:15 +0000 (14:27 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 23 Jan 2013 03:54:09 +0000 (01:54 -0200)
commit54ad6d8a5afe1a6d162d8d229a3d8fc48b254d24
treef636430077b38a32b03e1c2c382297634dbc9d44
parente57e619f463e7841940ef1b98969e23f71f5ee8a
Bluetooth: Fix checking for proper key->master value in Load LTKs

The allowed values for the key->master parameter in the Load LTKs
command are 0x00 and 0x01. If there is a key in the list with some other
value the command should fail with a proper invalid params response.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/mgmt.c