]> rtime.felk.cvut.cz Git - linux-imx.git/blobdiff - net/bluetooth/hci_core.c
Bluetooth: Fix HCI init for BlueFRITZ! devices
[linux-imx.git] / net / bluetooth / hci_core.c
index 64d33d1e14c80c425b66c646a108bb5675cb2f0a..0176f200ccb09b6657abbdac1d7445f51ff3fbd3 100644 (file)
@@ -513,7 +513,10 @@ static void hci_init2_req(struct hci_request *req, unsigned long opt)
 
        hci_setup_event_mask(req);
 
-       if (hdev->hci_ver > BLUETOOTH_VER_1_1)
+       /* AVM Berlin (31), aka "BlueFRITZ!", doesn't support the read
+        * local supported commands HCI command.
+        */
+       if (hdev->manufacturer != 31 && hdev->hci_ver > BLUETOOTH_VER_1_1)
                hci_req_add(req, HCI_OP_READ_LOCAL_COMMANDS, 0, NULL);
 
        if (lmp_ssp_capable(hdev)) {