]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 17:28:09 +0000 (10:28 -0700)
commit8d9d04e946c2b4b3742fb20c98610e3109bdb478
treeb391ae66f63b94e65d255c71d782bafebf07f3b7
parent0046274a882836ade933319d179a7e436cf5c971
iwlwifi: mvm: rs: reinit rs if no tx for a long time

commit 87d5e4155c0088e6766b4f0193b63fa0eab71220 upstream.

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.

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