X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/86a1011750f50a04258aa9cf0eeb23e666cf6bf2..ea74f5d95928a521a588737e81f1de94eef25d19:/teshsuite/models/wifi_usage_decay/wifi_usage_decay.cpp?ds=sidebyside diff --git a/teshsuite/models/wifi_usage_decay/wifi_usage_decay.cpp b/teshsuite/models/wifi_usage_decay/wifi_usage_decay.cpp index 8abfa03c1a..0afa31b432 100644 --- a/teshsuite/models/wifi_usage_decay/wifi_usage_decay.cpp +++ b/teshsuite/models/wifi_usage_decay/wifi_usage_decay.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2019-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2019-2022. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -7,7 +7,7 @@ #include "xbt/config.hpp" #include "xbt/log.h" -#include "src/surf/network_wifi.hpp" +#include "src/kernel/resource/WifiLinkImpl.hpp" XBT_LOG_NEW_DEFAULT_CATEGORY(simulator, "[usage] wifi_usage "); @@ -77,7 +77,7 @@ void run_ping_test(const char* src, const char* dest, int data_size) }); simgrid::s4u::Actor::create("receiver", simgrid::s4u::Host::by_name(dest), [mailbox]() { mailbox->get(); }); - auto* l = (simgrid::kernel::resource::NetworkWifiLink*)simgrid::s4u::Link::by_name("AP1")->get_impl(); + auto* l = (simgrid::kernel::resource::WifiLinkImpl*)simgrid::s4u::Link::by_name("AP1")->get_impl(); if (not l->toggle_decay_model()) l->toggle_decay_model(); l->set_host_rate(simgrid::s4u::Host::by_name("Station 1"), 0);