ath9k: fix software retry counter tracking - should fix 802.11n stability issues
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 580-ath9k_fix_aggr_retries.patch
1 --- a/drivers/net/wireless/ath/ath9k/xmit.c
2 +++ b/drivers/net/wireless/ath/ath9k/xmit.c
3 @@ -250,11 +250,11 @@ static void ath_tid_drain(struct ath_sof
4 static void ath_tx_set_retry(struct ath_softc *sc, struct ath_txq *txq,
5 struct sk_buff *skb)
6 {
7 - struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb);
8 + struct ath_frame_info *fi = get_frame_info(skb);
9 struct ieee80211_hdr *hdr;
10
11 TX_STAT_INC(txq->axq_qnum, a_retries);
12 - if (tx_info->control.rates[4].count++ > 0)
13 + if (fi->retries++ > 0)
14 return;
15
16 hdr = (struct ieee80211_hdr *)skb->data;