Installing SpectrumWifiPhyHelper in MeshHelper is throwing an error

109 views
Skip to first unread message

Natasha Zlobinsky

unread,
Aug 15, 2020, 8:52:08 AM8/15/20
to ns-3-users
Hi

Please could someone confirm whether it is possible to use SpectrumWifiPhy with 802.11s mesh (MeshHelper).

The signature for MeshHelper::Install requires a
const WifiPhyHelper &

SpectrumWifiPhyHelper inherits from WifiPhyHelper, so I see no reason why this should not work, but it doesn't.
That line meshDevices = mesh.Install (spectrumPhy, nodes);
where mesh = MeshHelper::Default() and meshDevices is a NetDeviceContainer,
 causes the error 

assert failed. cond="m_ptr", msg="Attempted to dereference zero pointer", file=./ns3/ptr.h, line=630
terminate called without an active exception

Program received signal SIGABRT, Aborted.
0x00007fffede9d438 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.

Could someone please assist with how to use SpectrumWifiPhy with Mesh, and why that error occurs?

Natasha Zlobinsky

unread,
Aug 15, 2020, 9:07:18 AM8/15/20
to ns-3-users
Herewith please find a minimal example attached
minimal_spectrum_mesh.cc

Natasha Zlobinsky

unread,
Aug 17, 2020, 6:56:33 AM8/17/20
to ns-3-users
I followed the source code to try to identify exactly where the issue is and got as far as the phy->SetDevice(dev) call in SpectrumWifiPhyHelper::Create() in MeshHelper::CreateInterface(), but still no luck identifying why this is not working or how to fix it.

Please would someone help with this! This is surely a requirement for many people - anyone wanting to do mesh simulations, really. I think this is important that it works, and I am starting to think this might be a bug.

Natasha Zlobinsky

unread,
Aug 18, 2020, 4:45:55 AM8/18/20
to ns-3-users
Replying here to finish off this thread. This was a bug that is fixed in the latest ns-3-dev version, so resolved now.

Cheers
Reply all
Reply to author
Forward
0 new messages