carl9170 firmware: get rid of nested wlan_tx calls
authorChristian Lamparter <chunkeey@googlemail.com>
Fri, 23 Dec 2011 17:15:01 +0000 (18:15 +0100)
committerChristian Lamparter <chunkeey@googlemail.com>
Fri, 23 Dec 2011 17:16:26 +0000 (18:16 +0100)
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carlfw/src/wlan.c

index 26a2425f5afdd6e78c72ff484dab6378eb050739..bae584f02123e8da948428f0ade04733d8c5ea29 100644 (file)
@@ -343,8 +343,6 @@ static void _wlan_tx(struct dma_desc *desc)
                            get(AR9170_MAC_REG_AMPDU_FACTOR),
                            8 << super->s.ampdu_factor));
        }
-
-       __wlan_tx(desc);
 }
 
 /* propagate transmission status back to the driver */
@@ -498,6 +496,7 @@ void __hot wlan_tx(struct dma_desc *desc)
 #endif /* CONFIG_CARL9170FW_CAB_QUEUE */
 
        _wlan_tx(desc);
+       __wlan_tx(desc);
        wlan_trigger(BIT(super->s.queue));
 }
 
@@ -759,6 +758,7 @@ void wlan_cab_flush_queue(const unsigned int vif)
 
                /* ready to roll! */
                _wlan_tx(desc);
+               __wlan_tx(desc);
                wlan_trigger(BIT(super->s.queue));
        }
 }