diff options
author | Andre Heider <a.heider@gmail.com> | 2019-11-22 13:31:42 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2019-11-22 13:35:20 +0100 |
commit | a4f95f31a9f38d9bb1fd313fcc2d0c0d48116ee3 (patch) | |
tree | 6b1336f3aadb61a335c0cfac4ae7115483f44aef /drivers/bluetooth/btbcm.c | |
parent | Bluetooth: Fix memory leak in hci_connect_le_scan (diff) | |
download | linux-a4f95f31a9f38d9bb1fd313fcc2d0c0d48116ee3.tar.xz linux-a4f95f31a9f38d9bb1fd313fcc2d0c0d48116ee3.zip |
Bluetooth: btbcm: Use the BDADDR_PROPERTY quirk
Some devices ship with the controller default address, like the
Orange Pi 3 (BCM4345C5).
Allow the bootloader to set a valid address through the device tree.
Signed-off-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btbcm.c')
-rw-r--r-- | drivers/bluetooth/btbcm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c index 689c7f36fea2..8e05706fe5d9 100644 --- a/drivers/bluetooth/btbcm.c +++ b/drivers/bluetooth/btbcm.c @@ -444,6 +444,12 @@ int btbcm_finalize(struct hci_dev *hdev) set_bit(HCI_QUIRK_STRICT_DUPLICATE_FILTER, &hdev->quirks); + /* Some devices ship with the controller default address. + * Allow the bootloader to set a valid address through the + * device tree. + */ + set_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hdev->quirks); + return 0; } EXPORT_SYMBOL_GPL(btbcm_finalize); |