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

Commit cad799bd authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Ignore empty pseudo address" into main

parents 9bea7d83 ef59af72
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;
  }