>From d581c0c00c93df446aa25836a01f8e48b1a6e556 Mon Sep 17 00:00:00 2001 From: Abhijeet Kolekar Date: Thu, 12 Mar 2009 15:46:31 -0700 Subject: [PATCH] iwl3945: control rate decrease Control the rate decrease. Do not decrese the rate fast. Signed-off-by: Abhijeet Kolekar --- drivers/net/wireless/iwlwifi/iwl-3945-rs.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-rs.c b/drivers/net/wireless/iwlwifi/iwl-3945-rs.c index f65c308..f92943d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945-rs.c @@ -800,7 +800,7 @@ static void rs_get_rate(void *priv_r, struct ieee80211_sta *sta, if (high != IWL_RATE_INVALID && window->success_counter >= IWL_RATE_INCREASE_TH) scale_action = 1; else if (low != IWL_RATE_INVALID) - scale_action = -1; + scale_action = 0; /* Both adjacent throughputs are measured, but neither one has * better throughput; we're using the best rate, don't change @@ -826,7 +826,7 @@ static void rs_get_rate(void *priv_r, struct ieee80211_sta *sta, else { IWL_DEBUG_RATE(priv, "decrease rate because of high tpt\n"); - scale_action = -1; + scale_action = 0; } } else if (low_tpt != IWL_INVALID_VALUE) { if (low_tpt > current_tpt) { -- 1.5.4.3