]> Pileus Git - ~andy/linux/commitdiff
ath9k: Maintain monotonicity of PER while going across different phy
authorVasanthakumar Thiagarajan <vasanth@atheros.com>
Wed, 29 Jul 2009 09:35:22 +0000 (15:05 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Aug 2009 20:43:24 +0000 (16:43 -0400)
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 <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/rc.c

index 59ad47c98897425425bb5e22d2bc440d4c43fa87..16a271787b85bcb5fa87edfbd06ae7f8c0955622 100644 (file)
@@ -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]) {