+ struct dma_queue *queue = &fw.wlan.tx_queue[qidx];
+ struct dma_desc *iter;
+
+ /*
+ * walk up to the last descriptor which hasn't been
+ * processed by the hardware before it bailed out
+ * due to a TX error.
+ * Note: if there was no more "pending" frame
+ * in the queue, it iter will be on the
+ * queue->terminator (which is fine)
+ */
+ __for_each_desc_bits(iter, queue, AR9170_OWN_BITS_SW);
+
+ set_wlan_txq_dma_addr(qidx, ((uint32_t) iter) | 1);
+ wlan_trigger(BIT(qidx));