wifi: Use time instead of uint16_t for guard interval duration

This commit is contained in:
Sébastien Deronne
2024-05-19 14:48:44 +02:00
committed by Sébastien Deronne
parent 9cc2cb08ee
commit 578fecdcba
66 changed files with 1127 additions and 877 deletions

View File

@@ -216,7 +216,7 @@ main(int argc, char* argv[])
/* Setting applications */
const auto maxLoad = HtPhy::GetDataRate(i,
channelBonding ? 40 : 20,
shortGuardInterval ? 400 : 800,
NanoSeconds(shortGuardInterval ? 400 : 800),
nStreams);
ApplicationContainer serverApp;
if (udp)

View File

@@ -498,7 +498,7 @@ main(int argc, char* argv[])
}
const auto maxLoad =
nLinks * EhtPhy::GetDataRate(mcs, channelWidth, gi, 1) / nStations;
nLinks * EhtPhy::GetDataRate(mcs, channelWidth, NanoSeconds(gi), 1) / nStations;
if (udp)
{
// UDP flow

View File

@@ -367,7 +367,8 @@ main(int argc, char* argv[])
clientNodes.Add(downlink ? wifiApNode.Get(0) : wifiStaNodes.Get(i));
}
const auto maxLoad = HePhy::GetDataRate(mcs, channelWidth, gi, 1) / nStations;
const auto maxLoad =
HePhy::GetDataRate(mcs, channelWidth, NanoSeconds(gi), 1) / nStations;
if (udp)
{
// UDP flow

View File

@@ -232,7 +232,8 @@ main(int argc, char* argv[])
apNodeInterface = address.Assign(apDevice);
/* Setting applications */
const auto maxLoad = HtPhy::GetDataRate(mcs, channelWidth, sgi ? 400 : 800, 1);
const auto maxLoad =
HtPhy::GetDataRate(mcs, channelWidth, NanoSeconds(sgi ? 400 : 800), 1);
ApplicationContainer serverApp;
if (udp)
{

View File

@@ -265,7 +265,8 @@ main(int argc, char* argv[])
apNodeInterface = address.Assign(apDevice);
/* Setting applications */
const auto maxLoad = VhtPhy::GetDataRate(mcs, channelWidth, sgi ? 400 : 800, 1);
const auto maxLoad =
VhtPhy::GetDataRate(mcs, channelWidth, NanoSeconds(sgi ? 400 : 800), 1);
ApplicationContainer serverApp;
if (udp)
{