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

Commit 39bc9ded authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Log which advertising HCI interface is used

am: 03ddb880

Change-Id: I25376b92d1d4b51c5c99823a62660b181a34d2a1
parents 672546da 03ddb880
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -545,12 +545,15 @@ void BleAdvertiserHciInterface::Initialize() {
  LOG_ASSERT(instance == nullptr) << "Was already initialized.";

  if (controller_get_interface()->supports_ble_extended_advertising()) {
    LOG(INFO) << "Extended advertising will be in use";
    instance = new BleAdvertiserHciExtendedImpl();
  } else if (BTM_BleMaxMultiAdvInstanceCount()) {
    LOG(INFO) << "VSC advertising will be in use";
    instance = new BleAdvertiserVscHciInterfaceImpl();
    BTM_RegisterForVSEvents(
        BleAdvertiserVscHciInterfaceImpl::VendorSpecificEventCback, true);
  } else {
    LOG(INFO) << "Legacy advertising will be in use";
    instance = new BleAdvertiserLegacyHciInterfaceImpl();
  }
}