[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 00:44:33 PDT 2011
https://www.nsnam.org/bugzilla/show_bug.cgi?id=1181
--- Comment #2 from Rober <sanzrober at gmail.com> 2011-07-05 03:44:32 EDT ---
(In reply to comment #1)
> This is how I have modified the basic rate set (where apDev is a
> NetDeviceContainer containing (as the first device) a Wi-Fi AP)...
>
> // Add the DSSS/CCK rates as the basic rates of our AP
> Ptr<WifiRemoteStationManager> apStationManager =
> DynamicCast<WifiNetDevice>(apDev.Get (0))->GetRemoteStationManager ();
> apStationManager->AddBasicMode (WifiMode ("DsssRate1Mbps"));
> apStationManager->AddBasicMode (WifiMode ("DsssRate2Mbps"));
> apStationManager->AddBasicMode (WifiMode ("DsssRate5_5Mbps"));
> apStationManager->AddBasicMode (WifiMode ("DsssRate11Mbps"));
>
> It works, but is a little obscure - I guess one could construct an API to allow
> this to be modified through the Attributes subsystem.
>
> Does this help you?
Yes, it works out! Thanks a lot. Now I can control the rate for ACKs and the
rate for data frames in a separate way, just to achieve a behaviour like in
real tests with real cards.
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.
Thanks again!
--
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