214 AarfWifiManager::DoReportFinalDataFailed (WifiRemoteStation *station) |
214 AarfWifiManager::DoReportFinalDataFailed (WifiRemoteStation *station) |
215 { |
215 { |
216 NS_LOG_FUNCTION (this << station); |
216 NS_LOG_FUNCTION (this << station); |
217 } |
217 } |
218 |
218 |
219 WifiMode |
219 WifiTxVector |
220 AarfWifiManager::DoGetDataMode (WifiRemoteStation *st, uint32_t size) |
220 AarfWifiManager::DoGetDataTxVector (WifiRemoteStation *st, uint32_t size) |
221 { |
221 { |
222 NS_LOG_FUNCTION (this << st << size); |
222 NS_LOG_FUNCTION (this << st << size); |
223 AarfWifiRemoteStation *station = (AarfWifiRemoteStation *) st; |
223 AarfWifiRemoteStation *station = (AarfWifiRemoteStation *) st; |
224 return GetSupported (station, station->m_rate); |
224 return WifiTxVector (GetSupported (station, station->m_rate), GetDefaultTxPowerLevel (), GetLongRetryCount (station), GetShortGuardInterval (station), Min (GetNumberOfReceiveAntennas (station),GetNumberOfTransmitAntennas()), GetNumberOfTransmitAntennas (station), GetStbc (station)); |
225 } |
225 } |
226 WifiMode |
226 WifiTxVector |
227 AarfWifiManager::DoGetRtsMode (WifiRemoteStation *st) |
227 AarfWifiManager::DoGetRtsTxVector (WifiRemoteStation *st) |
228 { |
228 { |
229 NS_LOG_FUNCTION (this << st); |
229 NS_LOG_FUNCTION (this << st); |
230 /// \todo we could/should implement the Aarf algorithm for |
230 /// \todo we could/should implement the Aarf algorithm for |
231 /// RTS only by picking a single rate within the BasicRateSet. |
231 /// RTS only by picking a single rate within the BasicRateSet. |
232 AarfWifiRemoteStation *station = (AarfWifiRemoteStation *) st; |
232 AarfWifiRemoteStation *station = (AarfWifiRemoteStation *) st; |
233 return GetSupported (station, 0); |
233 return WifiTxVector (GetSupported (station, 0), GetDefaultTxPowerLevel (), GetLongRetryCount (station), GetShortGuardInterval (station), Min (GetNumberOfReceiveAntennas (station),GetNumberOfTransmitAntennas()), GetNumberOfTransmitAntennas (station), GetStbc (station)); |
234 } |
234 } |
235 |
235 |
236 bool |
236 bool |
237 AarfWifiManager::IsLowLatency (void) const |
237 AarfWifiManager::IsLowLatency (void) const |
238 { |
238 { |