]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ath9k_hw: remove pCap->tx_triglevel_max
authorFelix Fietkau <nbd@openwrt.org>
Wed, 23 Mar 2011 19:57:33 +0000 (20:57 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 30 Mar 2011 18:15:21 +0000 (14:15 -0400)
It has the same purpose (and value) as ah->config.max_txtrig_level

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/xmit.c

index a2509dc5e87e85408800fa3c9032be2900ee2a7b..298f4d6cbdbdf83e58ddbcca25ed5e6c844303bf 100644 (file)
@@ -1880,11 +1880,6 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah)
        else
                pCap->hw_caps &= ~ATH9K_HW_CAP_HT;
 
-       if (AR_SREV_9285(ah) || AR_SREV_9271(ah))
-               pCap->tx_triglevel_max = MAX_TX_FIFO_THRESHOLD >> 1;
-       else
-               pCap->tx_triglevel_max = MAX_TX_FIFO_THRESHOLD;
-
        if (AR_SREV_9271(ah))
                pCap->num_gpio_pins = AR9271_NUM_GPIO;
        else if (AR_DEVID_7010(ah))
index a0243b810a04796d439c6dbeb3169316c17d1abd..4cc320bdf0aa5afb941d1ff54f57e07377badb7b 100644 (file)
@@ -197,7 +197,6 @@ struct ath9k_hw_capabilities {
        u8 rx_chainmask;
        u8 max_txchains;
        u8 max_rxchains;
-       u16 tx_triglevel_max;
        u8 num_gpio_pins;
        u8 rx_hp_qdepth;
        u8 rx_lp_qdepth;
index f916f088b5539a523e72a4999ffeb1ff24472053..5943bdc4c8f9b9bd95c0e453b3d829936ee3aa81 100644 (file)
@@ -1980,7 +1980,7 @@ static void ath_tx_rc_status(struct ath_softc *sc, struct ath_buf *bf,
                if (ieee80211_is_data(hdr->frame_control) &&
                    (ts->ts_flags & (ATH9K_TX_DATA_UNDERRUN |
                                     ATH9K_TX_DELIM_UNDERRUN)) &&
-                   ah->tx_trig_level >= sc->sc_ah->caps.tx_triglevel_max)
+                   ah->tx_trig_level >= sc->sc_ah->config.max_txtrig_level)
                        tx_info->status.rates[tx_rateindex].count =
                                hw->max_rate_tries;
        }