--- a/src/wifi/model/aparf-wifi-manager.cc Sat Sep 05 13:37:30 2015 +0200
+++ b/src/wifi/model/aparf-wifi-manager.cc Sat Sep 05 15:53:37 2015 +0200
@@ -323,7 +323,7 @@
NS_LOG_FUNCTION (this << st << size);
AparfWifiRemoteStation *station = (AparfWifiRemoteStation *) st;
uint32_t channelWidth = GetChannelWidth (station);
- if (channelWidth >= 40)
+ if (channelWidth > 20 && channelWidth != 22)
{
//avoid to use legacy rate adaptation algorithms for IEEE 802.11n/ac
channelWidth = 20;
@@ -340,7 +340,7 @@
/// RTS only by picking a single rate within the BasicRateSet.
AparfWifiRemoteStation *station = (AparfWifiRemoteStation *) st;
uint32_t channelWidth = GetChannelWidth (station);
- if (channelWidth >= 40)
+ if (channelWidth > 20 && channelWidth != 22)
{
//avoid to use legacy rate adaptation algorithms for IEEE 802.11n/ac
channelWidth = 20;