]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
iwlwifi: fix exit from stay_in_table state
authorGuy Cohen <guy.cohen@intel.com>
Tue, 27 May 2008 03:29:34 +0000 (11:29 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 28 May 2008 20:43:47 +0000 (16:43 -0400)
When exiting from stay in table state (e.g. timer expiration),
all the statistics are reset and the RS flow should not continue
but only after enough statistics are collected again.

Signed-off-by: Guy Cohen <guy.cohen@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-4965-rs.c

index c9847b1a67f7d9ee5c58abfcc4f391167da890ff..02c4073f5a781c25a3e9715d817bf57aeec8964f 100644 (file)
@@ -2009,7 +2009,7 @@ static void rs_rate_scale_perform(struct iwl_priv *priv,
         * 2)  Not just finishing up a search
         * 3)  Allowing a new search
         */
-       if (!update_lq && !done_search && !lq_sta->stay_in_tbl) {
+       if (!update_lq && !done_search && !lq_sta->stay_in_tbl && window->counter) {
                /* Save current throughput to compare with "search" throughput*/
                lq_sta->last_tpt = current_tpt;