diff options
Diffstat (limited to 'drivers/net/wireless/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index 8929b02aa22..5e9a3e19da4 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -2117,8 +2117,7 @@ static int ath9k_config(struct ieee80211_hw *hw, u32 changed) | |||
2117 | struct ieee80211_conf *conf = &hw->conf; | 2117 | struct ieee80211_conf *conf = &hw->conf; |
2118 | 2118 | ||
2119 | mutex_lock(&sc->mutex); | 2119 | mutex_lock(&sc->mutex); |
2120 | if (changed & (IEEE80211_CONF_CHANGE_CHANNEL | | 2120 | if (changed & IEEE80211_CONF_CHANGE_CHANNEL) { |
2121 | IEEE80211_CONF_CHANGE_HT)) { | ||
2122 | struct ieee80211_channel *curchan = hw->conf.channel; | 2121 | struct ieee80211_channel *curchan = hw->conf.channel; |
2123 | int pos; | 2122 | int pos; |
2124 | 2123 | ||
@@ -2144,7 +2143,7 @@ static int ath9k_config(struct ieee80211_hw *hw, u32 changed) | |||
2144 | 2143 | ||
2145 | sc->sc_ah->ah_channels[pos].chanmode = | 2144 | sc->sc_ah->ah_channels[pos].chanmode = |
2146 | ath_get_extchanmode(sc, curchan, | 2145 | ath_get_extchanmode(sc, curchan, |
2147 | conf->ht.channel_type); | 2146 | conf->channel_type); |
2148 | } | 2147 | } |
2149 | 2148 | ||
2150 | ath_update_chainmask(sc, conf_is_ht(conf)); | 2149 | ath_update_chainmask(sc, conf_is_ht(conf)); |