Bluetooth: Fix checking for correct mgmt_load_link_keys parameters
authorJohan Hedberg <johan.hedberg@intel.com>
Sun, 20 Jan 2013 12:27:13 +0000 (14:27 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 23 Jan 2013 03:48:19 +0000 (01:48 -0200)
commit4ae14301c3b180adaf6b72285499e7404819a023
tree96286633b9ff9a63e8c4e90471b6f54bcbd2a319
parentf950a30e2433f049c17fc47caced1397d25373a6
Bluetooth: Fix checking for correct mgmt_load_link_keys parameters

The debug_keys parameter is only allowed to have the values 0x00 and
0x01. Any other value should result in a proper command status with
MGMT_STATUS_INVALID_PARAMS.

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