[Ns-bugs] [Bug 1181] How to add basic rates to 802.11

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Wed Jul 6 00:32:30 PDT 2011


https://www.nsnam.org/bugzilla/show_bug.cgi?id=1181

--- Comment #6 from Rober <sanzrober at gmail.com> 2011-07-06 03:32:29 EDT ---
(In reply to comment #5)
> (In reply to comment #4)
> > Thank you for your soon reply. I've already tried exactly the same code that
> > you suggest for the IBSS case. It compiles ok, but it fails when is executed.
> > I've been doing some tries and the failing line of code is the pointer
> > definition:
> > 
> > Ptr<WifiRemoteStationManager> nodeStationManager =
> >      DynamicCast<WifiNetDevice>(staDevs.Get (i))->GetRemoteStationManager ();
> 
> I've just tried doing what you want to do (modify basic rate set in an ns-3
> simulation with AdhocWifiMac devices) using the code I quoted in my previous
> comment, and it works for me.
> 
> You might need to share a bit more of your code (preferably a minimal failing
> example) for me to be able to help you.
> 
> This thread of discussion also leaves me wondering where this bug now stands.

Sorry, you're right. It was my silly fault. I typed "<=" instead of "<" inside
the "for" loop, so it overflowed the number of STA's.

So, it also works fine for me, and this bug may be closed.

The only doubt that remains is the actual function of the parameter
"ControlMode" like in:

wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
                                "DataMode",StringValue(phyMode),
                                "ControlMode",StringValue("DsssRate5_5Mbps"));

Isn't it supposed that "ControlMode" acts on the rate of control and management
frames? But indeed it doesn't. Well, this is just my last thought about all
this issue.

Thanks for all!

-- 
Configure bugmail: https://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list