msg="SpectrumWifiPhy misses channel and WifiSpectrumPhyInterface objects at initialization time", file=../src/wifi/model/spectrum-wifi-phy.cc, line=92
terminate called without an active exception
Ptr<MultiModelSpectrumChannel> spectrumChannel = CreateObject<MultiModelSpectrumChannel> (); Ptr<SpectrumWifiPhy> wifiPhy = CreateObject<SpectrumWifiPhy>();
wifiPhy -> SetChannel(spectrumChannel);
wifiPhy -> CreateWifiSpectrumPhyInterface(staDevices.Get(0));
uint16_t freq = 2400;
uint16_t channelWidth = 20;
wifiPhy->SetFrequency(freq);
wifiPhy->SetChannelWidth(channelWidth);