200 WifiTxVector |
200 WifiTxVector |
201 ArfWifiManager::DoGetDataTxVector (WifiRemoteStation *st, uint32_t size) |
201 ArfWifiManager::DoGetDataTxVector (WifiRemoteStation *st, uint32_t size) |
202 { |
202 { |
203 NS_LOG_FUNCTION (this << st << size); |
203 NS_LOG_FUNCTION (this << st << size); |
204 ArfWifiRemoteStation *station = (ArfWifiRemoteStation *) st; |
204 ArfWifiRemoteStation *station = (ArfWifiRemoteStation *) st; |
205 return WifiTxVector (GetSupported (station, station->m_rate), GetDefaultTxPowerLevel (), GetLongRetryCount (station), GetShortGuardInterval (station), Min (GetNumberOfReceiveAntennas (station),GetNumberOfTransmitAntennas()), GetNumberOfTransmitAntennas (station), GetStbc (station)); |
205 return WifiTxVector (GetSupported (station, station->m_rate), GetDefaultTxPowerLevel (), GetLongRetryCount (station), GetShortGuardInterval (station), Min (GetNumberOfReceiveAntennas (station),GetNumberOfTransmitAntennas()), GetNess (station), GetStbc (station)); |
206 } |
206 } |
207 WifiTxVector |
207 WifiTxVector |
208 ArfWifiManager::DoGetRtsTxVector (WifiRemoteStation *st) |
208 ArfWifiManager::DoGetRtsTxVector (WifiRemoteStation *st) |
209 { |
209 { |
210 NS_LOG_FUNCTION (this << st); |
210 NS_LOG_FUNCTION (this << st); |
211 /// \todo we could/should implement the Arf algorithm for |
211 /// \todo we could/should implement the Arf algorithm for |
212 /// RTS only by picking a single rate within the BasicRateSet. |
212 /// RTS only by picking a single rate within the BasicRateSet. |
213 ArfWifiRemoteStation *station = (ArfWifiRemoteStation *) st; |
213 ArfWifiRemoteStation *station = (ArfWifiRemoteStation *) st; |
214 return WifiTxVector (GetSupported (station, 0), GetDefaultTxPowerLevel (), GetLongRetryCount (station), GetShortGuardInterval (station), Min (GetNumberOfReceiveAntennas (station),GetNumberOfTransmitAntennas()), GetNumberOfTransmitAntennas (station), GetStbc (station)); |
214 return WifiTxVector (GetSupported (station, 0), GetDefaultTxPowerLevel (), GetLongRetryCount (station), GetShortGuardInterval (station), Min (GetNumberOfReceiveAntennas (station),GetNumberOfTransmitAntennas()), GetNess (station), GetStbc (station)); |
215 } |
215 } |
216 |
216 |
217 bool |
217 bool |
218 ArfWifiManager::IsLowLatency (void) const |
218 ArfWifiManager::IsLowLatency (void) const |
219 { |
219 { |