|
@@ -1808,7 +1808,8 @@ static void rt61pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
|
|
|
|
|
|
if (skbdesc->desc_len > TXINFO_SIZE) {
|
|
|
rt2x00_desc_read(txd, 11, &word);
|
|
|
- rt2x00_set_field32(&word, TXD_W11_BUFFER_LENGTH0, skb->len);
|
|
|
+ rt2x00_set_field32(&word, TXD_W11_BUFFER_LENGTH0,
|
|
|
+ txdesc->length);
|
|
|
rt2x00_desc_write(txd, 11, word);
|
|
|
}
|
|
|
|
|
@@ -1831,7 +1832,7 @@ static void rt61pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
|
|
|
rt2x00_set_field32(&word, TXD_W0_KEY_TABLE,
|
|
|
test_bit(ENTRY_TXD_ENCRYPT_PAIRWISE, &txdesc->flags));
|
|
|
rt2x00_set_field32(&word, TXD_W0_KEY_INDEX, txdesc->key_idx);
|
|
|
- rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, skb->len);
|
|
|
+ rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, txdesc->length);
|
|
|
rt2x00_set_field32(&word, TXD_W0_BURST,
|
|
|
test_bit(ENTRY_TXD_BURST, &txdesc->flags));
|
|
|
rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, txdesc->cipher);
|