Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134043
b: refs/heads/master
c: ce111ba
h: refs/heads/master
i:
  134041: 342171e
  134039: 2db29b9
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Jan 29, 2009
1 parent c83fff2 commit c509864
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 96742256aba8c458d49af42610557977245be82d
refs/heads/master: ce111badf5ac387e9eefe1f2bba751f595994cb2
10 changes: 6 additions & 4 deletions trunk/drivers/net/wireless/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ static void bus_read_cachesize(struct ath_softc *sc, int *csz)
*csz = DEFAULT_CACHELINE >> 2; /* Use the default size */
}

static void ath_setcurmode(struct ath_softc *sc, struct ieee80211_conf *conf)
static void ath_cache_conf_rate(struct ath_softc *sc,
struct ieee80211_conf *conf)
{
switch (conf->channel->band) {
case IEEE80211_BAND_2GHZ:
Expand Down Expand Up @@ -91,6 +92,7 @@ static void ath_setcurmode(struct ath_softc *sc, struct ieee80211_conf *conf)
sc->hw_rate_table[ATH9K_MODE_11A];
break;
default:
BUG_ON(1);
break;
}
}
Expand Down Expand Up @@ -316,7 +318,7 @@ static int ath_set_channel(struct ath_softc *sc, struct ath9k_channel *hchan)
return -EIO;
}

ath_setcurmode(sc, &hw->conf);
ath_cache_conf_rate(sc, &hw->conf);
ath_update_txpow(sc);
ath9k_hw_set_interrupts(ah, sc->sc_imask);
}
Expand Down Expand Up @@ -1647,7 +1649,7 @@ int ath_reset(struct ath_softc *sc, bool retry_tx)
* that changes the channel so update any state that
* might change as a result.
*/
ath_setcurmode(sc, &hw->conf);
ath_cache_conf_rate(sc, &hw->conf);

ath_update_txpow(sc);

Expand Down Expand Up @@ -1944,7 +1946,7 @@ static int ath9k_start(struct ieee80211_hw *hw)
!sc->sc_config.swBeaconProcess)
sc->sc_imask |= ATH9K_INT_TIM;

ath_setcurmode(sc, &hw->conf);
ath_cache_conf_rate(sc, &hw->conf);

sc->sc_flags &= ~SC_OP_INVALID;

Expand Down

0 comments on commit c509864

Please sign in to comment.