Bluetooth: Don't disable LPM at power off
am: 3b2a29676b
Change-Id: I6e933061680088a4f675ed9b1557877393f3e65f
This commit is contained in:
commit
2fe40fdd3c
1 changed files with 0 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue