|
@@ -1789,10 +1789,10 @@ static void rt61pci_write_tx_desc(struct queue_entry *entry,
|
|
* Start writing the descriptor words.
|
|
* Start writing the descriptor words.
|
|
*/
|
|
*/
|
|
rt2x00_desc_read(txd, 1, &word);
|
|
rt2x00_desc_read(txd, 1, &word);
|
|
- rt2x00_set_field32(&word, TXD_W1_HOST_Q_ID, txdesc->qid);
|
|
|
|
- rt2x00_set_field32(&word, TXD_W1_AIFSN, txdesc->aifs);
|
|
|
|
- rt2x00_set_field32(&word, TXD_W1_CWMIN, txdesc->cw_min);
|
|
|
|
- rt2x00_set_field32(&word, TXD_W1_CWMAX, txdesc->cw_max);
|
|
|
|
|
|
+ rt2x00_set_field32(&word, TXD_W1_HOST_Q_ID, entry->queue->qid);
|
|
|
|
+ rt2x00_set_field32(&word, TXD_W1_AIFSN, entry->queue->aifs);
|
|
|
|
+ rt2x00_set_field32(&word, TXD_W1_CWMIN, entry->queue->cw_min);
|
|
|
|
+ rt2x00_set_field32(&word, TXD_W1_CWMAX, entry->queue->cw_max);
|
|
rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset);
|
|
rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset);
|
|
rt2x00_set_field32(&word, TXD_W1_HW_SEQUENCE,
|
|
rt2x00_set_field32(&word, TXD_W1_HW_SEQUENCE,
|
|
test_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags));
|
|
test_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags));
|
|
@@ -1820,7 +1820,7 @@ static void rt61pci_write_tx_desc(struct queue_entry *entry,
|
|
rt2x00_set_field32(&word, TXD_W5_WAITING_DMA_DONE_INT, 1);
|
|
rt2x00_set_field32(&word, TXD_W5_WAITING_DMA_DONE_INT, 1);
|
|
rt2x00_desc_write(txd, 5, word);
|
|
rt2x00_desc_write(txd, 5, word);
|
|
|
|
|
|
- if (txdesc->qid != QID_BEACON) {
|
|
|
|
|
|
+ if (entry->queue->qid != QID_BEACON) {
|
|
rt2x00_desc_read(txd, 6, &word);
|
|
rt2x00_desc_read(txd, 6, &word);
|
|
rt2x00_set_field32(&word, TXD_W6_BUFFER_PHYSICAL_ADDRESS,
|
|
rt2x00_set_field32(&word, TXD_W6_BUFFER_PHYSICAL_ADDRESS,
|
|
skbdesc->skb_dma);
|
|
skbdesc->skb_dma);
|
|
@@ -1866,8 +1866,8 @@ static void rt61pci_write_tx_desc(struct queue_entry *entry,
|
|
* Register descriptor details in skb frame descriptor.
|
|
* Register descriptor details in skb frame descriptor.
|
|
*/
|
|
*/
|
|
skbdesc->desc = txd;
|
|
skbdesc->desc = txd;
|
|
- skbdesc->desc_len =
|
|
|
|
- (txdesc->qid == QID_BEACON) ? TXINFO_SIZE : TXD_DESC_SIZE;
|
|
|
|
|
|
+ skbdesc->desc_len = (entry->queue->qid == QID_BEACON) ? TXINFO_SIZE :
|
|
|
|
+ TXD_DESC_SIZE;
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|