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

Commit 03ddb880 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Log which advertising HCI interface is used

This is useful for debugging advertising issues.

Test: manual
Change-Id: Ia51eccb1ff7922a5864572a89e77404299965862
parent db132e65
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();
  }
}