Search Linux Wireless

Re: [PATCHv3] mac80211: minstrel: Change expected throughput unit back to Kbps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sven,

On Mon, Feb 01, 2016 at 11:00:16PM +0100, Sven Eckelmann wrote:
> -	tp_avg = minstrel_ht_get_tp_avg(mi, i, j, prob) * AVG_PKT_SIZE * 8 / 1024;
> +	tp_avg = minstrel_ht_get_tp_avg(mi, i, j, prob) * 10;
> +	tp_avg *= AVG_PKT_SIZE * 8 / 1024;

This doesn't look right, in integer arithmetics there is a big
difference between (a * b) / c and a * ( b / c).


Johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux