examples: set propagation loss model on wifi-he-network example

This commit is contained in:
Matteo Drago
2023-02-02 09:01:07 +01:00
committed by Tom Henderson
parent 4be2d26038
commit e27af18476

View File

@@ -259,6 +259,11 @@ main(int argc, char* argv[])
*/
Ptr<MultiModelSpectrumChannel> spectrumChannel =
CreateObject<MultiModelSpectrumChannel>();
Ptr<LogDistancePropagationLossModel> lossModel =
CreateObject<LogDistancePropagationLossModel>();
spectrumChannel->AddPropagationLossModel(lossModel);
SpectrumWifiPhyHelper phy;
phy.SetPcapDataLinkType(WifiPhyHelper::DLT_IEEE802_11_RADIO);
phy.SetChannel(spectrumChannel);