mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Bluetooth AIDL: SetTerminalRaw on fd" am: 4de72a2297 am: bb8c28de90
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2556557 Change-Id: I1b56c525f280d174567dc0ff82f2a7c5dbcda8bf Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -117,11 +117,9 @@ int BluetoothHci::getFdFromDevPath() {
|
||||
strerror(errno));
|
||||
return fd;
|
||||
}
|
||||
if (int ret = SetTerminalRaw(mFd) < 0) {
|
||||
ALOGE("Could not make %s a raw terminal %d(%s)", mDevPath.c_str(), ret,
|
||||
if (int ret = SetTerminalRaw(fd) < 0) {
|
||||
ALOGI("Could not make %s a raw terminal %d(%s)", mDevPath.c_str(), ret,
|
||||
strerror(errno));
|
||||
::close(fd);
|
||||
return -1;
|
||||
}
|
||||
return fd;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user