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

Commit 7503a2df authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Re-log bta/dm/bta_dm_act::bta_dm_acl_up am: def46793

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1458588

Change-Id: Ie846392f879fe35f9adb935fd12f55be0f8fbd2b
parents 29c8ed05 def46793
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2254,8 +2254,7 @@ static tBTA_DM_PEER_DEVICE* allocate_device_for(const RawAddress& bd_addr,
static void bta_dm_acl_up(const RawAddress& bd_addr, tBT_TRANSPORT transport) {
  auto device = allocate_device_for(bd_addr, transport);
  if (device == nullptr) {
    APPL_TRACE_ERROR("%s max active connection reached, no resources",
                     __func__);
    LOG_WARN("Unable to allocate device resources for new connection");
    return;
  }
  device->conn_state = BTA_DM_CONNECTED;
@@ -2274,6 +2273,7 @@ static void bta_dm_acl_up(const RawAddress& bd_addr, tBT_TRANSPORT transport) {
    conn.link_up.bd_addr = bd_addr;

    bta_dm_cb.p_sec_cback(BTA_DM_LINK_UP_EVT, &conn);
    LOG_DEBUG("Executed security callback for new connection available");
  }
  bta_dm_adjust_roles(true);
}