[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:21:32 PDT 2011


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

--- Comment #3 from Dean Armstrong <deanarm at gmail.com> 2011-07-05 17:21:31 EDT ---
(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.

-- 
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