Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64f07c39 authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

Merge "Rootcanal: Get a MAC from a property" am: ebc05490 am: cf24aba7

am: fb0465f3

Change-Id: I61b7d227c700145d229280d11a2b03eff3218a22
parents d444ad40 fb0465f3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -104,7 +104,9 @@ Return<void> BluetoothHci::initialize_impl(

  controller_ = std::make_shared<DualModeController>();

  controller_->Initialize({"dmc", "3C:5A:B4:01:02:03"});
  char mac_property[PROPERTY_VALUE_MAX] = "";
  property_get("bt.rootcanal_mac_address", mac_property, "3C:5A:B4:01:02:03");
  controller_->Initialize({"dmc", std::string(mac_property)});

  controller_->RegisterEventChannel(
      [this, cb](std::shared_ptr<std::vector<uint8_t>> packet) {