wifi: Allow enabling UL OFDMA in wifi-he-network script

This commit is contained in:
Stefano Avallone
2022-04-25 21:49:11 +02:00
parent 14af5af4db
commit e3f51bccde

View File

@@ -74,6 +74,8 @@ int main (int argc, char *argv[])
double frequency {5}; //whether 2.4, 5 or 6 GHz
std::size_t nStations {1};
std::string dlAckSeqType {"NO-OFDMA"};
bool enableUlOfdma {false};
bool enableBsrp {false};
int mcs {-1}; // -1 indicates an unset value
uint32_t payloadSize = 700; // must fit in the max TX duration when transmitting at MCS 0 over an RU of 26 tones
std::string phyModel {"Yans"};
@@ -90,6 +92,8 @@ int main (int argc, char *argv[])
cmd.AddValue ("nStations", "Number of non-AP HE stations", nStations);
cmd.AddValue ("dlAckType", "Ack sequence type for DL OFDMA (NO-OFDMA, ACK-SU-FORMAT, MU-BAR, AGGR-MU-BAR)",
dlAckSeqType);
cmd.AddValue ("enableUlOfdma", "Enable UL OFDMA (useful if DL OFDMA is enabled and TCP is used)", enableUlOfdma);
cmd.AddValue ("enableBsrp", "Enable BSRP (useful if DL and UL OFDMA are enabled and TCP is used)", enableBsrp);
cmd.AddValue ("mcs", "if set, limit testing to a specific MCS (0-11)", mcs);
cmd.AddValue ("payloadSize", "The application payload size in bytes", payloadSize);
cmd.AddValue ("phyModel", "PHY model to use when OFDMA is disabled (Yans or Spectrum). If OFDMA is enabled then Spectrum is automatically selected", phyModel);
@@ -220,8 +224,8 @@ int main (int argc, char *argv[])
if (dlAckSeqType != "NO-OFDMA")
{
mac.SetMultiUserScheduler ("ns3::RrMultiUserScheduler",
"EnableUlOfdma", BooleanValue (false),
"EnableBsrp", BooleanValue (false));
"EnableUlOfdma", BooleanValue (enableUlOfdma),
"EnableBsrp", BooleanValue (enableBsrp));
}
mac.SetType ("ns3::ApWifiMac",
"EnableBeaconJitter", BooleanValue (false),