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

Commit e2c09f6e authored by Chris Manton's avatar Chris Manton Committed by Gerrit Code Review
Browse files

Merge "btif::gatt::client Use lambda to log read rssi failure" into main

parents 6486d350 7f541b9c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -569,7 +569,13 @@ static bt_status_t btif_gattc_read_remote_rssi(int client_if, const RawAddress&
  CHECK_BTGATT_INIT();
  rssi_request_client_if = client_if;

  return do_in_jni_thread(Bind(base::IgnoreResult(&BTM_ReadRSSI), bd_addr, btm_read_rssi_cb));
  return do_in_jni_thread(base::Bind(
          [](int client_if, const RawAddress& bd_addr) {
            if (BTM_ReadRSSI(bd_addr, btm_read_rssi_cb) != BTM_SUCCESS) {
              log::warn("Unable to read RSSI peer:{} client_if:{}", bd_addr, client_if);
            }
          },
          client_if, bd_addr));
}

static bt_status_t btif_gattc_configure_mtu(int conn_id, int mtu) {