]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: improve minstrel_ht rate sorting by throughput & probability
authorThomas Huehn <thomas@net.t-labs.tu-berlin.de>
Tue, 9 Sep 2014 21:22:14 +0000 (23:22 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 11 Sep 2014 10:10:14 +0000 (12:10 +0200)
commitf4ba8662e180c4aba69109c6c6cc05ff4313258f
treee28cbd441b882cecf9e16b575fe684eae9197d2a
parente7366b5d809513020040ba7e89508192bfea0664
mac80211: improve minstrel_ht rate sorting by throughput & probability

This patch improves the way minstrel_ht sorts rates according to throughput
and success probability. 3 FOR-loops across the entire rate and mcs group set
in function minstrel_ht_update_stats() which where used to determine the
fastest, second fastest and most robust rate are reduced to 2 FOR-loop.

The sorted list of rates according throughput is extended to the best four
rates as we need them in upcoming joint rate and power control. The sorting
is done via the new function minstrel_ht_sort_best_tp_rates(). The annotation
of those 4 best throughput rates in the debugfs file rc-stats is changes to:
"A,B,C,D", where A is the fastest rate and C the 4th fastest.

Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>
Tested-by: Stefan Venz <ikstream86@gmail.com>
Acked-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c
net/mac80211/rc80211_minstrel_ht.h
net/mac80211/rc80211_minstrel_ht_debugfs.c