linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zhu Yi <yi.zhu@intel.com>
To: linville@tuxdriver.com
Cc: linux-wireless@vger.kernel.org, Guy Cohen <guy.cohen@intel.com>,
	Tomas Winkler <tomas.winkler@intel.com>
Subject: [PATCH 2.6.26 2/3] iwlwifi: fix exit from stay_in_table state
Date: Tue, 27 May 2008 11:29:34 +0800	[thread overview]
Message-ID: <1211858975-21424-2-git-send-email-yi.zhu@intel.com> (raw)
In-Reply-To: <1211858975-21424-1-git-send-email-yi.zhu@intel.com>

From: Guy Cohen <guy.cohen@intel.com>

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>
---
 drivers/net/wireless/iwlwifi/iwl-4965-rs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c
index fa41ed1..838db19 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c
@@ -1980,7 +1980,7 @@ lq_update:
 	 * 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;
 
-- 
1.5.3.6


  reply	other threads:[~2008-05-27  3:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-27  3:29 [PATCH 2.6.26 1/3] iwlwifi: fix in-column rate scaling Zhu Yi
2008-05-27  3:29 ` Zhu Yi [this message]
2008-05-27  3:29   ` [PATCH 2.6.26 3/3] iwlwifi: fix rate scale TLC column selection bug Zhu Yi
2008-05-28 20:22 ` [PATCH 2.6.26 1/3] iwlwifi: fix in-column rate scaling John W. Linville
2008-05-29  2:02   ` Zhu Yi
2008-05-29  7:05     ` Tomas Winkler
2008-05-30 15:04       ` John W. Linville

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1211858975-21424-2-git-send-email-yi.zhu@intel.com \
    --to=yi.zhu@intel.com \
    --cc=guy.cohen@intel.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=tomas.winkler@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).