Re: [ath9k-devel] [PATCH] ath9k: Improve ath_tx_aggr_stop to avoid TID stuck in cleanup state.

2011-11-21 Thread Kalle Valo
Nikolay Martynov mar.ko...@gmail.com writes: From: kolya mar.ko...@gmail.com 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

Re: [ath9k-devel] [PATCH] ath9k: Improve ath_tx_aggr_stop to avoid TID stuck in cleanup state.

2011-11-19 Thread Mohammed Shafi
Hi Nikolay, On Sat, Nov 19, 2011 at 12:11 PM, Nikolay Martynov mar.ko...@gmail.com wrote: From: kolya mar.ko...@gmail.com  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

Re: [ath9k-devel] [PATCH] ath9k: Improve ath_tx_aggr_stop to avoid TID stuck in cleanup state.

2011-11-19 Thread Nikolay Martynov
Hi, 2011/11/19 Mohammed Shafi shafi.wirel...@gmail.com:        }        spin_unlock_bh(txq-axq_lock); + +       if (tid-baw_head == tid-baw_tail) { +               tid-state = ~AGGR_ADDBA_COMPLETE; +               tid-state = ~AGGR_CLEANUP; +       } should this in be protected by