wifi: Use time instead of uint16_t for guard interval duration
This commit is contained in:
committed by
Sébastien Deronne
parent
9cc2cb08ee
commit
578fecdcba
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user