Bluetooth: hci_sync: Add fallback-bd-address prop
authorPhil Elwell <phil@raspberrypi.com>
Tue, 25 Apr 2023 10:49:41 +0000 (11:49 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:31 +0000 (11:33 +0000)
commit56e985aad984665306ff4ad7ef30347526a8d11a
tree95d1a00c3c254a428e50b95070378840f0431d84
parent69a944d0a799acea8dc55bd2d2a2907b7bcbc2a9
Bluetooth: hci_sync: Add fallback-bd-address prop

The kernel Bluetooth framework understands that devices may not
be programmed with valid Bluetooth addresses. It also has the ability
to override a Bluetooth address with the value of the local-bd-address
DT property, but it ignores the validity of the existing address when
doing so.

Add a new boolean property, fallback-bd-address, which indicates that
the given local-bd-address property should only be used if the device
does not already have a valid BDADDR.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
net/bluetooth/hci_sync.c