]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/bluetooth/hci_event.c
Bluetooth: mgmt: Make Set Link Security callable while powered off
[mv-sheeva.git] / net / bluetooth / hci_event.c
index 2a5d05c05e35a6b98f4ddbc2aab330167293da8f..5fb1ee516d3a081f1e4e46cd0cda40372db78f8d 100644 (file)
@@ -594,6 +594,12 @@ static void hci_setup(struct hci_dev *hdev)
                                                        sizeof(cp), &cp);
        }
 
+       if (test_bit(HCI_LINK_SECURITY, &hdev->dev_flags)) {
+               u8 enable = 1;
+               hci_send_cmd(hdev, HCI_OP_WRITE_AUTH_ENABLE,
+                                               sizeof(enable), &enable);
+       }
+
        if (hdev->features[4] & LMP_LE)
                hci_set_le_support(hdev);
 }