Bluetooth: hci_qca: Set BDA quirk bit if fwnode exists in DT
authorJanaki Ramaiah Thota <quic_janathot@quicinc.com>
Wed, 24 Jan 2024 14:30:42 +0000 (20:00 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 28 Feb 2024 14:50:51 +0000 (09:50 -0500)
commit7dcd3e014aa7faeeaf4047190b22d8a19a0db696
tree29522aa9dc602928114dfa72e07d43baaab8b5eb
parentc0dbc56077ae759f2dd602c7561480bc2b1b712c
Bluetooth: hci_qca: Set BDA quirk bit if fwnode exists in DT

BT adapter going into UNCONFIGURED state during BT turn ON when
devicetree has no local-bd-address node.

Bluetooth will not work out of the box on such devices, to avoid this
problem, added check to set HCI_QUIRK_USE_BDADDR_PROPERTY based on
local-bd-address node entry.

When this quirk is not set, the public Bluetooth address read by host
from controller though HCI Read BD Address command is
considered as valid.

Fixes: e668eb1e1578 ("Bluetooth: hci_core: Don't stop BT if the BD address missing in dts")
Signed-off-by: Janaki Ramaiah Thota <quic_janathot@quicinc.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/hci_qca.c