OSDN Git Service

Bluetooth: Fix checking for valid address type values in mgmt commands
authorJohan Hedberg <johan.hedberg@intel.com>
Sun, 20 Jan 2013 12:27:19 +0000 (14:27 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 23 Jan 2013 03:59:55 +0000 (01:59 -0200)
commit4ee71b2017336f68128515bdbe7c946a39aa9250
tree46ba5e222954a6a9d66af48dbf8ad19b693990bf
parent679efe2b4fcbe575bc4c94c410039e35c169bfb6
Bluetooth: Fix checking for valid address type values in mgmt commands

This patch adds checks for valid address type values passed to mgmt
commands. If an invalid address type is encountered the code will return
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