802.11s mesh.cc with spectrum-wifi-phy

79 views
Skip to first unread message

Mahesh

unread,
Sep 30, 2017, 11:29:44 AM9/30/17
to ns-3-users
Hello,

Does 802.11s work with spectrum-wifi-phy ? I tweaked mesh.cc to use spectrum-wifi-phy instead of yans-wifi-phy. And I got the following error (through GDB):

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff720116c in ns3::MeshWifiInterfaceMac::SwitchFrequencyChannel (this=0x6e8140, new_id=0)
    at
../src/mesh/model/mesh-wifi-interface-mac.cc:210
210  phy->SetChannelNumber (new_id);

I cannot understand what it relates to. Can someone please help ?

Thanks,
Mahesh
my_mesh.cc

Natasha Zlobinsky

unread,
Aug 3, 2020, 3:56:40 AM8/3/20
to ns-3-users
I also need this problem solved. Does mesh work or not with SpectrumPhy?

Natasha Zlobinsky

unread,
Aug 15, 2020, 8:44:33 AM8/15/20
to ns-3-users
Hi everyone

I really need an answer to this question, please! @Mahesh, did you ever get this to work?

hub...@gmail.com

unread,
Aug 17, 2020, 1:54:42 PM8/17/20
to ns-3-users
Segmentation fault points out that you're trying to access a memory that is not accessible from your block. Usually when you mess something up with iterations of vectors/maps etc.

I'm not sure, can't run the code but when I looked to the code pointed out by this error it uses yans wifi. So try changing all of the parts that you actually use.

Cheers,
Hubert

ananthakr...@gmail.com

unread,
Aug 17, 2020, 2:35:30 PM8/17/20
to ns-3-users
 Hey, I ran the your program in ns-3.31 and I am getting a different error message.

msg="Could not set default value for ns3::WifiPhy::CcaMode1Threshold", file=../src/core/model/config.cc, line=854
terminate called without an active exception.

Also I couldn't find this attribute anywhere. Are you running it on a different version of ns-3?

Natasha Zlobinsky

unread,
Aug 18, 2020, 4:44:20 AM8/18/20
to ns-3-users
Thanks for the replies, all. It turns out is was a bug as there was an unnecessary downcasting somewhere along the line. The bug was fixed yesterday and pushed to the ns-3-dev so that version works now.

@ananthakr...@gmail.com, I was using the ns-3-dev version.

Regards
Reply all
Reply to author
Forward
0 new messages