I am bit confused by what you want to do. If you configure the physical
layer to use WIFI_PHY_STANDARD_80211b, you then have access to the DSSS
1 Mbps and 2 Mbps.
Ruben
On 6/5/11 3:06 PM, Rober wrote:
> Hi Ruben,
>
> The problem is that ns-3 takes as basic rate only 1 Mbps (I can check
> it in PHY layer in the pcap files). But in real life, some cards use
> higher rates (including 11 Mbps) as basic rates. So you can see ACKs
> at 2, 5.5 or 11 Mbps in real tests.
Sure, no issue with that.
> So, I need to set these higher rates for ACKs in my simulations, but
> ns-3 only uses 1 Mbps (the only basic rate for 802.11b in ns-3) for
> ACKs. I can't use "AddBasicMode" to add more basic rates because it
> fails.
I should have read better the error message. You can't use AddBasicMode
this way. As the error message says, it is not an attribute. Now, this
function is used only with an STA mac. With an ad hoc wifi mac or
others, the wifiMode of control frames or management frames corresponds
to the m_defaultTxMode in WifiRemoteStationManager (through the
m_bssBasicRateSet, see WifiRemoteStationManager::GetControlAnswerMode).
I believe that what you'd like is a way to change the rate for
management frame and control frames. I am right now not sure what is the
best way to do it. Can you please submit a bug entry on
https://www.nsnam.org/bugzilla/ (select the wifi module) and we'll keep
on from there. I'm happy if you have any suggestion and/or patch.
Best
Ruben