From: Nikolay Martynov Date: Mon, 21 Nov 2011 22:32:06 +0000 (-0500) Subject: ath9k: improve ath_tx_aggr_stop to avoid TID stuck in cleanup state X-Git-Tag: v3.3-rc1~182^2~261^2~141 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4eb287a4048e4a2cb0400a6d972d97739ec8c799;p=pandora-kernel.git ath9k: improve ath_tx_aggr_stop to avoid TID stuck in cleanup state When tx agg is being stopped TID is flushed using ath_tx_flush_tid. It is possible that ath_tx_flush_tid completelly flushes TID (if all packets in this TID have already been retried). If this happened ath_tx_aggr_stop would leave TID in cleanup state permanently. Fix this by making ath_tx_flush_tid remove AGGR_ADDBA_COMPLETE and AGGR_CLEANUP flags from TID status if TID is empty. Signed-off-by: Nikolay Martynov Signed-off-by: John W. Linville --- Reading git-diff-tree failed