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

Commit 027a4b90 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "gatt: Fix direct connect" am: 24478087

parents 497d09e4 24478087
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -2801,11 +2801,13 @@ bool acl_create_le_connection_with_id(uint8_t id, const RawAddress& bd_addr,
      .bda = bd_addr,
      .type = addr_type,
  };
  if (address_with_type.type == BLE_ADDR_PUBLIC) {

  gatt_find_in_device_record(bd_addr, &address_with_type);
  }
  LOG_DEBUG("Creating le direct connection to:%s",
            ADDRESS_TO_LOGGABLE_CSTR(address_with_type));

  LOG_DEBUG("Creating le direct connection to:%s type:%s (initial type: %s)",
            ADDRESS_TO_LOGGABLE_CSTR(address_with_type),
            AddressTypeText(address_with_type.type).c_str(),
            AddressTypeText(addr_type).c_str());

  if (address_with_type.type == BLE_ADDR_ANONYMOUS) {
    LOG_WARN(