]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iwlwifi: mvm: rs: fix and cleanup rs_get_rate_action
authorEyal Shapira <eyal@wizery.com>
Sat, 5 Apr 2014 23:42:18 +0000 (02:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 17:28:09 +0000 (10:28 -0700)
commit0046274a882836ade933319d179a7e436cf5c971
tree4bd9336bf38dded142a766a1cd1bce3834cd5000
parentbb6259d93e88d2ae7b177f2d999a51a2c4033eb9
iwlwifi: mvm: rs: fix and cleanup rs_get_rate_action

commit e53839eb9882c99d3781eab0fe1b2d4369a6a2cc upstream.

Change the down/upscale decision logic a bit to be based
on different success ratio thresholds. This fixes the implementation
compared to the rate scale algorithm which was planned to yield
optimal results. Also fix a case where a lower rate wasn't explored
despite being a potential for better throughput.
While at it rewrite rs_get_rate_action to be more clear and clean.

Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/mvm/rs.c
drivers/net/wireless/iwlwifi/mvm/rs.h