summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btmrvl_sdio.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2023-03-31 23:11:21 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-04-23 22:00:18 -0700
commit0d218c3642b9ccf71f44987cd03c19320f3bd918 (patch)
tree54fc4a48a829e9d016a9556f8585ada9c8720718 /drivers/bluetooth/btmrvl_sdio.h
parent3c0d41f141c97e516d986f0571b0d7a745a4e2a8 (diff)
downloadlinux-0d218c3642b9ccf71f44987cd03c19320f3bd918.tar.gz
linux-0d218c3642b9ccf71f44987cd03c19320f3bd918.tar.bz2
linux-0d218c3642b9ccf71f44987cd03c19320f3bd918.zip
Bluetooth: hci_bcm: Fall back to getting bdaddr from EFI if not set
On some devices the BCM Bluetooth adapter does not have a valid bdaddr set. btbcm.c currently sets HCI_QUIRK_INVALID_BDADDR to indicate when this is the case. But this requires users to manual setup a btaddr, by doing e.g.: btmgmt -i hci0 public-addr 'B0:F1:EC:82:1D:B3' Which means that Bluetooth will not work out of the box on such devices. To avoid this (where possible) hci_bcm sets: HCI_QUIRK_USE_BDADDR_PROPERTY which tries to get the bdaddr from devicetree. But this only works on devicetree platforms. On UEFI based platforms there is a special Broadcom UEFI variable which when present contains the devices bdaddr, just like how there is another UEFI variable which contains wifi nvram contents including the wifi MAC address. Add support for getting the bdaddr from this Broadcom UEFI variable, so that Bluetooth will work OOTB for users on devices where this UEFI variable is present. This fixes Bluetooth not working on for example Asus T100HA 2-in-1s. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers/bluetooth/btmrvl_sdio.h')
0 files changed, 0 insertions, 0 deletions