X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2ba7f668dc4e201a327ec99cd07ecef4370f6407..f225e52fef082a934584fce772560fc730bfca48:/src/surf/network_wifi.hpp diff --git a/src/surf/network_wifi.hpp b/src/surf/network_wifi.hpp index c84527bfc3..a7887c1dd6 100644 --- a/src/surf/network_wifi.hpp +++ b/src/surf/network_wifi.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2019-2020. 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. */ @@ -30,9 +30,9 @@ public: NetworkWifiLink(NetworkCm02Model* model, const std::string& name, std::vector bandwidths, lmm::System* system); - void set_host_rate(s4u::Host* host, int rate_level); + void set_host_rate(const s4u::Host* host, int rate_level); /** @brief Get the AP rate associated to the host (or -1 if not associated to the AP) */ - double get_host_rate(s4u::Host* host); + double get_host_rate(const s4u::Host* host); s4u::Link::SharingPolicy get_sharing_policy() override; void apply_event(kernel::profile::Event*, double) override { THROW_UNIMPLEMENTED; }