This patch fixes a problem were frames - destined for
after-DTIM delivery - would just skip the waiting stage.
However, DELAYED_TX is not enabled by default. So, only
the few people who use a custom, non-standard firmware
will be affected.
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
super->s.cnt = 1;
hide_super(desc);
-#ifdef CONFIG_CARL9170FW_DELAYED_TX
- if (!queue_empty(&fw.wlan.tx_queue[super->s.queue])) {
- dma_put(&fw.wlan.tx_delay[super->s.queue], desc);
- return;
- }
-#endif /* CONFIG_CARL9170FW_DELAYED_TX */
-
#ifdef CONFIG_CARL9170FW_CAB_QUEUE
if (unlikely(super->s.cab)) {
fw.wlan.cab_queue_len[super->s.vif_id]++;
}
#endif /* CONFIG_CARL9170FW_CAB_QUEUE */
+#ifdef CONFIG_CARL9170FW_DELAYED_TX
+ if (!queue_empty(&fw.wlan.tx_queue[super->s.queue])) {
+ dma_put(&fw.wlan.tx_delay[super->s.queue], desc);
+ return;
+ }
+#endif /* CONFIG_CARL9170FW_DELAYED_TX */
+
_wlan_tx(desc);
}