public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211: use capped prob when computing throughputs
@ 2013-11-20  0:51 Karl Beldan
  2013-11-20  7:32 ` Felix Fietkau
  0 siblings, 1 reply; 14+ messages in thread
From: Karl Beldan @ 2013-11-20  0:51 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, Karl Beldan, Felix Fietkau

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>
---
 net/mac80211/rc80211_minstrel_ht.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c
index 9702d88..341e6f7 100644
--- a/net/mac80211/rc80211_minstrel_ht.c
+++ b/net/mac80211/rc80211_minstrel_ht.c
@@ -333,7 +333,7 @@ minstrel_ht_calc_tp(struct minstrel_ht_sta *mi, int group, int rate)
 		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);
 }
-- 
1.8.2


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-11-20 18:24 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-11-20 17:03     ` Karl Beldan
2013-11-20 17:04     ` Karl Beldan
2013-11-20 17:37       ` Felix Fietkau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox