Loading system/vendor_libs/linux/interface/bluetooth_hci.cc +1 −2 Original line number Diff line number Diff line Loading @@ -39,7 +39,6 @@ #define MGMT_EV_INDEX_ADDED 0x0004 #define MGMT_EV_COMMAND_COMP 0x0001 #define MGMT_EV_SIZE_MAX 1024 #define MGMT_EV_POLL_TIMEOUT 3000 /* 3000ms */ #define WRITE_NO_INTR(fn) \ do { \ } while ((fn) == -1 && errno == EINTR) Loading Loading @@ -154,7 +153,7 @@ int BluetoothHci::waitHciDev(int hci_interface) { /* validate mentioned hci interface is present and registered with sock system */ while (1) { int n; WRITE_NO_INTR(n = poll(fds, 1, MGMT_EV_POLL_TIMEOUT)); WRITE_NO_INTR(n = poll(fds, 1, -1)); if (n == -1) { ALOGE( "Poll error: %s", strerror(errno)); ret = -1; Loading Loading
system/vendor_libs/linux/interface/bluetooth_hci.cc +1 −2 Original line number Diff line number Diff line Loading @@ -39,7 +39,6 @@ #define MGMT_EV_INDEX_ADDED 0x0004 #define MGMT_EV_COMMAND_COMP 0x0001 #define MGMT_EV_SIZE_MAX 1024 #define MGMT_EV_POLL_TIMEOUT 3000 /* 3000ms */ #define WRITE_NO_INTR(fn) \ do { \ } while ((fn) == -1 && errno == EINTR) Loading Loading @@ -154,7 +153,7 @@ int BluetoothHci::waitHciDev(int hci_interface) { /* validate mentioned hci interface is present and registered with sock system */ while (1) { int n; WRITE_NO_INTR(n = poll(fds, 1, MGMT_EV_POLL_TIMEOUT)); WRITE_NO_INTR(n = poll(fds, 1, -1)); if (n == -1) { ALOGE( "Poll error: %s", strerror(errno)); ret = -1; Loading