diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2008-12-07 11:12:10 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-12 13:48:24 -0500 |
commit | 3706de6f58962ba74c18eb4cb1ebe034ff723037 (patch) | |
tree | f7abfd387c67b07ae27c57609a7aa819140ae103 /drivers/net/wireless/ath9k/main.c | |
parent | 40990ec01fcca0b86a19c13a5d3deb77da1913a7 (diff) |
ath9k: Maintain rate table choice after association
A scan run after association would change sc_curmode which is
used to get the current rate table. This patch fixes it
by removing sc_curmode and setting the rate table in usage in cur_rate_table
on association.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index 26c47577e183..ade92d518d52 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -60,7 +60,8 @@ static void bus_read_cachesize(struct ath_softc *sc, int *csz) | |||
60 | 60 | ||
61 | static void ath_setcurmode(struct ath_softc *sc, enum wireless_mode mode) | 61 | static void ath_setcurmode(struct ath_softc *sc, enum wireless_mode mode) |
62 | { | 62 | { |
63 | sc->sc_curmode = mode; | 63 | if (!sc->sc_curaid) |
64 | sc->cur_rate_table = sc->hw_rate_table[mode]; | ||
64 | /* | 65 | /* |
65 | * All protection frames are transmited at 2Mb/s for | 66 | * All protection frames are transmited at 2Mb/s for |
66 | * 11g, otherwise at 1Mb/s. | 67 | * 11g, otherwise at 1Mb/s. |