aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/main.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-09-14 02:04:44 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-07 16:39:29 -0400
commit25c56eec92b15fdec5be96fa1303dac3443200ae (patch)
tree950fa4d2d0afcc6499de218a84a9e3b4da9c71d7 /drivers/net/wireless/ath/ath9k/main.c
parent6420014ca4a6b0e853c9a19a8649d93682a5bdac (diff)
ath9k: remove ath9k_ht_macmode
This is used just to determine how to program the MAC, either for 20 MHz operation of 40 MHz so just use conf_is_ht40() Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 7906b796dea9..e9aac3cbd4de 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -299,6 +299,7 @@ int ath_set_channel(struct ath_softc *sc, struct ieee80211_hw *hw,
299{ 299{
300 struct ath_hw *ah = sc->sc_ah; 300 struct ath_hw *ah = sc->sc_ah;
301 struct ath_common *common = ath9k_hw_common(ah); 301 struct ath_common *common = ath9k_hw_common(ah);
302 struct ieee80211_conf *conf = &common->hw->conf;
302 bool fastcc = true, stopped; 303 bool fastcc = true, stopped;
303 struct ieee80211_channel *channel = hw->conf.channel; 304 struct ieee80211_channel *channel = hw->conf.channel;
304 int r; 305 int r;
@@ -329,9 +330,9 @@ int ath_set_channel(struct ath_softc *sc, struct ieee80211_hw *hw,
329 fastcc = false; 330 fastcc = false;
330 331
331 ath_print(common, ATH_DBG_CONFIG, 332 ath_print(common, ATH_DBG_CONFIG,
332 "(%u MHz) -> (%u MHz), chanwidth: %d\n", 333 "(%u MHz) -> (%u MHz), conf_is_ht40: %d\n",
333 sc->sc_ah->curchan->channel, 334 sc->sc_ah->curchan->channel,
334 channel->center_freq, sc->tx_chan_width); 335 channel->center_freq, conf_is_ht40(conf));
335 336
336 spin_lock_bh(&sc->sc_resetlock); 337 spin_lock_bh(&sc->sc_resetlock);
337 338
@@ -2191,15 +2192,9 @@ void ath9k_update_ichannel(struct ath_softc *sc, struct ieee80211_hw *hw,
2191 ichan->channelFlags = CHANNEL_5GHZ | CHANNEL_OFDM; 2192 ichan->channelFlags = CHANNEL_5GHZ | CHANNEL_OFDM;
2192 } 2193 }
2193 2194
2194 sc->tx_chan_width = ATH9K_HT_MACMODE_20; 2195 if (conf_is_ht(conf))
2195
2196 if (conf_is_ht(conf)) {
2197 if (conf_is_ht40(conf))
2198 sc->tx_chan_width = ATH9K_HT_MACMODE_2040;
2199
2200 ichan->chanmode = ath_get_extchanmode(sc, chan, 2196 ichan->chanmode = ath_get_extchanmode(sc, chan,
2201 conf->channel_type); 2197 conf->channel_type);
2202 }
2203} 2198}
2204 2199
2205/**********************/ 2200/**********************/