aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2400pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2400pci.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2400pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c
index 08a4789fc2d8..6f898913492a 100644
--- a/drivers/net/wireless/rt2x00/rt2400pci.c
+++ b/drivers/net/wireless/rt2x00/rt2400pci.c
@@ -1017,8 +1017,8 @@ static void rt2400pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1017 rt2x00_desc_write(entry_priv->desc, 1, word); 1017 rt2x00_desc_write(entry_priv->desc, 1, word);
1018 1018
1019 rt2x00_desc_read(txd, 2, &word); 1019 rt2x00_desc_read(txd, 2, &word);
1020 rt2x00_set_field32(&word, TXD_W2_BUFFER_LENGTH, skb->len); 1020 rt2x00_set_field32(&word, TXD_W2_BUFFER_LENGTH, txdesc->length);
1021 rt2x00_set_field32(&word, TXD_W2_DATABYTE_COUNT, skb->len); 1021 rt2x00_set_field32(&word, TXD_W2_DATABYTE_COUNT, txdesc->length);
1022 rt2x00_desc_write(txd, 2, word); 1022 rt2x00_desc_write(txd, 2, word);
1023 1023
1024 rt2x00_desc_read(txd, 3, &word); 1024 rt2x00_desc_read(txd, 3, &word);