aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2009-08-08 17:53:26 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-14 09:13:52 -0400
commit267e898755d7fc6249e26208e7ce97f415fd8c31 (patch)
tree92651c11ab81bbcf41760eb96707b352525fa549 /drivers/net/wireless/rt2x00
parentbdfa500b8b8ca87dfe7a311f569fe8b39746c299 (diff)
rt2x00: Use IEEE80211_TX_CTL_MORE_FRAMES flag
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>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00queue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c
index 44e5b3279ca7..65435c9fe4bc 100644
--- a/drivers/net/wireless/rt2x00/rt2x00queue.c
+++ b/drivers/net/wireless/rt2x00/rt2x00queue.c
@@ -324,7 +324,8 @@ static void rt2x00queue_create_tx_descriptor(struct queue_entry *entry,
324 /* 324 /*
325 * Check if more fragments are pending 325 * Check if more fragments are pending
326 */ 326 */
327 if (ieee80211_has_morefrags(hdr->frame_control)) { 327 if (ieee80211_has_morefrags(hdr->frame_control) ||
328 (tx_info->flags & IEEE80211_TX_CTL_MORE_FRAMES)) {
328 __set_bit(ENTRY_TXD_BURST, &txdesc->flags); 329 __set_bit(ENTRY_TXD_BURST, &txdesc->flags);
329 __set_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags); 330 __set_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags);
330 } 331 }