else if (wifiType == "ns3::SpectrumWifiPhy")
{
mac.SetType ("ns3::StaWifiMac",
"Ssid", SsidValue (ssid),
"ActiveProbing", BooleanValue (false));
staDevice = wifi.Install (spectrumPhy, mac, wifiStaNode);
mac.SetType ("ns3::ApWifiMac",
"Ssid", SsidValue (ssid));
apDevice = wifi.Install (spectrumPhy, mac, wifiApNode);
// Added
spectrumPhy.Set ("ChannelNumber", UintegerValue (36)); // 5.180 GHz
mac.SetType ("ns3::StaWifiMac",
"Ssid", SsidValue (ssid2),
"ActiveProbing", BooleanValue (false));
staDevice2 = wifi.Install (spectrumPhy, mac, wifiStaNode2);
mac.SetType ("ns3::ApWifiMac",
"Ssid", SsidValue (ssid2));
apDevice2 = wifi.Install (spectrumPhy, mac, wifiApNode2);
}
****
I have attached the modified example to this post. When I run the simulation, it terminates immediately with:
msg="Received Wi-Fi Spectrum Signal with no WifiPhyTag", file=../src/wifi/model/spectrum-wifi-phy.cc, line=707
terminate called without an active exception
At the moment, I am stuck. Any suggestions how I should proceed?