wifi: Add missing use of weak types
This commit is contained in:
@@ -527,8 +527,12 @@ main(int argc, char* argv[])
|
||||
clientNodes.Add(downlink ? wifiApNode.Get(0) : wifiStaNodes.Get(i));
|
||||
}
|
||||
|
||||
const auto maxLoad =
|
||||
nLinks * EhtPhy::GetDataRate(mcs, width, NanoSeconds(gi), 1) / nStations;
|
||||
const auto maxLoad = nLinks *
|
||||
EhtPhy::GetDataRate(mcs,
|
||||
MHz_u{static_cast<double>(width)},
|
||||
NanoSeconds(gi),
|
||||
1) /
|
||||
nStations;
|
||||
if (udp)
|
||||
{
|
||||
// UDP flow
|
||||
|
||||
@@ -398,7 +398,9 @@ main(int argc, char* argv[])
|
||||
clientNodes.Add(downlink ? wifiApNode.Get(0) : wifiStaNodes.Get(i));
|
||||
}
|
||||
|
||||
const auto maxLoad = HePhy::GetDataRate(mcs, width, NanoSeconds(gi), 1) / nStations;
|
||||
const auto maxLoad =
|
||||
HePhy::GetDataRate(mcs, MHz_u{static_cast<double>(width)}, NanoSeconds(gi), 1) /
|
||||
nStations;
|
||||
if (udp)
|
||||
{
|
||||
// UDP flow
|
||||
|
||||
@@ -267,8 +267,10 @@ main(int argc, char* argv[])
|
||||
apNodeInterface = address.Assign(apDevice);
|
||||
|
||||
/* Setting applications */
|
||||
const auto maxLoad =
|
||||
HtPhy::GetDataRate(mcs, width, NanoSeconds(sgi ? 400 : 800), 1);
|
||||
const auto maxLoad = HtPhy::GetDataRate(mcs,
|
||||
MHz_u{static_cast<double>(width)},
|
||||
NanoSeconds(sgi ? 400 : 800),
|
||||
1);
|
||||
ApplicationContainer serverApp;
|
||||
if (udp)
|
||||
{
|
||||
|
||||
@@ -281,7 +281,7 @@ NodeStatistics::PhyCallback(std::string path, Ptr<const Packet> packet, double p
|
||||
void
|
||||
NodeStatistics::PowerCallback(std::string path, double oldPower, double newPower, Mac48Address dest)
|
||||
{
|
||||
m_currentPower[dest] = newPower;
|
||||
m_currentPower[dest] = dBm_u{newPower};
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -302,7 +302,7 @@ NodeStatistics::PhyCallback(std::string path, Ptr<const Packet> packet, double p
|
||||
void
|
||||
NodeStatistics::PowerCallback(std::string path, double oldPower, double newPower, Mac48Address dest)
|
||||
{
|
||||
m_currentPower[dest] = newPower;
|
||||
m_currentPower[dest] = dBm_u{newPower};
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -300,8 +300,10 @@ main(int argc, char* argv[])
|
||||
apNodeInterface = address.Assign(apDevice);
|
||||
|
||||
/* Setting applications */
|
||||
const auto maxLoad =
|
||||
VhtPhy::GetDataRate(mcs, width, NanoSeconds(sgi ? 400 : 800), 1);
|
||||
const auto maxLoad = VhtPhy::GetDataRate(mcs,
|
||||
MHz_u{static_cast<double>(width)},
|
||||
NanoSeconds(sgi ? 400 : 800),
|
||||
1);
|
||||
ApplicationContainer serverApp;
|
||||
if (udp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user