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

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

Merge "gatt_api: Do not attempt to connect to an empty address." into main am:...

Merge "gatt_api: Do not attempt to connect to an empty address." into main am: 147ddaf0 am: 52961267

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/3254901



Change-Id: I45ffe4d756615fe30b928742d4afe4f9d4f998a5
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 65bac401 52961267
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1468,6 +1468,11 @@ bool GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, tBLE_ADDR_TYPE ad
    return false;
  }

  if (bd_addr == RawAddress::kEmpty) {
    log::error("Unsupported empty address, gatt_if={}", gatt_if);
    return false;
  }

  if (opportunistic) {
    log::info("Registered for opportunistic connection gatt_if={}", gatt_if);
    return true;