diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2010-11-04 15:38:15 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-15 13:25:59 -0500 |
commit | 2b23cdaa3b0e9567597563e5a7a5103ecda447f0 (patch) | |
tree | 3aa87f486d324c381a9e38dc178939cd1b7d6793 /drivers/net/wireless/rt2x00/rt2500usb.c | |
parent | 08e5310028359de2daaa39cd10e9ca493c51792b (diff) |
rt2x00: Reduce tx descriptor size
The tx descriptor values qid, cw_min, cw_max and aifs are directly
accessible through the tx entry struct. So there's no need to copy
them into the tx descriptor and passing them to the indiviual drivers.
Instead we can just get the correct value from the tx entry.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index 725ae34f1815..f20ab79b2817 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -1081,9 +1081,9 @@ static void rt2500usb_write_tx_desc(struct queue_entry *entry, | |||
1081 | 1081 | ||
1082 | rt2x00_desc_read(txd, 1, &word); | 1082 | rt2x00_desc_read(txd, 1, &word); |
1083 | rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset); | 1083 | rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset); |
1084 | rt2x00_set_field32(&word, TXD_W1_AIFS, txdesc->aifs); | 1084 | rt2x00_set_field32(&word, TXD_W1_AIFS, entry->queue->aifs); |
1085 | rt2x00_set_field32(&word, TXD_W1_CWMIN, txdesc->cw_min); | 1085 | rt2x00_set_field32(&word, TXD_W1_CWMIN, entry->queue->cw_min); |
1086 | rt2x00_set_field32(&word, TXD_W1_CWMAX, txdesc->cw_max); | 1086 | rt2x00_set_field32(&word, TXD_W1_CWMAX, entry->queue->cw_max); |
1087 | rt2x00_desc_write(txd, 1, word); | 1087 | rt2x00_desc_write(txd, 1, word); |
1088 | 1088 | ||
1089 | rt2x00_desc_read(txd, 2, &word); | 1089 | rt2x00_desc_read(txd, 2, &word); |