From: Kalle Valo Date: Mon, 21 Nov 2011 17:37:34 +0200 Subject: [ath9k-devel] [PATCH] ath9k: Improve ath_tx_aggr_stop to avoid TID stuck in cleanup state. In-Reply-To: <1321684883-6870-1-git-send-email-mar.kolya@gmail.com> (Nikolay Martynov's message of "Sat, 19 Nov 2011 01:41:23 -0500") References: <1321684883-6870-1-git-send-email-mar.kolya@gmail.com> Message-ID: <87r511ij0h.fsf@purkki.adurom.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Nikolay Martynov writes: > From: kolya Please use your full name here. > 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. And word wrap your commits to 72 chars or so. -- Kalle Valo