From patchwork Wed Jul 29 09:35:22 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasanthakumar Thiagarajan X-Patchwork-Id: 38092 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6T9h0Oh018036 for ; Wed, 29 Jul 2009 09:43:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753602AbZG2Jm4 (ORCPT ); Wed, 29 Jul 2009 05:42:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753534AbZG2Jm4 (ORCPT ); Wed, 29 Jul 2009 05:42:56 -0400 Received: from mail.atheros.com ([12.36.123.2]:27322 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753482AbZG2Jm4 (ORCPT ); Wed, 29 Jul 2009 05:42:56 -0400 Received: from mail.atheros.com ([10.10.20.108]) by sidewinder.atheros.com for ; Wed, 29 Jul 2009 02:42:57 -0700 Received: from localhost.localdomain (10.12.4.14) by SC1EXHC-02.global.atheros.com (10.10.20.111) with Microsoft SMTP Server id 8.0.813.0; Wed, 29 Jul 2009 02:42:52 -0700 From: Vasanthakumar Thiagarajan To: CC: , , , Subject: [PATCH 2/3] ath9k: Maintain monotonicity of PER while going across different phy Date: Wed, 29 Jul 2009 15:05:22 +0530 Message-ID: <1248860123-12079-2-git-send-email-vasanth@atheros.com> X-Mailer: git-send-email 1.5.5.1 In-Reply-To: <1248860123-12079-1-git-send-email-vasanth@atheros.com> References: <1248860123-12079-1-git-send-email-vasanth@atheros.com> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Monotonicity of packet error rate should be kept when moving from one phy to another (legacy to ht, ht single stream to dual, etc). Current code skips updating per for other phys. Signed-off-by: Vasanthakumar Thiagarajan --- drivers/net/wireless/ath/ath9k/rc.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c index 59ad47c..16a2717 100644 --- a/drivers/net/wireless/ath/ath9k/rc.c +++ b/drivers/net/wireless/ath/ath9k/rc.c @@ -1041,9 +1041,6 @@ static void ath_rc_update_ht(struct ath_softc *sc, /* Monotonicity is kept only for rates below the current rate. */ if (ath_rc_priv->per[tx_rate] < last_per) { for (rate = tx_rate - 1; rate >= 0; rate--) { - if (rate_table->info[rate].phy != - rate_table->info[tx_rate].phy) - break; if (ath_rc_priv->per[rate] > ath_rc_priv->per[rate+1]) {