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

Commit 6e9f0ff2 authored by Ying Hsu's avatar Ying Hsu Committed by Gerrit Code Review
Browse files

Merge "Floss: connect to LE identity addr if current random is unavailable"

parents 09322e4f 125e273b
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -84,13 +84,16 @@ const tBLE_BD_ADDR convert_to_address_with_type(
    };
  } else {
    // Floss doesn't support LL Privacy (yet). To expedite ARC testing, always
    // connect to the latest LE random address rather than redesign.
    // connect to the latest LE random address (if available) rather than
    // redesign.
    // TODO(b/235218533): Remove when LL Privacy is implemented.
#if TARGET_FLOSS
    if (!p_dev_rec->ble.cur_rand_addr.IsEmpty()) {
      return {
          .type = BLE_ADDR_RANDOM,
        .bda = p_dev_rec->ble.cur_rand_addr.address,
          .bda = p_dev_rec->ble.cur_rand_addr,
      };
    }
#endif
    return p_dev_rec->ble.identity_address_with_type;
  }