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

Commit 3b252dc6 authored by Roman Stratiienko's avatar Roman Stratiienko Committed by Automerger Merge Worker
Browse files

HCI: Fix improper rfkill handling am: 2e3a1ad6 am: e63b0342

parents ce8a46fa e63b0342
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -259,8 +259,8 @@ int NetBluetoothMgmt::rfkill(int block) {
int NetBluetoothMgmt::openHci(int hci_interface) {
  ALOGI("opening hci interface %d", hci_interface);

  // Block Bluetooth.
  rfkill(1);
  // Unblock Bluetooth.
  rfkill(0);

  // Wait for the HCI interface to complete initialization or to come online.
  int hci = waitHciDev(hci_interface);
@@ -300,8 +300,8 @@ void NetBluetoothMgmt::closeHci() {
    bt_fd_ = -1;
  }

  // Unblock Bluetooth.
  rfkill(0);
  // Block Bluetooth.
  rfkill(1);
}

}  // namespace aidl::android::hardware::bluetooth::impl