wifi: Use meter_u weak alias

This commit is contained in:
Sébastien Deronne
2024-06-13 20:40:24 +02:00
committed by Sébastien Deronne
parent 9ffc5f6290
commit d54e5c4e91
20 changed files with 46 additions and 46 deletions

View File

@@ -85,7 +85,7 @@ main(int argc, char* argv[])
{
uint32_t payloadSize{1472}; // bytes
Time simulationTime{"10s"};
double distance{5}; // meters
meter_u distance{5};
bool enablePcap{false};
bool verifyResults{false}; // used for regression
Time txopLimit{"4096us"};

View File

@@ -73,7 +73,7 @@ main(int argc, char* argv[])
{
uint32_t payloadSize{1472}; // bytes
Time simulationTime{"10s"};
double distance{5}; // meters
meter_u distance{5};
bool enableRts{false};
bool enablePcap{false};
bool verifyResults{false}; // used for regression

View File

@@ -144,7 +144,7 @@ main(int argc, char* argv[])
uint16_t auxPhyChWidth{20};
bool auxPhyTxCapable{true};
Time simulationTime{"10s"};
double distance{1.0}; // meters
meter_u distance{1.0};
double frequency{5}; // whether the first link operates in the 2.4, 5 or 6 GHz
double frequency2{0}; // whether the second link operates in the 2.4, 5 or 6 GHz (0 means no
// second link exists)

View File

@@ -64,8 +64,8 @@ main(int argc, char* argv[])
bool use80Plus80{false};
bool useExtendedBlockAck{false};
Time simulationTime{"10s"};
double distance{1.0}; // meters
double frequency{5}; // whether 2.4, 5 or 6 GHz
meter_u distance{1.0};
double frequency{5}; // whether 2.4, 5 or 6 GHz
std::size_t nStations{1};
std::string dlAckSeqType{"NO-OFDMA"};
bool enableUlOfdma{false};

View File

@@ -57,9 +57,9 @@ main(int argc, char* argv[])
bool udp{true};
bool useRts{false};
Time simulationTime{"10s"};
double distance{1.0}; // meters
double frequency{5}; // whether 2.4 or 5 GHz
int mcs{-1}; // -1 indicates an unset value
meter_u distance{1.0};
double frequency{5}; // whether 2.4 or 5 GHz
int mcs{-1}; // -1 indicates an unset value
double minExpectedThroughput{0.0};
double maxExpectedThroughput{0.0};

View File

@@ -38,7 +38,7 @@ main(int argc, char* argv[])
{
uint32_t nWifi{4};
Time simulationTime{"10s"};
double distance{1.0}; // meters
meter_u distance{1.0};
uint16_t mcs{7};
uint8_t channelWidth{20}; // MHz
bool useShortGuardInterval{false};

View File

@@ -393,7 +393,7 @@ main(int argc, char* argv[])
int sta1_x{5};
int sta1_y{0};
uint32_t steps{200};
uint32_t stepsSize{1};
meter_u stepsSize{1};
Time stepsTime{"1s"};
CommandLine cmd(__FILE__);

View File

@@ -139,7 +139,7 @@ int
main(int argc, char* argv[])
{
std::string phyMode{"DsssRate1Mbps"};
double distance{100}; // m
meter_u distance{100};
uint32_t packetSize{1000}; // bytes
uint32_t numPackets{1};
uint32_t numNodes{25}; // by default, 5x5

View File

@@ -161,7 +161,7 @@ main(int argc, char* argv[])
uint32_t numPackets{1};
Time interPacketInterval{"1s"};
Time startTime{"10s"};
double distanceToRx{100.0}; // meters
meter_u distanceToRx{100.0};
double offset{91}; // This is a magic number used to set the
// transmit power, based on other configuration

View File

@@ -146,9 +146,9 @@ int
main(int argc, char* argv[])
{
Time duration{"10s"};
double d1{30.0}; // meters
double d2{30.0}; // meters
double d3{150.0}; // meters
meter_u d1{30.0};
meter_u d2{30.0};
meter_u d3{150.0};
dBm_u powSta1{10.0};
dBm_u powSta2{10.0};
dBm_u powAp1{21.0};

View File

@@ -118,7 +118,7 @@ int
main(int argc, char* argv[])
{
bool udp{true};
double distance{50};
meter_u distance{50};
Time simulationTime{"10s"};
uint16_t index{256};
std::string wifiType{"ns3::SpectrumWifiPhy"};

View File

@@ -169,7 +169,7 @@ int
main(int argc, char* argv[])
{
bool udp{true};
double distance{50};
meter_u distance{50};
Time simulationTime{"10s"};
uint16_t index{256};
std::string wifiType{"ns3::SpectrumWifiPhy"};

View File

@@ -89,7 +89,7 @@ NS_LOG_COMPONENT_DEFINE("WifiSpectrumSaturationExample");
int
main(int argc, char* argv[])
{
double distance{1};
meter_u distance{1};
Time simulationTime{"10s"};
uint16_t index{256};
uint32_t channelWidth{0};

View File

@@ -100,7 +100,7 @@ main(int argc, char* argv[])
uint32_t payloadSize{1472}; // bytes
Time simulationTime{"10s"};
double txopLimit{3520}; // microseconds
double distance{5}; // meters
meter_u distance{5};
bool enableRts{false};
bool enablePcap{false};
bool verifyResults{false}; // used for regression

View File

@@ -57,8 +57,8 @@ main(int argc, char* argv[])
bool useRts{false};
bool use80Plus80{false};
Time simulationTime{"10s"};
double distance{1.0}; // meters
int mcs{-1}; // -1 indicates an unset value
meter_u distance{1.0};
int mcs{-1}; // -1 indicates an unset value
std::string phyModel{"Yans"};
double minExpectedThroughput{0.0};
double maxExpectedThroughput{0.0};

View File

@@ -81,7 +81,7 @@ main(int argc, char* argv[])
backboneDevices = csma.Install(backboneNodes);
double wifiX = 0.0;
meter_u wifiX = 0.0;
YansWifiPhyHelper wifiPhy;
wifiPhy.SetPcapDataLinkType(WifiPhyHelper::DLT_IEEE802_11_RADIO);