// Set guard interval
Config::Set ("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/+\
HtConfiguration/ShortGuardIntervalSupported",
BooleanValue (sgi));
std::ostringstream oss;
oss << "VhtMcs" << MCS;
wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
"DataMode", StringValue (oss.str ()),
"ControlMode", StringValue (oss.str ()));
For MCS, the second line depends on the Wi-Fi amendment you are in. For instance, the given code is for 802.11ac (« VhtMcs »), for 802.11ac it would be HE (« HeMcs »), etc.
For the propagation models you must specify it when you create your physical channel, for instance with the YansWifiChannelHelper:
YansWifiChannelHelper channel = YansWifiChannelHelper::Default ();
channel.AddPropagationLoss("ns3::LogDistancePropagationLossModel");
Regards,
Samir
--
Samir SI-MOHAMMED
Researcher/PhD Candidate
ENS Lyon - Labex MILyon - STACKEO
LIP UMR CNRS - INRIA DANTE Team