summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorMatthias Kaehlcke2019-02-19 21:05:57 +0100
committerMarcel Holtmann2019-02-26 10:08:26 +0100
commit7a0e5b15ca458dd47e4c60b7fa9f22b84c7068c7 (patch)
treeb53af310c8a2731da2566228974da53446ca8b9b /include/net/bluetooth
parentBluetooth: hci_ldisc: Postpone HCI_UART_PROTO_READY bit set in hci_uart_set_p... (diff)
downloadkernel-qcow2-linux-7a0e5b15ca458dd47e4c60b7fa9f22b84c7068c7.tar.gz
kernel-qcow2-linux-7a0e5b15ca458dd47e4c60b7fa9f22b84c7068c7.tar.xz
kernel-qcow2-linux-7a0e5b15ca458dd47e4c60b7fa9f22b84c7068c7.zip
Bluetooth: Add quirk for reading BD_ADDR from fwnode property
Add HCI_QUIRK_USE_BDADDR_PROPERTY to allow controllers to retrieve the public Bluetooth address from the firmware node property 'local-bd-address'. If quirk is set and the property does not exist or is invalid the controller is marked as unconfigured. Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Reviewed-by: Balakrishna Godavarthi <bgodavar@codeaurora.org> Tested-by: Balakrishna Godavarthi <bgodavar@codeaurora.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/hci.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index c36dc1e20556..fbba43e9bef5 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -158,6 +158,18 @@ enum {
*/
HCI_QUIRK_INVALID_BDADDR,
+ /* When this quirk is set, the public Bluetooth address
+ * initially reported by HCI Read BD Address command
+ * is considered invalid. The public BD Address can be
+ * specified in the fwnode property 'local-bd-address'.
+ * If this property does not exist or is invalid controller
+ * configuration is required before this device can be used.
+ *
+ * This quirk can be set before hci_register_dev is called or
+ * during the hdev->setup vendor callback.
+ */
+ HCI_QUIRK_USE_BDADDR_PROPERTY,
+
/* When this quirk is set, the duplicate filtering during
* scanning is based on Bluetooth devices addresses. To allow
* RSSI based updates, restart scanning if needed.