mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
mac80211: Fix output of minstrels rc_stats
An integer overflow in the minstrel debug code prevented the throughput to be displayed correctly. This patch fixes that, by permutating operations like proposed by Pavel Roskin. Signed-off-by: Arnd Hannemann <hannemann@nets.rwth-aachen.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
2aa7b01fe4
commit
eadac6bf95
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ minstrel_stats_open(struct inode *inode, struct file *file)
|
|||
p += sprintf(p, "%3u%s", mr->bitrate / 2,
|
||||
(mr->bitrate & 1 ? ".5" : " "));
|
||||
|
||||
tp = ((mr->cur_tp * 96) / 18000) >> 10;
|
||||
tp = mr->cur_tp / ((18000 << 10) / 96);
|
||||
prob = mr->cur_prob / 18;
|
||||
eprob = mr->probability / 18;
|
||||
|
||||
|
|
Loading…
Reference in a new issue