]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: rs: reinit rs if no tx for a long time
authorEyal Shapira <eyal@wizery.com>
Sun, 6 Apr 2014 15:13:22 +0000 (18:13 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 13 Apr 2014 13:51:04 +0000 (16:51 +0300)
commit433263b35c40edd7f97de6f960e4a78b241b14c7
treef3b085549d06ee7934d2856a2b82b55374bf893b
parent39e87d672616ce1c614f6205cd9e9d92ac15485f
iwlwifi: mvm: rs: reinit rs if no tx for a long time

After being idle for a long time (>5sec) the rs statistics
will be stale so we prefer to reset rs and start from legacy
rates again. This gives better results when the attenuation
increased signficantly (e.g. we got further from the AP) and
after a while we start Tx
Note that the first Tx after the idle period will still go out
in the old modulation and rate but this seemed a simpler approach
compared to adding a timer or modifying mac80211 for this.
The negative impact is negligble as we'll recover quickly.

Cc: <stable@vger.kernel.org> [3.14]
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
drivers/net/wireless/iwlwifi/mvm/rs.h