aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt61pci.c
diff options
context:
space:
mode:
authorGertjan van Wingerde <gwingerde@gmail.com>2010-05-03 16:43:05 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-05-04 13:24:23 -0400
commitdf624ca5413d84b3082246de384823fbe8fed6e4 (patch)
tree8be31612bbe529ca29ce87669786fb7a2baa28f8 /drivers/net/wireless/rt2x00/rt61pci.c
parenta21ee724034b21d51d74eec8e426702a627eb465 (diff)
rt2x00: Register frame length in TX entry descriptor instead of L2PAD.
And use it consistently in the chipset drivers. Preparation for further clean ups. Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt61pci.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index ac69dbe5719b..8099ecaf8694 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -1808,7 +1808,8 @@ static void rt61pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1808 1808
1809 if (skbdesc->desc_len > TXINFO_SIZE) { 1809 if (skbdesc->desc_len > TXINFO_SIZE) {
1810 rt2x00_desc_read(txd, 11, &word); 1810 rt2x00_desc_read(txd, 11, &word);
1811 rt2x00_set_field32(&word, TXD_W11_BUFFER_LENGTH0, skb->len); 1811 rt2x00_set_field32(&word, TXD_W11_BUFFER_LENGTH0,
1812 txdesc->length);
1812 rt2x00_desc_write(txd, 11, word); 1813 rt2x00_desc_write(txd, 11, word);
1813 } 1814 }
1814 1815
@@ -1831,7 +1832,7 @@ static void rt61pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1831 rt2x00_set_field32(&word, TXD_W0_KEY_TABLE, 1832 rt2x00_set_field32(&word, TXD_W0_KEY_TABLE,
1832 test_bit(ENTRY_TXD_ENCRYPT_PAIRWISE, &txdesc->flags)); 1833 test_bit(ENTRY_TXD_ENCRYPT_PAIRWISE, &txdesc->flags));
1833 rt2x00_set_field32(&word, TXD_W0_KEY_INDEX, txdesc->key_idx); 1834 rt2x00_set_field32(&word, TXD_W0_KEY_INDEX, txdesc->key_idx);
1834 rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, skb->len); 1835 rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, txdesc->length);
1835 rt2x00_set_field32(&word, TXD_W0_BURST, 1836 rt2x00_set_field32(&word, TXD_W0_BURST,
1836 test_bit(ENTRY_TXD_BURST, &txdesc->flags)); 1837 test_bit(ENTRY_TXD_BURST, &txdesc->flags));
1837 rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, txdesc->cipher); 1838 rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, txdesc->cipher);