From: Felix Fietkau Date: Sat, 2 Mar 2013 20:20:12 +0000 (+0100) Subject: mac80211/minstrel_ht: improve accuracy of throughput metric at high data rates X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~390^2^2~69^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed97a13c540eb8fdbb6250eaa6471a4263204af8;p=pandora-kernel.git mac80211/minstrel_ht: improve accuracy of throughput metric at high data rates At high data rates the average frame transmission durations are small enough for rounding errors to matter, sometimes causing minstrel to use slightly lower transmit rates than necessary. To fix this, change the unit of the duration value to nanoseconds instead of microseconds, and reorder the multiplications/divisions when calculating the throughput metric so that they don't overflow or truncate prematurely. At 2-stream HT40 this makes TCP throughput a bit more stable. Signed-off-by: Felix Fietkau Signed-off-by: Johannes Berg --- Reading git-diff-tree failed