[Ns-bugs] [Bug 1181] How to add basic rates to 802.11
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Tue Jul 5 14:43:44 PDT 2011
https://www.nsnam.org/bugzilla/show_bug.cgi?id=1181
--- Comment #4 from Rober <sanzrober at gmail.com> 2011-07-05 17:43:44 EDT ---
(In reply to comment #3)
> (In reply to comment #2)
> > But... I also have tried your modification for a IBSS network (i.e. ad hoc
> > mode) but it seems that basic rates can't be modified with the same code
> > (obviously I have changed apDev for staDevs. Maybe you can tell me a way to
> > adapt the BSS modification to the IBSS case.
>
> I haven't tried it, but I would have thought it would work if you did it for
> each STA in the IBSS - i.e., the code I provided could be repeated in a for
> loop across the STAs in your staDevs. Perhaps something like this...
>
> // Add the DSSS/CCK rates as the basic rates of each STA
> for (uint16_t i = 0; i < nStas; i++) {
> Ptr<WifiRemoteStationManager> nodeStationManager =
> DynamicCast<WifiNetDevice>(staDevs.Get (i))->GetRemoteStationManager ();
> nodeStationManager->AddBasicMode (WifiMode ("DsssRate1Mbps"));
> nodeStationManager->AddBasicMode (WifiMode ("DsssRate2Mbps"));
> nodeStationManager->AddBasicMode (WifiMode ("DsssRate5_5Mbps"));
> nodeStationManager->AddBasicMode (WifiMode ("DsssRate11Mbps"));
> }
>
> I haven't worked with the ns-3 "IBSS" much though, so I might be off-base.
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 must confess that I haven't neither worked win IBSS much, but I guessed it
would be applied in the same way as for the BSS mode.
Any help will be welcome.
Thanks!
--
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