Skip to content

Commit

Permalink
ath9k: Do not use association state to update rate table
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sujith authored and John W. Linville committed Dec 19, 2008
1 parent 094d05d commit 9d8eed1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9d8eed1

Please sign in to comment.