]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 10:15:11 +0000 (12:15 +0200)
commit1796f7a9ae7b9be6da874771bb7a9e1cc7692b4c
treec59ff665a9b0bd3c582d3972903a1fd3bb402811
parent624c625894942738516013cdd00766fdea92ecc9
Bluetooth: qca: generalise device address check

commit dd336649ba89789c845618dcbc09867010aec673 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bluetooth/btqca.c
drivers/bluetooth/btqca.h