public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@openwrt.org>
To: Karl Beldan <karl.beldan@gmail.com>,
	Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless <linux-wireless@vger.kernel.org>,
	Karl Beldan <karl.beldan@rivierawaves.com>
Subject: Re: [PATCH] mac80211: use capped prob when computing throughputs
Date: Wed, 20 Nov 2013 17:57:06 +0100	[thread overview]
Message-ID: <528CE9E2.7030707@openwrt.org> (raw)
In-Reply-To: <528C6590.1000803@openwrt.org>

On 2013-11-20 08:32, Felix Fietkau wrote:
> On 2013-11-20 01:51, Karl Beldan wrote:
>> From: Karl Beldan <karl.beldan@rivierawaves.com>
>> 
>> Commit 3e8b1eb "mac80211/minstrel_ht: improve rate selection stability"
>> introduced a local capped prob in minstrel_ht_calc_tp but omitted to use
>> it to compute the rate throughput.
>> 
>> Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
>> CC: Felix Fietkau <nbd@openwrt.org>
> Nice catch!
> Acked-by: Felix Fietkau <nbd@openwrt.org>
Sorry, I need to revoke that ACK - there's a bug in this patch:

> -	tp = 1000000 * ((mr->probability * 1000) / nsecs);
> +	tp = 1000000 * (prob * 1000) / nsecs;
Removing the outer () is wrong, it leads to overflow that makes all
throughput values 0.

- Felix

  parent reply	other threads:[~2013-11-20 16:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-20  0:51 [PATCH] mac80211: use capped prob when computing throughputs Karl Beldan
2013-11-20  7:32 ` Felix Fietkau
2013-11-20 13:56   ` Karl Beldan
2013-11-20 14:04     ` Felix Fietkau
2013-11-20 14:50       ` Karl Beldan
2013-11-20 15:49         ` Felix Fietkau
2013-11-20 16:19           ` Karl Beldan
2013-11-20 17:32             ` Felix Fietkau
2013-11-20 17:53               ` Karl Beldan
2013-11-20 18:24                 ` Felix Fietkau
2013-11-20 16:57   ` Felix Fietkau [this message]
2013-11-20 17:03     ` Karl Beldan
2013-11-20 17:04     ` Karl Beldan
2013-11-20 17:37       ` Felix Fietkau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=528CE9E2.7030707@openwrt.org \
    --to=nbd@openwrt.org \
    --cc=johannes@sipsolutions.net \
    --cc=karl.beldan@gmail.com \
    --cc=karl.beldan@rivierawaves.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox