1 Merged from madwifi trunk r3551, r3552
3 Index: madwifi-trunk-r3314/ath/if_ath.c
4 ===================================================================
5 --- madwifi-trunk-r3314.orig/ath/if_ath.c
6 +++ madwifi-trunk-r3314/ath/if_ath.c
11 + /* We make sure we don't remove the TX descriptor on
12 + * which the HW is pointing since it contains the
13 + * ds_link field, except if this is the last TX
14 + * descriptor in the queue */
16 + if ((txq->axq_depth > 1) &&
17 + (bf->bf_daddr == ath_hal_gettxbuf(ah, txq->axq_qnum))) {
18 + ATH_TXQ_UNLOCK_IRQ_EARLY(txq);
22 ATH_TXQ_REMOVE_HEAD(txq, bf_list);
23 ATH_TXQ_UNLOCK_IRQ(txq);
25 Index: madwifi-trunk-r3314/ath/if_athvar.h
26 ===================================================================
27 --- madwifi-trunk-r3314.orig/ath/if_athvar.h
28 +++ madwifi-trunk-r3314/ath/if_athvar.h
31 #define ATH_TXQ_REMOVE_HEAD(_tq, _field) do { \
32 STAILQ_REMOVE_HEAD(&(_tq)->axq_q, _field); \
33 - (_tq)->axq_depth--; \
34 + if (--(_tq)->axq_depth <= 0) \
35 + (_tq)->axq_link = NULL; \
37 /* move buffers from MCASTQ to CABQ */
38 #define ATH_TXQ_MOVE_MCASTQ(_tqs,_tqd) do { \