Bluetooth: Fix accepting set_dev_class for non-BR/EDR controllers
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 9 Jan 2013 13:29:36 +0000 (15:29 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 10 Jan 2013 08:09:26 +0000 (06:09 -0200)
commitee98f4738050bb93823ce9ba849f5d78f5b8c1a1
tree80f443a5764d39168015265ac3a93239ceb9c7c3
parent575b3a02e20a10bb8110378ef363a8a174018680
Bluetooth: Fix accepting set_dev_class for non-BR/EDR controllers

The concept of Class of Device only exists for BR/EDR controllers. The
mgmt_set_dev_class command should therefore return a proper "not
supported" error if it is attempted for a controller that doesn't
support BR/EDR (e.g. a single mode LE-only one).

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