changeset 11644 | 527ed7692b84 |
parent 11628 | 243b71de25a0 |
11643:eb0fc97dfd5b | 11644:527ed7692b84 |
---|---|
285 RraaWifiManager::DoGetDataTxVector (WifiRemoteStation *st, |
285 RraaWifiManager::DoGetDataTxVector (WifiRemoteStation *st, |
286 uint32_t size) |
286 uint32_t size) |
287 { |
287 { |
288 RraaWifiRemoteStation *station = (RraaWifiRemoteStation *) st; |
288 RraaWifiRemoteStation *station = (RraaWifiRemoteStation *) st; |
289 uint32_t channelWidth = GetChannelWidth (station); |
289 uint32_t channelWidth = GetChannelWidth (station); |
290 if (channelWidth >= 40) |
290 if (channelWidth > 20 && channelWidth != 22) |
291 { |
291 { |
292 //avoid to use legacy rate adaptation algorithms for IEEE 802.11n/ac |
292 //avoid to use legacy rate adaptation algorithms for IEEE 802.11n/ac |
293 channelWidth = 20; |
293 channelWidth = 20; |
294 } |
294 } |
295 if (!station->m_initialized) |
295 if (!station->m_initialized) |
302 WifiTxVector |
302 WifiTxVector |
303 RraaWifiManager::DoGetRtsTxVector (WifiRemoteStation *st) |
303 RraaWifiManager::DoGetRtsTxVector (WifiRemoteStation *st) |
304 { |
304 { |
305 RraaWifiRemoteStation *station = (RraaWifiRemoteStation *) st; |
305 RraaWifiRemoteStation *station = (RraaWifiRemoteStation *) st; |
306 uint32_t channelWidth = GetChannelWidth (station); |
306 uint32_t channelWidth = GetChannelWidth (station); |
307 if (channelWidth >= 40) |
307 if (channelWidth > 20 && channelWidth != 22) |
308 { |
308 { |
309 //avoid to use legacy rate adaptation algorithms for IEEE 802.11n/ac |
309 //avoid to use legacy rate adaptation algorithms for IEEE 802.11n/ac |
310 channelWidth = 20; |
310 channelWidth = 20; |
311 } |
311 } |
312 return WifiTxVector (GetSupported (st, 0), GetDefaultTxPowerLevel (), GetShortRetryCount (st), false, 1, 0, channelWidth, GetAggregation (station), false); |
312 return WifiTxVector (GetSupported (st, 0), GetDefaultTxPowerLevel (), GetShortRetryCount (st), false, 1, 0, channelWidth, GetAggregation (station), false); |