commit | 10f3b5681d0386a755c1c3b724d5bf138fc59bec | [log] [tgz] |
---|---|---|
author | Henri Chataing <henrichataing@google.com> | Wed Apr 26 18:42:46 2023 +0000 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Fri Apr 28 23:35:28 2023 +0000 |
tree | eee4765dadf7d47f5a845f5169730891f33f7f1f | |
parent | 021e69e40c2abee6f8e61d7da4cc159583139806 [diff] |
RootCanal: Pass the configuration by value to HciDevice The controller properties are loaded from file each time a connection is created at the moment, this change makes sure that the properties are read only once at boot time. Test: m netsimd Bug: 253525123 (cherry picked from https://android-review.googlesource.com/q/commit:a09425ce64a15bea51e1b684a99fa920d9f063be) Merged-In: Id79447531004291f69ab3ddd4438a7ecf0b1da5a Change-Id: Id79447531004291f69ab3ddd4438a7ecf0b1da5a
diff --git a/src/hci/bluetooth_facade.cc b/src/hci/bluetooth_facade.cc index a823b32..c691d03 100644 --- a/src/hci/bluetooth_facade.cc +++ b/src/hci/bluetooth_facade.cc
@@ -89,10 +89,8 @@ bool mStarted = false; std::shared_ptr<rootcanal::AsyncManager> mAsyncManager; - std::unique_ptr<SimTestModel> gTestModel; - -std::string controller_properties_ = ""; +rootcanal::ControllerProperties controller_properties_; bool ChangedState(model::State a, model::State b) { return (b != model::State::UNKNOWN && a != b);