commit | e7fd1e9917a65bff45326a2592537c1b185a2a97 | [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> | Thu May 18 19:09:03 2023 +0000 |
tree | eee4765dadf7d47f5a845f5169730891f33f7f1f | |
parent | 33cd0f07cfdf69939a104218dc012f74be53438d [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);