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

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

Prevent le links from setting packet types am: 8723ee4e

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

Change-Id: I3268a2e630ad49e67040dc22b1aedf4b1f4e0e8b
parents 0bd25702 8723ee4e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1526,6 +1526,14 @@ tBTM_STATUS StackAclBtmAcl::btm_set_packet_types(tACL_CONN* p,
void btm_set_packet_types_from_address(const RawAddress& bd_addr,
                                       tBT_TRANSPORT transport,
                                       uint16_t pkt_types) {
  if (transport == BT_TRANSPORT_LE) {
    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");