]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ath9k: Do not use association state to update rate table
authorSujith <Sujith.Manoharan@atheros.com>
Fri, 12 Dec 2008 06:29:07 +0000 (11:59 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Dec 2008 20:23:02 +0000 (15:23 -0500)
Now that HT information is made available to the driver through
config() callback, the channel type can be calculated whenever
setting the channel. Update the rate table accordingly with the new
channel type.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/main.c

index e22fea18bad6bd7efc257513065bbc2f3c31e617..550afbe8e96abb8a1738cad926598751e0f61176 100644 (file)
@@ -61,8 +61,7 @@ static void bus_read_cachesize(struct ath_softc *sc, int *csz)
 
 static void ath_setcurmode(struct ath_softc *sc, enum wireless_mode mode)
 {
-       if (!sc->sc_curaid)
-               sc->cur_rate_table = sc->hw_rate_table[mode];
+       sc->cur_rate_table = sc->hw_rate_table[mode];
        /*
         * All protection frames are transmited at 2Mb/s for
         * 11g, otherwise at 1Mb/s.