diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-08-01 12:15:22 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-08-01 12:15:22 +0000 |
commit | d3f4416d582cbfd570e97d2dccc9ef806c3d3b36 (patch) | |
tree | cef8d84d276a60c8b5d7eec4b4b367d0c8d26c0b | |
parent | a1e19186fa70e8bc918d825e31a50259ea8082fd (diff) | |
download | upstream-d3f4416d582cbfd570e97d2dccc9ef806c3d3b36.tar.gz upstream-d3f4416d582cbfd570e97d2dccc9ef806c3d3b36.tar.bz2 upstream-d3f4416d582cbfd570e97d2dccc9ef806c3d3b36.zip |
ath9k: prevent the aggregation code from sending packets to sleeping stations - should fix some latency issues
SVN-Revision: 27861
-rw-r--r-- | package/mac80211/patches/560-ath9k_ps_tx_aggr_fix.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/package/mac80211/patches/560-ath9k_ps_tx_aggr_fix.patch b/package/mac80211/patches/560-ath9k_ps_tx_aggr_fix.patch new file mode 100644 index 0000000000..666b002259 --- /dev/null +++ b/package/mac80211/patches/560-ath9k_ps_tx_aggr_fix.patch @@ -0,0 +1,22 @@ +--- a/drivers/net/wireless/ath/ath9k/xmit.c ++++ b/drivers/net/wireless/ath/ath9k/xmit.c +@@ -550,7 +550,8 @@ static void ath_tx_complete_aggr(struct + if (clear_filter) + tid->ac->clear_ps_filter = true; + list_splice(&bf_pending, &tid->buf_q); +- ath_tx_queue_tid(txq, tid); ++ if (!an->sleeping) ++ ath_tx_queue_tid(txq, tid); + spin_unlock_bh(&txq->axq_lock); + } + +@@ -1410,7 +1411,8 @@ static void ath_tx_send_ampdu(struct ath + */ + TX_STAT_INC(txctl->txq->axq_qnum, a_queued_sw); + list_add_tail(&bf->list, &tid->buf_q); +- ath_tx_queue_tid(txctl->txq, tid); ++ if (!txctl->an || !txctl->an->sleeping) ++ ath_tx_queue_tid(txctl->txq, tid); + return; + } + |