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

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

Merge "Ignore empty pseudo address" into main am: cad799bd

parents 8df06037 cad799bd
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -571,6 +571,10 @@ void bta_dm_remove_device(const RawAddress& target) {
  RawAddress identity_addr = target;
  bool le_connected = get_btm_client_interface().peer.BTM_ReadConnectedTransportAddress(
          &pseudo_addr, BT_TRANSPORT_LE);
  if (pseudo_addr.IsEmpty()) {
    pseudo_addr = target;
  }

  bool bredr_connected = get_btm_client_interface().peer.BTM_ReadConnectedTransportAddress(
          &identity_addr, BT_TRANSPORT_BR_EDR);
  /* If connection not found with identity address, check with pseudo address if different */
@@ -579,9 +583,6 @@ void bta_dm_remove_device(const RawAddress& target) {
    bredr_connected = get_btm_client_interface().peer.BTM_ReadConnectedTransportAddress(
            &identity_addr, BT_TRANSPORT_BR_EDR);
  }
  if (pseudo_addr.IsEmpty()) {
    pseudo_addr = target;
  }
  if (identity_addr.IsEmpty()) {
    identity_addr = target;
  }