]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: minstrel_ht: fix rounding issue in MCS duration calculation
authorFelix Fietkau <nbd@openwrt.org>
Fri, 13 Mar 2015 09:54:44 +0000 (10:54 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 17 Mar 2015 10:03:30 +0000 (11:03 +0100)
commit03c70a4de44a41a122772f65b21d2de507539c7f
tree76d969bd7fd83ef2903f47c61d3286949a3138b8
parente01b6f11c83fac113b589acdc07033c9f9daa7f3
mac80211: minstrel_ht: fix rounding issue in MCS duration calculation

On very high MCS bitrates, the calculated duration of rates that are
next to each other can be very imprecise, due to the small packet size
used as reference (1200 bytes).
This is most visible in VHT80 nss=2 MCS8/9, for which minstrel shows the
same throughput when the probability is also the same. This leads to a
bad rate selection for such rates.

Fix this issue by introducing an average A-MPDU size factor into the
calculation.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c