]> git.dujemihanovic.xyz Git - linux.git/commit
Bluetooth: qca: generalise device address check
authorJohan Hovold <johan+linaro@kernel.org>
Tue, 30 Apr 2024 17:07:41 +0000 (19:07 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 3 May 2024 17:05:31 +0000 (13:05 -0400)
commitdd336649ba89789c845618dcbc09867010aec673
treee7ef76ed85ff719f8a04eea320151f7bcac6ba70
parenta112d3c72a227f2edbb6d8094472cc6e503e52af
Bluetooth: qca: generalise device address check

The default device address apparently comes from the NVM configuration
file and can differ quite a bit between controllers.

Store the default address when parsing the configuration file and use it
to determine whether the controller has been provisioned with an
address.

This makes sure that devices without a unique address start as
unconfigured unless a valid address has been provided in the devicetree.

Fixes: 32868e126c78 ("Bluetooth: qca: fix invalid device address check")
Cc: stable@vger.kernel.org # 6.5
Cc: Doug Anderson <dianders@chromium.org>
Cc: Janaki Ramaiah Thota <quic_janathot@quicinc.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btqca.c
drivers/bluetooth/btqca.h