Loading system/gd/hal/hci_hal_host.cc +3 −0 Original line number Diff line number Diff line Loading @@ -145,6 +145,9 @@ int waitHciDev(int hci_interface) { if (n < 0) { bluetooth::log::error("Error reading control channel: {}", strerror(errno)); break; } else if (n == 0) { // unlikely to happen, just a safeguard. bluetooth::log::error("Error reading control channel: EOF"); break; } if (ev.opcode == MGMT_EV_COMMAND_COMP) { Loading system/gd/hal/mgmt.cc +4 −0 Original line number Diff line number Diff line Loading @@ -141,6 +141,10 @@ uint16_t Mgmt::get_vs_opcode(uint16_t vendor_specification) { log::error("Failed to read mgmt socket: {}", -errno); close(fd); return ret_opcode; } else if (ret == 0) { // unlikely to happen, just a safeguard. log::error("Failed to read mgmt socket: EOF"); close(fd); return ret_opcode; } if (cc_ev.opcode == MGMT_EV_COMMAND_COMPLETE) { Loading system/stack/btm/btm_sco_hfp_hal_linux.cc +3 −0 Original line number Diff line number Diff line Loading @@ -200,6 +200,9 @@ int mgmt_get_codec_capabilities(int fd, uint16_t hci) { if (ret < 0) { log::debug("Failed to read mgmt socket: {}", -errno); return -errno; } else if (ret == 0) { // unlikely to happen, just a safeguard. log::debug("Failed to read mgmt socket: EOF"); return -1; } if (ev.opcode == MGMT_EV_COMMAND_COMPLETE) { Loading Loading
system/gd/hal/hci_hal_host.cc +3 −0 Original line number Diff line number Diff line Loading @@ -145,6 +145,9 @@ int waitHciDev(int hci_interface) { if (n < 0) { bluetooth::log::error("Error reading control channel: {}", strerror(errno)); break; } else if (n == 0) { // unlikely to happen, just a safeguard. bluetooth::log::error("Error reading control channel: EOF"); break; } if (ev.opcode == MGMT_EV_COMMAND_COMP) { Loading
system/gd/hal/mgmt.cc +4 −0 Original line number Diff line number Diff line Loading @@ -141,6 +141,10 @@ uint16_t Mgmt::get_vs_opcode(uint16_t vendor_specification) { log::error("Failed to read mgmt socket: {}", -errno); close(fd); return ret_opcode; } else if (ret == 0) { // unlikely to happen, just a safeguard. log::error("Failed to read mgmt socket: EOF"); close(fd); return ret_opcode; } if (cc_ev.opcode == MGMT_EV_COMMAND_COMPLETE) { Loading
system/stack/btm/btm_sco_hfp_hal_linux.cc +3 −0 Original line number Diff line number Diff line Loading @@ -200,6 +200,9 @@ int mgmt_get_codec_capabilities(int fd, uint16_t hci) { if (ret < 0) { log::debug("Failed to read mgmt socket: {}", -errno); return -errno; } else if (ret == 0) { // unlikely to happen, just a safeguard. log::debug("Failed to read mgmt socket: EOF"); return -1; } if (ev.opcode == MGMT_EV_COMMAND_COMPLETE) { Loading