examples: Fix conditions to check boundaries of measured throughput for wifi HT/VHT/HE/EHT networks

This commit is contained in:
Sébastien Deronne
2024-03-27 19:48:18 +01:00
committed by Sébastien Deronne
parent 8c8af78cb5
commit 1c0809c31e
5 changed files with 12 additions and 12 deletions

View File

@@ -291,7 +291,7 @@ main(int argc, char* argv[])
<< sgi << "\t\t\t" << throughput << " Mbit/s" << std::endl;
// test first element
if (mcs == 0 && channelWidth == 20 && !sgi)
if (mcs == minMcs && channelWidth == 20 && !sgi)
{
if (throughput < minExpectedThroughput)
{
@@ -299,7 +299,7 @@ main(int argc, char* argv[])
}
}
// test last element
if (mcs == 7 && channelWidth == 40 && sgi)
if (mcs == maxMcs && channelWidth == 40 && sgi)
{
if (maxExpectedThroughput > 0 && throughput > maxExpectedThroughput)
{