From 01ec842867dd53bef90328f33b9e234da9644de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Mon, 5 Jul 2021 21:01:54 +0200 Subject: [PATCH] wifi: Fix wrong GI configuration in wifi-manager-example --- src/wifi/examples/wifi-manager-example.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wifi/examples/wifi-manager-example.cc b/src/wifi/examples/wifi-manager-example.cc index c1d46314d..2f94a9a10 100644 --- a/src/wifi/examples/wifi-manager-example.cc +++ b/src/wifi/examples/wifi-manager-example.cc @@ -129,7 +129,7 @@ struct StandardInfo }; void -ChangeSignalAndReportRate (Ptr rssModel, struct Step step, double rss, Gnuplot2dDataset& rateDataset, Gnuplot2dDataset& actualDataset) +ChangeSignalAndReportRate (Ptr rssModel, Step step, double rss, Gnuplot2dDataset& rateDataset, Gnuplot2dDataset& actualDataset) { NS_LOG_FUNCTION (rssModel << step.stepSize << step.stepTime << rss); double snr = rss - noiseDbm; @@ -437,7 +437,7 @@ int main (int argc, char *argv[]) Gnuplot2dDataset rateDataset (clientSelectedStandard.m_name + std::string ("-rate selected")); Gnuplot2dDataset actualDataset (clientSelectedStandard.m_name + std::string ("-observed")); - struct Step step; + Step step; step.stepSize = stepSize; step.stepTime = stepTime; @@ -472,7 +472,7 @@ int main (int argc, char *argv[]) || serverSelectedStandard.m_name == "802.11ax-5GHz" || serverSelectedStandard.m_name == "802.11ax-2.4GHz") { - wndServer->GetHeConfiguration ()->SetGuardInterval (NanoSeconds (clientShortGuardInterval)); + wndServer->GetHeConfiguration ()->SetGuardInterval (NanoSeconds (serverShortGuardInterval)); wndClient->GetHeConfiguration ()->SetGuardInterval (NanoSeconds (clientShortGuardInterval)); } NS_LOG_DEBUG ("Channel width " << wifiPhyPtrClient->GetChannelWidth () << " noiseDbm " << noiseDbm);