changeset 11644 | 527ed7692b84 |
parent 11628 | 243b71de25a0 |
11643:eb0fc97dfd5b | 11644:527ed7692b84 |
---|---|
277 { |
277 { |
278 rateIndex = station->m_txrate; |
278 rateIndex = station->m_txrate; |
279 } |
279 } |
280 } |
280 } |
281 uint32_t channelWidth = GetChannelWidth (station); |
281 uint32_t channelWidth = GetChannelWidth (station); |
282 if (channelWidth >= 40) |
282 if (channelWidth > 20 && channelWidth != 22) |
283 { |
283 { |
284 //avoid to use legacy rate adaptation algorithms for IEEE 802.11n/ac |
284 //avoid to use legacy rate adaptation algorithms for IEEE 802.11n/ac |
285 channelWidth = 20; |
285 channelWidth = 20; |
286 } |
286 } |
287 return WifiTxVector (GetSupported (station, rateIndex), GetDefaultTxPowerLevel (), GetLongRetryCount (station), false, 1, 0, channelWidth, GetAggregation (station), false); |
287 return WifiTxVector (GetSupported (station, rateIndex), GetDefaultTxPowerLevel (), GetLongRetryCount (station), false, 1, 0, channelWidth, GetAggregation (station), false); |
290 WifiTxVector |
290 WifiTxVector |
291 OnoeWifiManager::DoGetRtsTxVector (WifiRemoteStation *st) |
291 OnoeWifiManager::DoGetRtsTxVector (WifiRemoteStation *st) |
292 { |
292 { |
293 OnoeWifiRemoteStation *station = (OnoeWifiRemoteStation *)st; |
293 OnoeWifiRemoteStation *station = (OnoeWifiRemoteStation *)st; |
294 uint32_t channelWidth = GetChannelWidth (station); |
294 uint32_t channelWidth = GetChannelWidth (station); |
295 if (channelWidth >= 40) |
295 if (channelWidth > 20 && channelWidth != 22) |
296 { |
296 { |
297 //avoid to use legacy rate adaptation algorithms for IEEE 802.11n/ac |
297 //avoid to use legacy rate adaptation algorithms for IEEE 802.11n/ac |
298 channelWidth = 20; |
298 channelWidth = 20; |
299 } |
299 } |
300 UpdateMode (station); |
300 UpdateMode (station); |