summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-07-04 17:23:33 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2014-07-04 21:08:15 +0300
commiteb1904f49d3e11468997e0667e6ec332a66697c9 (patch)
tree15d50031dbd8245166bebb14ec73fc4b0337ba7a /net/bluetooth/hci_core.c
parent42a9bc148960b2c85f9ec5ef1abe3a87e0155c60 (diff)
downloadop-kernel-dev-eb1904f49d3e11468997e0667e6ec332a66697c9.zip
op-kernel-dev-eb1904f49d3e11468997e0667e6ec332a66697c9.tar.gz
Bluetooth: Add quirk for external configuration requirement
When a controller requires external configuration, then setting this quirk will allow indicating this. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r--net/bluetooth/hci_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index c92bee8..c007b35 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -2249,7 +2249,8 @@ static int hci_dev_do_open(struct hci_dev *hdev)
if (hdev->setup && test_bit(HCI_SETUP, &hdev->dev_flags)) {
ret = hdev->setup(hdev);
- if (test_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks))
+ if (test_bit(HCI_QUIRK_EXTERNAL_CONFIG, &hdev->quirks) ||
+ test_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks))
set_bit(HCI_UNCONFIGURED, &hdev->dev_flags);
}
OpenPOWER on IntegriCloud