aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index 547fa33e99dd..5e08541958cc 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -1531,9 +1531,11 @@ static void rt61pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1531 rt2x00_set_field32(&word, TXD_W5_WAITING_DMA_DONE_INT, 1); 1531 rt2x00_set_field32(&word, TXD_W5_WAITING_DMA_DONE_INT, 1);
1532 rt2x00_desc_write(txd, 5, word); 1532 rt2x00_desc_write(txd, 5, word);
1533 1533
1534 rt2x00_desc_read(txd, 11, &word); 1534 if (skbdesc->desc_len > TXINFO_SIZE) {
1535 rt2x00_set_field32(&word, TXD_W11_BUFFER_LENGTH0, skbdesc->data_len); 1535 rt2x00_desc_read(txd, 11, &word);
1536 rt2x00_desc_write(txd, 11, word); 1536 rt2x00_set_field32(&word, TXD_W11_BUFFER_LENGTH0, skbdesc->data_len);
1537 rt2x00_desc_write(txd, 11, word);
1538 }
1537 1539
1538 rt2x00_desc_read(txd, 0, &word); 1540 rt2x00_desc_read(txd, 0, &word);
1539 rt2x00_set_field32(&word, TXD_W0_OWNER_NIC, 1); 1541 rt2x00_set_field32(&word, TXD_W0_OWNER_NIC, 1);