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>
This commit is contained in:

committed by
John W. Linville

parent
c9e27d94f5
commit
ecf70441a3
@@ -1690,7 +1690,7 @@ static int ath_tx_setup_buffer(struct ath_softc *sc, struct ath_buf *bf,
|
||||
(sc->sc_flags & SC_OP_PREAMBLE_SHORT) ?
|
||||
(bf->bf_state.bf_type |= BUF_SHORT_PREAMBLE) :
|
||||
(bf->bf_state.bf_type &= ~BUF_SHORT_PREAMBLE);
|
||||
(sc->hw->conf.ht.enabled && !is_pae(skb) &&
|
||||
(conf_is_ht(&sc->hw->conf) && !is_pae(skb) &&
|
||||
(tx_info->flags & IEEE80211_TX_CTL_AMPDU)) ?
|
||||
(bf->bf_state.bf_type |= BUF_HT) :
|
||||
(bf->bf_state.bf_type &= ~BUF_HT);
|
||||
|
Reference in New Issue
Block a user