diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-01-06 23:39:25 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 15:09:24 -0800 |
commit | 042671040db95a896c5ca960b9b656692a787892 (patch) | |
tree | b96a4e931b65c912f2800b02480b14008125c01b /drivers/net/wireless/rt2x00/rt61pci.c | |
parent | 3867705bb773818b39e0ca8d02ccb71fb4d2ffb8 (diff) |
rt2x00: Store queue idx and entry idx in data_ring and data_entry
Store the queue idx inside structure data_ring
Store the entry idx inside structure data_entry
This saves us a few calls to ARRAY_INDEX() which is now unused.
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/rt61pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index 1bbeed66c52..fc36320a5f1 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c @@ -1031,8 +1031,10 @@ static void rt61pci_init_txring(struct rt2x00_dev *rt2x00dev, const int queue) rt2x00_desc_write(txd, 1, word); rt2x00_desc_read(txd, 5, &word); - rt2x00_set_field32(&word, TXD_W5_PID_TYPE, queue); - rt2x00_set_field32(&word, TXD_W5_PID_SUBTYPE, i); + rt2x00_set_field32(&word, TXD_W5_PID_TYPE, + ring->queue_idx); + rt2x00_set_field32(&word, TXD_W5_PID_SUBTYPE, + ring->entry[i].entry_idx); rt2x00_desc_write(txd, 5, word); rt2x00_desc_read(txd, 6, &word); |