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

Commit 121bf923 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Log which advertising HCI interface is used am: 03ddb880 am: 39bc9ded

am: 1dc3d9a8

Change-Id: I01efb2babbd4b7bac01841b76061a2a3b07db736
parents 1a855f5b 1dc3d9a8
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();
  }
}