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

Commit c3aa1ff8 authored by Chienyuan Huang's avatar Chienyuan Huang Committed by Gerrit Code Review
Browse files

Merge "api: GetConnectionState OR state of resolved address" into main

parents 7704d54d 0a9bc290
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -957,11 +957,12 @@ uint16_t btif_dm_get_connection_state_sync(const RawAddress& bd_addr) {
             base::BindOnce(
                 [](const RawAddress bd_addr, std::promise<uint16_t> promise) {
                   // Experiment to try with maybe resolved address
                   btif_dm_get_resolved_connection_state({
                   uint16_t state = btif_dm_get_resolved_connection_state({
                       .type = BLE_ADDR_RANDOM,
                       .bda = bd_addr,
                   });
                   promise.set_value(btif_dm_get_connection_state(bd_addr));
                   state |= btif_dm_get_connection_state(bd_addr);
                   promise.set_value(state);
                 },
                 bd_addr, std::move(promise))));
  return future.get();