Bluetooth: mgmt: Restrict BR/EDR settings to BR/EDR-only adapters
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 24 Oct 2012 18:11:58 +0000 (21:11 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 1 Nov 2012 22:26:56 +0000 (20:26 -0200)
commit33c525c0a37abd136f014f473f5a2efddba58167
treeb46cd6dd9d02c91423e0e9db1959d1c87426c256
parent7f0ae647b29ba80d5a1127804ba478e3de8a6b4c
Bluetooth: mgmt: Restrict BR/EDR settings to BR/EDR-only adapters

This patch makes sure that settings which are specific for BR/EDR
capable adapters are not allowed for non-BR/EDR (e.g. LE-only) adapters.
Instead, a "not supported" error is returned of such a setting is
attempted to be set for a non-BR/EDR adapter.

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