Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236767
b: refs/heads/master
c: 4b3721c
h: refs/heads/master
i:
  236765: 8d9e0bd
  236763: 4efa8f9
  236759: cb195fa
  236751: 5b20287
  236735: e16fb19
v: v3
  • Loading branch information
Bruno Randolf authored and John W. Linville committed Jan 21, 2011
1 parent cb14b04 commit d89b233
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 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: 75f9569bfc4f3b138d196091b85c91678183520e
refs/heads/master: 4b3721ceb3c1f9b032c6eeb108e44692efbcacef
18 changes: 0 additions & 18 deletions trunk/drivers/net/wireless/ath/ath5k/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,18 +445,6 @@ ath5k_chan_set(struct ath5k_softc *sc, struct ieee80211_channel *chan)
return ath5k_reset(sc, chan, true);
}

static void
ath5k_setcurmode(struct ath5k_softc *sc, unsigned int mode)
{
sc->curmode = mode;

if (mode == AR5K_MODE_11A) {
sc->curband = &sc->sbands[IEEE80211_BAND_5GHZ];
} else {
sc->curband = &sc->sbands[IEEE80211_BAND_2GHZ];
}
}

struct ath_vif_iter_data {
const u8 *hw_macaddr;
u8 mask[ETH_ALEN];
Expand Down Expand Up @@ -2778,12 +2766,6 @@ ath5k_init(struct ieee80211_hw *hw)
goto err;
}

/* NB: setup here so ath5k_rate_update is happy */
if (test_bit(AR5K_MODE_11A, ah->ah_modes))
ath5k_setcurmode(sc, AR5K_MODE_11A);
else
ath5k_setcurmode(sc, AR5K_MODE_11B);

/*
* Allocate tx+rx descriptors and populate the lists.
*/
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/wireless/ath/ath5k/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ struct ath5k_softc {
#define ATH_STAT_STARTED 4 /* opened & irqs enabled */

unsigned int filter_flags; /* HW flags, AR5K_RX_FILTER_* */
unsigned int curmode; /* current phy mode */
struct ieee80211_channel *curchan; /* current h/w channel */

u16 nvifs;
Expand Down

0 comments on commit d89b233

Please sign in to comment.