aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-11-20 07:33:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-11-20 07:33:27 +0000
commit551d95c6afa242ad9ae4f1a77dffc4c64b48c51b (patch)
treed217f2ca2d945e1e573be6f2e24d5d327cea7a5f /package/kernel
parent4ef49088fefe0370edec62546b6c1e811a5f1cd0 (diff)
downloadmaster-187ad058-551d95c6afa242ad9ae4f1a77dffc4c64b48c51b.tar.gz
master-187ad058-551d95c6afa242ad9ae4f1a77dffc4c64b48c51b.tar.bz2
master-187ad058-551d95c6afa242ad9ae4f1a77dffc4c64b48c51b.zip
mac80211: small rate control fix
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38874 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/mac80211/patches/300-pending_work.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/300-pending_work.patch b/package/kernel/mac80211/patches/300-pending_work.patch
index 4b0337276d..5ca87b7664 100644
--- a/package/kernel/mac80211/patches/300-pending_work.patch
+++ b/package/kernel/mac80211/patches/300-pending_work.patch
@@ -4751,3 +4751,14 @@
ath9k_cmn_update_ichannel(channel, chandef);
return channel;
+--- a/net/mac80211/rc80211_minstrel_ht.c
++++ b/net/mac80211/rc80211_minstrel_ht.c
+@@ -226,7 +226,7 @@ minstrel_ht_calc_tp(struct minstrel_ht_s
+ nsecs = 1000 * mi->overhead / MINSTREL_TRUNC(mi->avg_ampdu_len);
+
+ nsecs += minstrel_mcs_groups[group].duration[rate];
+- tp = 1000000 * ((mr->probability * 1000) / nsecs);
++ tp = 1000000 * (prob * 1000) / nsecs;
+
+ mr->cur_tp = MINSTREL_TRUNC(tp);
+ }