diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2008-12-12 11:59:07 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-19 15:23:02 -0500 |
commit | 9d8eed12dbc04f8ed70090da14211c808b5a8d81 (patch) | |
tree | 51e37862dc468e7bdda62286a23e467f65c6e497 /drivers/net/wireless | |
parent | 094d05dc32fc2930e381189a942016e5561775d9 (diff) | |
download | kernel_samsung_smdk4412-9d8eed12dbc04f8ed70090da14211c808b5a8d81.tar.gz kernel_samsung_smdk4412-9d8eed12dbc04f8ed70090da14211c808b5a8d81.tar.bz2 kernel_samsung_smdk4412-9d8eed12dbc04f8ed70090da14211c808b5a8d81.zip |
ath9k: Do not use association state to update rate table
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>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index e22fea18bad..550afbe8e96 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c @@ -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. |