]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/bluetooth/mgmt.c
Bluetooth: Add missing check for BREDR_ENABLED flag in update_class()
[karo-tx-linux.git] / net / bluetooth / mgmt.c
index dd0bd4a55c8ad92fc35768f8520b53aaffc4abb4..c363285c64a820d321f333396fd3935ef9adfd65 100644 (file)
@@ -749,6 +749,9 @@ static void update_class(struct hci_request *req)
        if (!hdev_is_powered(hdev))
                return;
 
+       if (!test_bit(HCI_BREDR_ENABLED, &hdev->dev_flags))
+               return;
+
        if (test_bit(HCI_SERVICE_CACHE, &hdev->dev_flags))
                return;