ath9k: add a few de-bloating and optimization patches
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 569-ath9k_remove_tx_triglevel_max.patch
1 --- a/drivers/net/wireless/ath/ath9k/hw.h
2 +++ b/drivers/net/wireless/ath/ath9k/hw.h
3 @@ -197,7 +197,6 @@ struct ath9k_hw_capabilities {
4 u8 rx_chainmask;
5 u8 max_txchains;
6 u8 max_rxchains;
7 - u16 tx_triglevel_max;
8 u8 num_gpio_pins;
9 u8 rx_hp_qdepth;
10 u8 rx_lp_qdepth;
11 --- a/drivers/net/wireless/ath/ath9k/xmit.c
12 +++ b/drivers/net/wireless/ath/ath9k/xmit.c
13 @@ -2059,7 +2059,7 @@ static void ath_tx_rc_status(struct ath_
14 if (ieee80211_is_data(hdr->frame_control) &&
15 (ts->ts_flags & (ATH9K_TX_DATA_UNDERRUN |
16 ATH9K_TX_DELIM_UNDERRUN)) &&
17 - ah->tx_trig_level >= sc->sc_ah->caps.tx_triglevel_max)
18 + ah->tx_trig_level >= sc->sc_ah->config.max_txtrig_level)
19 tx_info->status.rates[tx_rateindex].count =
20 hw->max_rate_tries;
21 }
22 --- a/drivers/net/wireless/ath/ath9k/hw.c
23 +++ b/drivers/net/wireless/ath/ath9k/hw.c
24 @@ -1889,11 +1889,6 @@ int ath9k_hw_fill_cap_info(struct ath_hw
25 else
26 pCap->hw_caps &= ~ATH9K_HW_CAP_HT;
27
28 - if (AR_SREV_9285(ah) || AR_SREV_9271(ah))
29 - pCap->tx_triglevel_max = MAX_TX_FIFO_THRESHOLD >> 1;
30 - else
31 - pCap->tx_triglevel_max = MAX_TX_FIFO_THRESHOLD;
32 -
33 if (AR_SREV_9271(ah))
34 pCap->num_gpio_pins = AR9271_NUM_GPIO;
35 else if (AR_DEVID_7010(ah))