diff options
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/rc.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/xmit.c | 2 |
3 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index 7d9a263ea0a7..756604485532 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"); |
diff --git a/drivers/net/wireless/ath9k/rc.c b/drivers/net/wireless/ath9k/rc.c index 1b71b934bb5e..0686a7c9ced4 100644 --- a/drivers/net/wireless/ath9k/rc.c +++ b/drivers/net/wireless/ath9k/rc.c | |||
@@ -875,7 +875,7 @@ static void ath_rc_ratefind(struct ath_softc *sc, | |||
875 | * above conditions. | 875 | * above conditions. |
876 | */ | 876 | */ |
877 | if ((sc->hw->conf.channel->band == IEEE80211_BAND_2GHZ) && | 877 | if ((sc->hw->conf.channel->band == IEEE80211_BAND_2GHZ) && |
878 | (sc->hw->conf.ht.enabled)) { | 878 | (conf_is_ht(&sc->hw->conf))) { |
879 | u8 dot11rate = rate_table->info[rix].dot11rate; | 879 | u8 dot11rate = rate_table->info[rix].dot11rate; |
880 | u8 phy = rate_table->info[rix].phy; | 880 | u8 phy = rate_table->info[rix].phy; |
881 | if (i == 4 && | 881 | if (i == 4 && |
@@ -1511,7 +1511,7 @@ static void ath_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta, | |||
1511 | tx_info, &is_probe, false); | 1511 | tx_info, &is_probe, false); |
1512 | 1512 | ||
1513 | /* Check if aggregation has to be enabled for this tid */ | 1513 | /* Check if aggregation has to be enabled for this tid */ |
1514 | if (hw->conf.ht.enabled) { | 1514 | if (conf_is_ht(&hw->conf)) { |
1515 | if (ieee80211_is_data_qos(fc)) { | 1515 | if (ieee80211_is_data_qos(fc)) { |
1516 | u8 *qc, tid; | 1516 | u8 *qc, tid; |
1517 | struct ath_node *an; | 1517 | struct ath_node *an; |
diff --git a/drivers/net/wireless/ath9k/xmit.c b/drivers/net/wireless/ath9k/xmit.c index e28889bc0ac5..9e910f7a2f36 100644 --- a/drivers/net/wireless/ath9k/xmit.c +++ b/drivers/net/wireless/ath9k/xmit.c | |||
@@ -1690,7 +1690,7 @@ static int ath_tx_setup_buffer(struct ath_softc *sc, struct ath_buf *bf, | |||
1690 | (sc->sc_flags & SC_OP_PREAMBLE_SHORT) ? | 1690 | (sc->sc_flags & SC_OP_PREAMBLE_SHORT) ? |
1691 | (bf->bf_state.bf_type |= BUF_SHORT_PREAMBLE) : | 1691 | (bf->bf_state.bf_type |= BUF_SHORT_PREAMBLE) : |
1692 | (bf->bf_state.bf_type &= ~BUF_SHORT_PREAMBLE); | 1692 | (bf->bf_state.bf_type &= ~BUF_SHORT_PREAMBLE); |
1693 | (sc->hw->conf.ht.enabled && !is_pae(skb) && | 1693 | (conf_is_ht(&sc->hw->conf) && !is_pae(skb) && |
1694 | (tx_info->flags & IEEE80211_TX_CTL_AMPDU)) ? | 1694 | (tx_info->flags & IEEE80211_TX_CTL_AMPDU)) ? |
1695 | (bf->bf_state.bf_type |= BUF_HT) : | 1695 | (bf->bf_state.bf_type |= BUF_HT) : |
1696 | (bf->bf_state.bf_type &= ~BUF_HT); | 1696 | (bf->bf_state.bf_type &= ~BUF_HT); |