]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit96c5858982c3f4816e21a19276ac2bc99f197d4b
tree80f443a5764d39168015265ac3a93239ceb9c7c3
parent6fcf1a99fecd9124167176f1417c0e0a3a563253
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