aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/main.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2008-12-23 18:58:43 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:59:31 -0500
commitecf70441a3d53dd96cb1b454060fe39f9c3db301 (patch)
treeaaabbb86eeee05ba394f9d1f721d806c96e8dc61 /drivers/net/wireless/ath9k/main.c
parentc9e27d94f5fc726f88897914025619fbfc18b23c (diff)
ath9k: make use of conf_is_ht*() in the rest of the driver
Use shiny new conf_is_ht*() helpers, we can later remove ht.enabled if desired. Signed-off-by: Luis R. Rodriguez <lrodriguez@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.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c
index 7d9a263ea0a..75660448553 100644
--- a/drivers/net/wireless/ath9k/main.c
+++ b/drivers/net/wireless/ath9k/main.c
@@ -2132,9 +2132,8 @@ static int ath9k_config(struct ieee80211_hw *hw, u32 changed)
2132 (curchan->band == IEEE80211_BAND_2GHZ) ? 2132 (curchan->band == IEEE80211_BAND_2GHZ) ?
2133 CHANNEL_G : CHANNEL_A; 2133 CHANNEL_G : CHANNEL_A;
2134 2134
2135 if (conf->ht.enabled) { 2135 if (conf_is_ht(conf)) {
2136 if (conf->ht.channel_type == NL80211_CHAN_HT40PLUS || 2136 if (conf_is_ht40(conf))
2137 conf->ht.channel_type == NL80211_CHAN_HT40MINUS)
2138 sc->tx_chan_width = ATH9K_HT_MACMODE_2040; 2137 sc->tx_chan_width = ATH9K_HT_MACMODE_2040;
2139 2138
2140 sc->sc_ah->ah_channels[pos].chanmode = 2139 sc->sc_ah->ah_channels[pos].chanmode =
@@ -2142,7 +2141,7 @@ static int ath9k_config(struct ieee80211_hw *hw, u32 changed)
2142 conf->ht.channel_type); 2141 conf->ht.channel_type);
2143 } 2142 }
2144 2143
2145 ath_update_chainmask(sc, conf->ht.enabled); 2144 ath_update_chainmask(sc, conf_is_ht(conf));
2146 2145
2147 if (ath_set_channel(sc, &sc->sc_ah->ah_channels[pos]) < 0) { 2146 if (ath_set_channel(sc, &sc->sc_ah->ah_channels[pos]) < 0) {
2148 DPRINTF(sc, ATH_DBG_FATAL, "Unable to set channel\n"); 2147 DPRINTF(sc, ATH_DBG_FATAL, "Unable to set channel\n");