Bluetooth: Add missing check for BREDR_ENABLED flag in update_class()
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 19 Oct 2013 20:38:17 +0000 (23:38 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 20 Oct 2013 16:05:40 +0000 (09:05 -0700)
commitf87ea1dabb4b0e50f0c3d7140d89f1bb697a1676
tree2960c625fbe1c232b02796d947085e3b86678832
parent10994ce6e6696d2fb5a14601302da9b680fc9cc9
Bluetooth: Add missing check for BREDR_ENABLED flag in update_class()

We shouldn't be sending the HCI_Write_Class_Of_Device command when
BR/EDR is disabled since this is a BR/EDR-only command.

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