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

Commit d9f10104 authored by Chris Manton's avatar Chris Manton
Browse files

Use proper acl transport check

Towards encapsulation

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I32c2f381dd49c9683217d2c40abe5146b4bd9ad8
parent 91d348bc
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");