bugfix: keep per-country configuration

regression of I1d0c219 ("bugfix: reset runtime settings
only when it's valid country code")

When no per-country configuration files were provided,
uwb get disabled and report it to upper layer.

Instead of checking whether configuration files were loaded,
remember the last country code in global variable and
do per-country calibration on change.

Bug: 378132384
Test: changing country codes + check logs
Change-Id: Ibb6db6975b23025b1fe9aeb83894792c53efb9a8
Merged-In: Ibb6db6975b23025b1fe9aeb83894792c53efb9a8
3 files changed
tree: 6fedf6661bde586b6c74e457f1b3e8356b5a10f0
  1. aidl/
  2. extns/
  3. halimpl/
  4. Android.bp