mac80211: small rate control fix
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38874
This commit is contained in:
parent
a95eb4d672
commit
7e77389bc5
1 changed files with 11 additions and 0 deletions
|
@ -4751,3 +4751,14 @@
|
||||||
ath9k_cmn_update_ichannel(channel, chandef);
|
ath9k_cmn_update_ichannel(channel, chandef);
|
||||||
|
|
||||||
return channel;
|
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);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue