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

Commit 8f84dde9 authored by Arman Uguray's avatar Arman Uguray
Browse files

service: Return SUCCESS from Acquire|ReleaseWakeLock

Added code back to lie and return BT_STATUS_SUCCESS from the
AcquireWakeLock and ReleaseWakeLock OS callouts, since without these
the adapter cannot be properly disabled.

Bug: 23390297
Change-Id: I9801ccc7f72d83d132363fc888319bfb9b2eff29
parent 1473259a
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -100,14 +100,18 @@ int AcquireWakeLockCallout(const char* /* lock_name */) {
  // TODO(armansito): According to sharvil@, this interface doesn't even need to
  // exist and can be done entirely from within osi by interfacing directly with
  // the kernel. Remove these stubs once that's fixed. (See http://b/23390297)
  return BT_STATUS_UNSUPPORTED;
  // Lie here and return success so that enabling and disabling the controller
  // works before this is properly implemented.
  return BT_STATUS_SUCCESS;
}

int ReleaseWakeLockCallout(const char* /* lock_name */) {
  // TODO(armansito): According to sharvil@, this interface doesn't even need to
  // exist and can be done entirely from within osi by interfacing directly with
  // the kernel. Remove these stubs once that's fixed. (See http://b/23390297)
  return BT_STATUS_UNSUPPORTED;
  // Lie here and return success so that enabling and disabling the controller
  // works before this is properly implemented.
  return BT_STATUS_SUCCESS;
}

// The HAL Bluetooth DM callbacks.