From f65cef747941eca985dbfd50af669f84493711a7 Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Sat, 7 Oct 2023 10:23:39 +0200 Subject: [PATCH] examples: Add more EMLSR options to wifi-eht-network --- examples/wireless/wifi-eht-network.cc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/examples/wireless/wifi-eht-network.cc b/examples/wireless/wifi-eht-network.cc index 2bc4859c0..1db4cc557 100644 --- a/examples/wireless/wifi-eht-network.cc +++ b/examples/wireless/wifi-eht-network.cc @@ -151,6 +151,8 @@ main(int argc, char* argv[]) uint16_t transitionDelayUsec{128}; uint16_t channelSwitchDelayUsec{100}; bool switchAuxPhy{true}; + uint16_t auxPhyChWidth{20}; + bool auxPhyTxCapable{true}; double simulationTime{10}; // seconds double distance{1.0}; // meters double frequency{5}; // whether the first link operates in the 2.4, 5 or 6 GHz @@ -198,6 +200,12 @@ main(int argc, char* argv[]) "Whether Aux PHY should switch channel to operate on the link on which " "the Main PHY was operating before moving to the link of the Aux PHY. ", switchAuxPhy); + cmd.AddValue("emlsrAuxChWidth", + "The maximum channel width (MHz) supported by Aux PHYs.", + auxPhyChWidth); + cmd.AddValue("emlsrAuxTxCapable", + "Whether Aux PHYs are capable of transmitting.", + auxPhyTxCapable); cmd.AddValue("channelSwitchDelay", "The PHY channel switch delay in microseconds", channelSwitchDelayUsec); @@ -400,7 +408,11 @@ main(int argc, char* argv[]) "EmlsrTransitionDelay", TimeValue(MicroSeconds(transitionDelayUsec)), "SwitchAuxPhy", - BooleanValue(switchAuxPhy)); + BooleanValue(switchAuxPhy), + "AuxPhyTxCapable", + BooleanValue(auxPhyTxCapable), + "AuxPhyChannelWidth", + UintegerValue(auxPhyChWidth)); for (uint8_t linkId = 0; linkId < nLinks; linkId++) { phy.Set(linkId, "ChannelSettings", StringValue(channelStr[linkId]));