From: Felix Fietkau Date: Wed, 20 Nov 2013 07:33:27 +0000 (+0000) Subject: mac80211: small rate control fix X-Git-Tag: reboot~8568 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7e77389bc55cc6ed0c99cddf2e3ee38c7784fc2d;p=openwrt%2Fstaging%2Fblogic.git mac80211: small rate control fix Signed-off-by: Felix Fietkau SVN-Revision: 38874 --- diff --git a/package/kernel/mac80211/patches/300-pending_work.patch b/package/kernel/mac80211/patches/300-pending_work.patch index 4b0337276d0b..5ca87b766461 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); + }