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

Commit 535f43a3 authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

Bluetooth: Don't disable LPM at power off am: 3b2a2967

am: 2fe40fdd

Change-Id: I41dd5394f1951770f8d6b2dc624a704ce8a6d893
parents 5f8eac9d 2fe40fdd
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -266,13 +266,6 @@ bool VendorInterface::Open(InitializeCompleteCallback initialize_complete_cb,
}

void VendorInterface::Close() {
  // These callbacks may send HCI events (vendor-dependent), so make sure to
  // StopWatching the file descriptor after this.
  if (lib_interface_ != nullptr) {
    bt_vendor_lpm_mode_t mode = BT_VND_LPM_DISABLE;
    lib_interface_->op(BT_VND_OP_LPM_SET_MODE, &mode);
  }

  fd_watcher_.StopWatchingFileDescriptors();

  if (hci_ != nullptr) {