Bluetooth: Allow changing device class when BR/EDR is disabled
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Oct 2013 06:37:29 +0000 (23:37 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 3 Oct 2013 07:05:27 +0000 (10:05 +0300)
commit6203fc983457a19a1c4c491ab0e94b4c4c884fb9
treec8be7f4050f83c4c5d8404c5b93566b97220b192
parentcf99ba1359701ce82e756368513ddd0c5a7164ba
Bluetooth: Allow changing device class when BR/EDR is disabled

Changing the device class when BR/EDR is disabled has no visible
effect for remote devices. However to simplify the logic allow it
as long as the controller supports BR/EDR operations.

If it is not allowed, then the overall logic becomes rather
complicated since the class of device values would need clearing
or restoring when BR/EDR setting changes.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/mgmt.c