]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath9k: Update rate control for 11NA HT40 mode
authorVasanthakumar Thiagarajan <vasanth@atheros.com>
Wed, 29 Jul 2009 09:35:21 +0000 (15:05 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Aug 2009 20:43:24 +0000 (16:43 -0400)
Now the lowest rate in 11na ht40 mode is 13.5Mbps this shortens the
range when compared to 11na ht20 mode where the lowest rate is 6.5Mbps.
To improve the range, make 6.5Mbps as the lowest rate in 11na ht40 mode,
this improves the range by approximately 2dB. 11ng ht40 does not have
this issue as it also has basic rates (1, 2, 5.5 and 11).

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 a07efa22551e3a4e0bf956531812e151b79b3b5b..59ad47c98897425425bb5e22d2bc440d4c43fa87 100644 (file)
@@ -44,7 +44,7 @@ static const struct ath_rate_table ar5416_11na_ratetable = {
                { VALID, VALID, WLAN_RC_PHY_OFDM, 54000, /* 54 Mb */
                        29300, 0x0c, 0x00, 108,
                        4,  7, 7, 7, 7, 0 },
-               { VALID_20, VALID_20, WLAN_RC_PHY_HT_20_SS, 6500, /* 6.5 Mb */
+               { VALID_2040, VALID_2040, WLAN_RC_PHY_HT_20_SS, 6500, /* 6.5 Mb */
                        6400, 0x80, 0x00, 0,
                        0, 8, 24, 8, 24, 3216 },
                { VALID_20, VALID_20, WLAN_RC_PHY_HT_20_SS, 13000, /* 13 Mb */
@@ -463,8 +463,6 @@ static int ath_rc_valid_phyrate(u32 phy, u32 capflag, int ignore_cw)
        if (!ignore_cw && WLAN_RC_PHY_HT(phy))
                if (WLAN_RC_PHY_40(phy) && !(capflag & WLAN_RC_40_FLAG))
                        return 0;
-               if (!WLAN_RC_PHY_40(phy) && (capflag & WLAN_RC_40_FLAG))
-                       return 0;
        return 1;
 }