From cc9655af45099fcf6c4083b45f84aac3a962c4e0 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Thu, 13 Dec 2007 15:04:11 +0100 Subject: [PATCH] return the computed rate --- src/devices/wifi/amrr-mac-stations.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)