iwlwifi: mvm: rs: overhaul rs_get_best_rate
authorEyal Shapira <eyal@wizery.com>
Wed, 9 Apr 2014 01:31:44 +0000 (04:31 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 6 May 2014 17:39:51 +0000 (20:39 +0300)
commit80763515c371202916ecdb4118dbed51f801aeb5
tree92edb69fea9b40ddf5c5e371e790b8948b32c9d1
parent31b204525a7f0decee85ec336d406c01c5411a5c
iwlwifi: mvm: rs: overhaul rs_get_best_rate

rs_get_best_rate determines the optimal rate to try in a
new Tx column. Currently we were sometimes trying a too high
rate which would lead us to fail and avoid switching to the
new column despite it having a potential to be better.
Change the logic to try and find the first rate which would
exceed the current actual throughput or be more aggressive
if the success ratio is good.

Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/rs.c