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

Commit 75d21709 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Use proper acl transport check am: d9f10104

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I94a5ed8773018cbbd85e53827fdeee44ac33ae0a
parents 7be2d05e d9f10104
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1516,15 +1516,15 @@ void btm_set_packet_types_from_address(const RawAddress& bd_addr,
    LOG_WARN("Unable to set packet types on le transport");
    return;
  }
  if (btm_pm_is_le_link(bd_addr)) {
    LOG_DEBUG("Unable to set packet types on provided le acl");
    return;
  }
  tACL_CONN* p_acl_cb = internal_.btm_bda_to_acl(bd_addr, transport);
  if (p_acl_cb == nullptr) {
    LOG_WARN("Unable to find active acl");
    return;
  }
  if (p_acl_cb->is_transport_ble()) {
    LOG_DEBUG("Unable to set packet types on provided le acl");
    return;
  }
  tBTM_STATUS status = internal_.btm_set_packet_types(p_acl_cb, pkt_types);
  if (status != BTM_CMD_STARTED) {
    LOG_ERROR("Unable to set packet types from address");