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

Commit b0ecaa79 authored by Chris Manton's avatar Chris Manton
Browse files

Add logging indication of legacy/gd stack

Log early in boot progress if the stack
is operating in legacy or Gd mode.

Bug: 140304485
Test: bluetooth_test_gd
Change-Id: I59457a2b2d13838f160047def6aacab704ab55cd
parent 67a4fd55
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -65,6 +65,7 @@
#include "common/address_obfuscator.h"
#include "common/metrics.h"
#include "device/include/interop.h"
#include "main/shim/shim.h"
#include "osi/include/alarm.h"
#include "osi/include/allocation_tracker.h"
#include "osi/include/log.h"
@@ -138,6 +139,12 @@ static int init(bt_callbacks_t* callbacks, bool start_restricted,
  LOG_INFO(LOG_TAG, "%s: start restricted = %d ; single user = %d", __func__,
           start_restricted, is_single_user_mode);

  if (bluetooth::shim::is_gd_shim_enabled()) {
    LOG_INFO(LOG_TAG, "%s Enable Gd bluetooth functionality", __func__);
  } else {
    LOG_INFO(LOG_TAG, "%s Preserving legacy bluetooth functionality", __func__);
  }

  if (interface_ready()) return BT_STATUS_DONE;

#ifdef BLUEDROID_DEBUG