--- a/src/wifi/model/rraa-wifi-manager.cc Tue Aug 13 10:37:49 2013 -0700
+++ b/src/wifi/model/rraa-wifi-manager.cc Tue Aug 13 22:05:25 2013 -0700
@@ -26,6 +26,8 @@
#include "ns3/uinteger.h"
#include "ns3/simulator.h"
+#define Min(a,b) ((a < b) ? a : b)
+
NS_LOG_COMPONENT_DEFINE ("RraaWifiManager");
namespace ns3 {
@@ -267,8 +269,8 @@
{
}
-WifiMode
-RraaWifiManager::DoGetDataMode (WifiRemoteStation *st,
+WifiTxVector
+RraaWifiManager::DoGetDataTxVector (WifiRemoteStation *st,
uint32_t size)
{
RraaWifiRemoteStation *station = (RraaWifiRemoteStation *) st;
@@ -276,12 +278,12 @@
{
ResetCountersBasic (station);
}
- return GetSupported (station, station->m_rate);
+ return WifiTxVector (GetSupported (station, station->m_rate), GetDefaultTxPowerLevel (), GetLongRetryCount (station), GetShortGuardInterval (station), Min (GetNumberOfReceiveAntennas (station),GetNumberOfTransmitAntennas()), GetNumberOfTransmitAntennas (station), GetStbc (station));
}
-WifiMode
-RraaWifiManager::DoGetRtsMode (WifiRemoteStation *st)
+WifiTxVector
+RraaWifiManager::DoGetRtsTxVector (WifiRemoteStation *st)
{
- return GetSupported (st, 0);
+ return WifiTxVector (GetSupported (st, 0), GetDefaultTxPowerLevel (), GetShortRetryCount (st), GetShortGuardInterval (st), Min (GetNumberOfReceiveAntennas (st),GetNumberOfTransmitAntennas()), GetNumberOfTransmitAntennas (st), GetStbc (st));
}
bool