examples: set propagation loss model on wifi-he-network example
This commit is contained in:
committed by
Tom Henderson
parent
4be2d26038
commit
e27af18476
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user