diff --git a/examples/wireless/wifi-he-network.cc b/examples/wireless/wifi-he-network.cc index bc821d12b..1bf7a3edd 100644 --- a/examples/wireless/wifi-he-network.cc +++ b/examples/wireless/wifi-he-network.cc @@ -259,6 +259,11 @@ main(int argc, char* argv[]) */ Ptr spectrumChannel = CreateObject(); + + Ptr lossModel = + CreateObject(); + spectrumChannel->AddPropagationLossModel(lossModel); + SpectrumWifiPhyHelper phy; phy.SetPcapDataLinkType(WifiPhyHelper::DLT_IEEE802_11_RADIO); phy.SetChannel(spectrumChannel);