]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
rt2x00: Use IEEE80211_TX_CTL_MORE_FRAMES flag
authorIvo van Doorn <ivdoorn@gmail.com>
Sat, 8 Aug 2009 21:53:26 +0000 (23:53 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Aug 2009 13:13:52 +0000 (09:13 -0400)
Check the IEEE80211_TX_CTL_MORE_FRAMES flag to help determining
if the DMA queue should be kicked. At the moment this is combined
with the ieee80211_has_morefrags() but we might remove that later.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00queue.c

index 44e5b3279ca76e4e515eb7926f65562e29ad8bbb..65435c9fe4bcee7a39fa3d1ad7576a5c49c8f848 100644 (file)
@@ -324,7 +324,8 @@ static void rt2x00queue_create_tx_descriptor(struct queue_entry *entry,
        /*
         * Check if more fragments are pending
         */
-       if (ieee80211_has_morefrags(hdr->frame_control)) {
+       if (ieee80211_has_morefrags(hdr->frame_control) ||
+           (tx_info->flags & IEEE80211_TX_CTL_MORE_FRAMES)) {
                __set_bit(ENTRY_TXD_BURST, &txdesc->flags);
                __set_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags);
        }