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

Commit 78f850b4 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8529137 from 88f036d2 to tm-qpr1-release

Change-Id: Ia64bdec664b764852638676c4c2efeb8f35c9d3b
parents 18d4da93 88f036d2
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -498,6 +498,8 @@ bool PORT_IsOpening(RawAddress* bd_addr) {
    if ((multiplexer_cb.state > RFC_MX_STATE_IDLE) &&
        (multiplexer_cb.state < RFC_MX_STATE_CONNECTED)) {
      *bd_addr = multiplexer_cb.bd_addr;
      LOG_DEBUG(
          "Found a rfc_mcb in the middle of opening a port, returning true");
      return true;
    }

@@ -513,15 +515,20 @@ bool PORT_IsOpening(RawAddress* bd_addr) {
        }
      }

      LOG_DEBUG("RFC_MX_STATE_CONNECTED, found_port=%d, tRFC_PORT_STATE=%d",
                found_port, p_port->rfc.state);
      if ((!found_port) ||
          (found_port && (p_port->rfc.state < RFC_STATE_OPENED))) {
        /* Port is not established yet. */
        *bd_addr = multiplexer_cb.bd_addr;
        LOG_DEBUG(
            "In RFC_MX_STATE_CONNECTED but port is not established yet, "
            "returning true");
        return true;
      }
    }
  }

  LOG_DEBUG("false");
  return false;
}