diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-30 22:23:35 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-30 22:23:35 +0000 |
commit | e477159e409b7f1e344790505f5e09b7f7df4ec1 (patch) | |
tree | eaa4c02287d274053b616ce229cae966c102ec20 /package/mac80211/patches/573-ath9k_fix_tx_flush_bar.patch | |
parent | 3802769ea14fe4e5b29c6c8eddee845dbe0cc8cf (diff) | |
download | mtk-20170518-e477159e409b7f1e344790505f5e09b7f7df4ec1.zip mtk-20170518-e477159e409b7f1e344790505f5e09b7f7df4ec1.tar.gz mtk-20170518-e477159e409b7f1e344790505f5e09b7f7df4ec1.tar.bz2 |
ath9k: add some more fixes to AP handling of buffered frames for powersave clients
SVN-Revision: 28344
Diffstat (limited to 'package/mac80211/patches/573-ath9k_fix_tx_flush_bar.patch')
-rw-r--r-- | package/mac80211/patches/573-ath9k_fix_tx_flush_bar.patch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/package/mac80211/patches/573-ath9k_fix_tx_flush_bar.patch b/package/mac80211/patches/573-ath9k_fix_tx_flush_bar.patch index c13f93b..a87151b 100644 --- a/package/mac80211/patches/573-ath9k_fix_tx_flush_bar.patch +++ b/package/mac80211/patches/573-ath9k_fix_tx_flush_bar.patch @@ -14,24 +14,24 @@ #define ATH9K_TX_PWRMGMT 0x02 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c -@@ -389,6 +389,7 @@ static void ath_tx_complete_aggr(struct +@@ -388,6 +388,7 @@ static void ath_tx_complete_aggr(struct + int nframes; u8 tidno; - bool clear_filter; int i, retries; + bool flush = !!(ts->ts_status & ATH9K_TX_FLUSH); skb = bf->bf_mpdu; hdr = (struct ieee80211_hdr *)skb->data; -@@ -483,6 +484,8 @@ static void ath_tx_complete_aggr(struct +@@ -482,6 +483,8 @@ static void ath_tx_complete_aggr(struct * the un-acked sub-frames */ txfail = 1; + } else if (flush) { + txpending = 1; } else if (fi->retries < ATH_MAX_SW_RETRIES) { - if (!(ts->ts_status & ATH9K_TXERR_FILT) && - !an->sleeping) -@@ -543,7 +546,8 @@ static void ath_tx_complete_aggr(struct + if (txok || !an->sleeping) + ath_tx_set_retry(sc, txq, bf->bf_mpdu, +@@ -540,7 +543,8 @@ static void ath_tx_complete_aggr(struct ath_tx_complete_buf(sc, bf, txq, &bf_head, @@ -41,7 +41,7 @@ sta); break; } -@@ -1447,6 +1451,7 @@ static void ath_drain_txq_list(struct at +@@ -1446,6 +1450,7 @@ static void ath_drain_txq_list(struct at struct ath_tx_status ts; memset(&ts, 0, sizeof(ts)); |