diff --git a/src/devices/wifi/amrr-mac-stations.cc b/src/devices/wifi/amrr-mac-stations.cc index 0bd68dd57..17bcbf56b 100644 --- a/src/devices/wifi/amrr-mac-stations.cc +++ b/src/devices/wifi/amrr-mac-stations.cc @@ -207,8 +207,8 @@ WifiMode AmrrMacStation::DoGetDataMode (uint32_t size) { UpdateMode (); - //XXX - return GetSupportedMode (0); + NS_ASSERT (m_txrate < GetNSupportedModes ()); + return GetSupportedMode (m_txrate); } WifiMode AmrrMacStation::DoGetRtsMode (void)