diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2010-11-04 15:37:22 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-15 13:25:56 -0500 |
commit | efd2f271e44c7ea011cdb0363d38f40338ab80d2 (patch) | |
tree | 492e4f0c41f0b6388b35a9817c1b22d5719b5342 /drivers/net/wireless/rt2x00/rt2400pci.c | |
parent | 961621abee08fde2328daf6f8000e1059e5205e9 (diff) |
rt2x00: Sync Tx and RX ring sizes with legacy drivers
All rt2x00 devices used the same Tx and Rx ring size (24 entries) till
now. Newer devices (like rt2800) can however make use of a larger TX and
RX ring due to 11n capabilities (AMPDUs of size 64 for example).
Hence, bring rt2x00 in sync with the legacy drivers and use the same TX
and RX ring sizes. Also remove the global defines RX_ENTRIES, TX_ENTRIES,
BEACON_ENTRIES and ATIM_ENTRIES and use per driver values.
That is 24 entries for rt2400pci, 32 entries for rt2500pci, rt2500usb,
rt61pci and rt73usb and 128 (RX) and 64 (TX) for rt2800pci and rt2800usb.
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/rt2400pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2400pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c index 4f420a9ec5dc..c94aa1e5d089 100644 --- a/drivers/net/wireless/rt2x00/rt2400pci.c +++ b/drivers/net/wireless/rt2x00/rt2400pci.c | |||
@@ -1640,28 +1640,28 @@ static const struct rt2x00lib_ops rt2400pci_rt2x00_ops = { | |||
1640 | }; | 1640 | }; |
1641 | 1641 | ||
1642 | static const struct data_queue_desc rt2400pci_queue_rx = { | 1642 | static const struct data_queue_desc rt2400pci_queue_rx = { |
1643 | .entry_num = RX_ENTRIES, | 1643 | .entry_num = 24, |
1644 | .data_size = DATA_FRAME_SIZE, | 1644 | .data_size = DATA_FRAME_SIZE, |
1645 | .desc_size = RXD_DESC_SIZE, | 1645 | .desc_size = RXD_DESC_SIZE, |
1646 | .priv_size = sizeof(struct queue_entry_priv_pci), | 1646 | .priv_size = sizeof(struct queue_entry_priv_pci), |
1647 | }; | 1647 | }; |
1648 | 1648 | ||
1649 | static const struct data_queue_desc rt2400pci_queue_tx = { | 1649 | static const struct data_queue_desc rt2400pci_queue_tx = { |
1650 | .entry_num = TX_ENTRIES, | 1650 | .entry_num = 24, |
1651 | .data_size = DATA_FRAME_SIZE, | 1651 | .data_size = DATA_FRAME_SIZE, |
1652 | .desc_size = TXD_DESC_SIZE, | 1652 | .desc_size = TXD_DESC_SIZE, |
1653 | .priv_size = sizeof(struct queue_entry_priv_pci), | 1653 | .priv_size = sizeof(struct queue_entry_priv_pci), |
1654 | }; | 1654 | }; |
1655 | 1655 | ||
1656 | static const struct data_queue_desc rt2400pci_queue_bcn = { | 1656 | static const struct data_queue_desc rt2400pci_queue_bcn = { |
1657 | .entry_num = BEACON_ENTRIES, | 1657 | .entry_num = 1, |
1658 | .data_size = MGMT_FRAME_SIZE, | 1658 | .data_size = MGMT_FRAME_SIZE, |
1659 | .desc_size = TXD_DESC_SIZE, | 1659 | .desc_size = TXD_DESC_SIZE, |
1660 | .priv_size = sizeof(struct queue_entry_priv_pci), | 1660 | .priv_size = sizeof(struct queue_entry_priv_pci), |
1661 | }; | 1661 | }; |
1662 | 1662 | ||
1663 | static const struct data_queue_desc rt2400pci_queue_atim = { | 1663 | static const struct data_queue_desc rt2400pci_queue_atim = { |
1664 | .entry_num = ATIM_ENTRIES, | 1664 | .entry_num = 8, |
1665 | .data_size = DATA_FRAME_SIZE, | 1665 | .data_size = DATA_FRAME_SIZE, |
1666 | .desc_size = TXD_DESC_SIZE, | 1666 | .desc_size = TXD_DESC_SIZE, |
1667 | .priv_size = sizeof(struct queue_entry_priv_pci), | 1667 | .priv_size = sizeof(struct queue_entry_priv_pci), |