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

Commit 0f9eab92 authored by Archie Pusaka's avatar Archie Pusaka
Browse files

Floss: Use current random address when reconnecting to LE device

Floss doesn't support LL privacy yet, so we can't let the controller
resolve the random addresses.

Therefore, choose to connect to the latest random address instead of
the identity address on LE reconnection.

Bug: 271827442
Test: CTSV BLE Encrypted Client Test
Change-Id: I6df1fabd80e2d95b972479f01c2ff3ad26e19c60
parent 1957c7ca
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -83,6 +83,15 @@ const tBLE_BD_ADDR convert_to_address_with_type(
        .bda = bd_addr,
    };
  } else {
    // Floss doesn't support LL Privacy (yet). To expedite ARC testing, always
    // connect to the latest LE random address rather than redesign.
    // TODO(b/235218533): Remove when LL Privacy is implemented.
#if TARGET_FLOSS
    return {
        .type = BLE_ADDR_RANDOM,
        .bda = p_dev_rec->ble.cur_rand_addr.address,
    };
#endif
    return p_dev_rec->ble.identity_address_with_type;
  }
}