mac80211: small rate control fix
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 20 Nov 2013 07:33:27 +0000 (07:33 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 20 Nov 2013 07:33:27 +0000 (07:33 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38874 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/kernel/mac80211/patches/300-pending_work.patch

index 4b03372..5ca87b7 100644 (file)
        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);
+ }