aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorHelmut Schaa <helmut.schaa@googlemail.com>2010-11-04 15:37:22 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-11-15 13:25:56 -0500
commitefd2f271e44c7ea011cdb0363d38f40338ab80d2 (patch)
tree492e4f0c41f0b6388b35a9817c1b22d5719b5342 /drivers/net/wireless
parent961621abee08fde2328daf6f8000e1059e5205e9 (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')
-rw-r--r--drivers/net/wireless/rt2x00/rt2400pci.c8
-rw-r--r--drivers/net/wireless/rt2x00/rt2500pci.c8
-rw-r--r--drivers/net/wireless/rt2x00/rt2500usb.c8
-rw-r--r--drivers/net/wireless/rt2x00/rt2800lib.c2
-rw-r--r--drivers/net/wireless/rt2x00/rt2800pci.c8
-rw-r--r--drivers/net/wireless/rt2x00/rt2800usb.c9
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00queue.h16
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c8
-rw-r--r--drivers/net/wireless/rt2x00/rt73usb.c6
9 files changed, 29 insertions, 44 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c
index 4f420a9ec5d..c94aa1e5d08 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
1642static const struct data_queue_desc rt2400pci_queue_rx = { 1642static 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
1649static const struct data_queue_desc rt2400pci_queue_tx = { 1649static 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
1656static const struct data_queue_desc rt2400pci_queue_bcn = { 1656static 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
1663static const struct data_queue_desc rt2400pci_queue_atim = { 1663static 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),
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c
index 97feb7aef80..ab6c9eccd9b 100644
--- a/drivers/net/wireless/rt2x00/rt2500pci.c
+++ b/drivers/net/wireless/rt2x00/rt2500pci.c
@@ -1937,28 +1937,28 @@ static const struct rt2x00lib_ops rt2500pci_rt2x00_ops = {
1937}; 1937};
1938 1938
1939static const struct data_queue_desc rt2500pci_queue_rx = { 1939static const struct data_queue_desc rt2500pci_queue_rx = {
1940 .entry_num = RX_ENTRIES, 1940 .entry_num = 32,
1941 .data_size = DATA_FRAME_SIZE, 1941 .data_size = DATA_FRAME_SIZE,
1942 .desc_size = RXD_DESC_SIZE, 1942 .desc_size = RXD_DESC_SIZE,
1943 .priv_size = sizeof(struct queue_entry_priv_pci), 1943 .priv_size = sizeof(struct queue_entry_priv_pci),
1944}; 1944};
1945 1945
1946static const struct data_queue_desc rt2500pci_queue_tx = { 1946static const struct data_queue_desc rt2500pci_queue_tx = {
1947 .entry_num = TX_ENTRIES, 1947 .entry_num = 32,
1948 .data_size = DATA_FRAME_SIZE, 1948 .data_size = DATA_FRAME_SIZE,
1949 .desc_size = TXD_DESC_SIZE, 1949 .desc_size = TXD_DESC_SIZE,
1950 .priv_size = sizeof(struct queue_entry_priv_pci), 1950 .priv_size = sizeof(struct queue_entry_priv_pci),
1951}; 1951};
1952 1952
1953static const struct data_queue_desc rt2500pci_queue_bcn = { 1953static const struct data_queue_desc rt2500pci_queue_bcn = {
1954 .entry_num = BEACON_ENTRIES, 1954 .entry_num = 1,
1955 .data_size = MGMT_FRAME_SIZE, 1955 .data_size = MGMT_FRAME_SIZE,
1956 .desc_size = TXD_DESC_SIZE, 1956 .desc_size = TXD_DESC_SIZE,
1957 .priv_size = sizeof(struct queue_entry_priv_pci), 1957 .priv_size = sizeof(struct queue_entry_priv_pci),
1958}; 1958};
1959 1959
1960static const struct data_queue_desc rt2500pci_queue_atim = { 1960static const struct data_queue_desc rt2500pci_queue_atim = {
1961 .entry_num = ATIM_ENTRIES, 1961 .entry_num = 8,
1962 .data_size = DATA_FRAME_SIZE, 1962 .data_size = DATA_FRAME_SIZE,
1963 .desc_size = TXD_DESC_SIZE, 1963 .desc_size = TXD_DESC_SIZE,
1964 .priv_size = sizeof(struct queue_entry_priv_pci), 1964 .priv_size = sizeof(struct queue_entry_priv_pci),
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c
index 93e44c7f3a7..725ae34f181 100644
--- a/drivers/net/wireless/rt2x00/rt2500usb.c
+++ b/drivers/net/wireless/rt2x00/rt2500usb.c
@@ -1829,28 +1829,28 @@ static const struct rt2x00lib_ops rt2500usb_rt2x00_ops = {
1829}; 1829};
1830 1830
1831static const struct data_queue_desc rt2500usb_queue_rx = { 1831static const struct data_queue_desc rt2500usb_queue_rx = {
1832 .entry_num = RX_ENTRIES, 1832 .entry_num = 32,
1833 .data_size = DATA_FRAME_SIZE, 1833 .data_size = DATA_FRAME_SIZE,
1834 .desc_size = RXD_DESC_SIZE, 1834 .desc_size = RXD_DESC_SIZE,
1835 .priv_size = sizeof(struct queue_entry_priv_usb), 1835 .priv_size = sizeof(struct queue_entry_priv_usb),
1836}; 1836};
1837 1837
1838static const struct data_queue_desc rt2500usb_queue_tx = { 1838static const struct data_queue_desc rt2500usb_queue_tx = {
1839 .entry_num = TX_ENTRIES, 1839 .entry_num = 32,
1840 .data_size = DATA_FRAME_SIZE, 1840 .data_size = DATA_FRAME_SIZE,
1841 .desc_size = TXD_DESC_SIZE, 1841 .desc_size = TXD_DESC_SIZE,
1842 .priv_size = sizeof(struct queue_entry_priv_usb), 1842 .priv_size = sizeof(struct queue_entry_priv_usb),
1843}; 1843};
1844 1844
1845static const struct data_queue_desc rt2500usb_queue_bcn = { 1845static const struct data_queue_desc rt2500usb_queue_bcn = {
1846 .entry_num = BEACON_ENTRIES, 1846 .entry_num = 1,
1847 .data_size = MGMT_FRAME_SIZE, 1847 .data_size = MGMT_FRAME_SIZE,
1848 .desc_size = TXD_DESC_SIZE, 1848 .desc_size = TXD_DESC_SIZE,
1849 .priv_size = sizeof(struct queue_entry_priv_usb_bcn), 1849 .priv_size = sizeof(struct queue_entry_priv_usb_bcn),
1850}; 1850};
1851 1851
1852static const struct data_queue_desc rt2500usb_queue_atim = { 1852static const struct data_queue_desc rt2500usb_queue_atim = {
1853 .entry_num = ATIM_ENTRIES, 1853 .entry_num = 8,
1854 .data_size = DATA_FRAME_SIZE, 1854 .data_size = DATA_FRAME_SIZE,
1855 .desc_size = TXD_DESC_SIZE, 1855 .desc_size = TXD_DESC_SIZE,
1856 .priv_size = sizeof(struct queue_entry_priv_usb), 1856 .priv_size = sizeof(struct queue_entry_priv_usb),
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
index 54bf0857055..b1738bbf87f 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -727,7 +727,7 @@ void rt2800_txdone(struct rt2x00_dev *rt2x00dev)
727 * that the TX_STA_FIFO stack has a size of 16. We stick to our 727 * that the TX_STA_FIFO stack has a size of 16. We stick to our
728 * tx ring size for now. 728 * tx ring size for now.
729 */ 729 */
730 for (i = 0; i < TX_ENTRIES; i++) { 730 for (i = 0; i < rt2x00dev->ops->tx->entry_num; i++) {
731 rt2800_register_read(rt2x00dev, TX_STA_FIFO, &reg); 731 rt2800_register_read(rt2x00dev, TX_STA_FIFO, &reg);
732 if (!rt2x00_get_field32(reg, TX_STA_FIFO_VALID)) 732 if (!rt2x00_get_field32(reg, TX_STA_FIFO_VALID))
733 break; 733 break;
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
index b2673953598..2c12b598be5 100644
--- a/drivers/net/wireless/rt2x00/rt2800pci.c
+++ b/drivers/net/wireless/rt2x00/rt2800pci.c
@@ -777,7 +777,7 @@ static void rt2800pci_txstatus_interrupt(struct rt2x00_dev *rt2x00dev)
777 * Since we have only one producer and one consumer we don't 777 * Since we have only one producer and one consumer we don't
778 * need to lock the kfifo. 778 * need to lock the kfifo.
779 */ 779 */
780 for (i = 0; i < TX_ENTRIES; i++) { 780 for (i = 0; i < rt2x00dev->ops->tx->entry_num; i++) {
781 rt2800_register_read(rt2x00dev, TX_STA_FIFO, &status); 781 rt2800_register_read(rt2x00dev, TX_STA_FIFO, &status);
782 782
783 if (!rt2x00_get_field32(status, TX_STA_FIFO_VALID)) 783 if (!rt2x00_get_field32(status, TX_STA_FIFO_VALID))
@@ -991,21 +991,21 @@ static const struct rt2x00lib_ops rt2800pci_rt2x00_ops = {
991}; 991};
992 992
993static const struct data_queue_desc rt2800pci_queue_rx = { 993static const struct data_queue_desc rt2800pci_queue_rx = {
994 .entry_num = RX_ENTRIES, 994 .entry_num = 128,
995 .data_size = AGGREGATION_SIZE, 995 .data_size = AGGREGATION_SIZE,
996 .desc_size = RXD_DESC_SIZE, 996 .desc_size = RXD_DESC_SIZE,
997 .priv_size = sizeof(struct queue_entry_priv_pci), 997 .priv_size = sizeof(struct queue_entry_priv_pci),
998}; 998};
999 999
1000static const struct data_queue_desc rt2800pci_queue_tx = { 1000static const struct data_queue_desc rt2800pci_queue_tx = {
1001 .entry_num = TX_ENTRIES, 1001 .entry_num = 64,
1002 .data_size = AGGREGATION_SIZE, 1002 .data_size = AGGREGATION_SIZE,
1003 .desc_size = TXD_DESC_SIZE, 1003 .desc_size = TXD_DESC_SIZE,
1004 .priv_size = sizeof(struct queue_entry_priv_pci), 1004 .priv_size = sizeof(struct queue_entry_priv_pci),
1005}; 1005};
1006 1006
1007static const struct data_queue_desc rt2800pci_queue_bcn = { 1007static const struct data_queue_desc rt2800pci_queue_bcn = {
1008 .entry_num = 8 * BEACON_ENTRIES, 1008 .entry_num = 8,
1009 .data_size = 0, /* No DMA required for beacons */ 1009 .data_size = 0, /* No DMA required for beacons */
1010 .desc_size = TXWI_DESC_SIZE, 1010 .desc_size = TXWI_DESC_SIZE,
1011 .priv_size = sizeof(struct queue_entry_priv_pci), 1011 .priv_size = sizeof(struct queue_entry_priv_pci),
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c
index 3dff56ec195..3f44131baee 100644
--- a/drivers/net/wireless/rt2x00/rt2800usb.c
+++ b/drivers/net/wireless/rt2x00/rt2800usb.c
@@ -165,7 +165,8 @@ static int rt2800usb_enable_radio(struct rt2x00_dev *rt2x00dev)
165 * this limit so reduce the number to prevent errors. 165 * this limit so reduce the number to prevent errors.
166 */ 166 */
167 rt2x00_set_field32(&reg, USB_DMA_CFG_RX_BULK_AGG_LIMIT, 167 rt2x00_set_field32(&reg, USB_DMA_CFG_RX_BULK_AGG_LIMIT,
168 ((RX_ENTRIES * DATA_FRAME_SIZE) / 1024) - 3); 168 ((rt2x00dev->ops->rx->entry_num * DATA_FRAME_SIZE)
169 / 1024) - 3);
169 rt2x00_set_field32(&reg, USB_DMA_CFG_RX_BULK_EN, 1); 170 rt2x00_set_field32(&reg, USB_DMA_CFG_RX_BULK_EN, 1);
170 rt2x00_set_field32(&reg, USB_DMA_CFG_TX_BULK_EN, 1); 171 rt2x00_set_field32(&reg, USB_DMA_CFG_TX_BULK_EN, 1);
171 rt2800_register_write(rt2x00dev, USB_DMA_CFG, reg); 172 rt2800_register_write(rt2x00dev, USB_DMA_CFG, reg);
@@ -553,21 +554,21 @@ static const struct rt2x00lib_ops rt2800usb_rt2x00_ops = {
553}; 554};
554 555
555static const struct data_queue_desc rt2800usb_queue_rx = { 556static const struct data_queue_desc rt2800usb_queue_rx = {
556 .entry_num = RX_ENTRIES, 557 .entry_num = 128,
557 .data_size = AGGREGATION_SIZE, 558 .data_size = AGGREGATION_SIZE,
558 .desc_size = RXINFO_DESC_SIZE + RXWI_DESC_SIZE, 559 .desc_size = RXINFO_DESC_SIZE + RXWI_DESC_SIZE,
559 .priv_size = sizeof(struct queue_entry_priv_usb), 560 .priv_size = sizeof(struct queue_entry_priv_usb),
560}; 561};
561 562
562static const struct data_queue_desc rt2800usb_queue_tx = { 563static const struct data_queue_desc rt2800usb_queue_tx = {
563 .entry_num = TX_ENTRIES, 564 .entry_num = 64,
564 .data_size = AGGREGATION_SIZE, 565 .data_size = AGGREGATION_SIZE,
565 .desc_size = TXINFO_DESC_SIZE + TXWI_DESC_SIZE, 566 .desc_size = TXINFO_DESC_SIZE + TXWI_DESC_SIZE,
566 .priv_size = sizeof(struct queue_entry_priv_usb), 567 .priv_size = sizeof(struct queue_entry_priv_usb),
567}; 568};
568 569
569static const struct data_queue_desc rt2800usb_queue_bcn = { 570static const struct data_queue_desc rt2800usb_queue_bcn = {
570 .entry_num = 8 * BEACON_ENTRIES, 571 .entry_num = 8,
571 .data_size = MGMT_FRAME_SIZE, 572 .data_size = MGMT_FRAME_SIZE,
572 .desc_size = TXINFO_DESC_SIZE + TXWI_DESC_SIZE, 573 .desc_size = TXINFO_DESC_SIZE + TXWI_DESC_SIZE,
573 .priv_size = sizeof(struct queue_entry_priv_usb), 574 .priv_size = sizeof(struct queue_entry_priv_usb),
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.h b/drivers/net/wireless/rt2x00/rt2x00queue.h
index d81d85f3486..64acfb62d90 100644
--- a/drivers/net/wireless/rt2x00/rt2x00queue.h
+++ b/drivers/net/wireless/rt2x00/rt2x00queue.h
@@ -43,22 +43,6 @@
43#define AGGREGATION_SIZE 3840 43#define AGGREGATION_SIZE 3840
44 44
45/** 45/**
46 * DOC: Number of entries per queue
47 *
48 * Under normal load without fragmentation, 12 entries are sufficient
49 * without the queue being filled up to the maximum. When using fragmentation
50 * and the queue threshold code, we need to add some additional margins to
51 * make sure the queue will never (or only under extreme load) fill up
52 * completely.
53 * Since we don't use preallocated DMA, having a large number of queue entries
54 * will have minimal impact on the memory requirements for the queue.
55 */
56#define RX_ENTRIES 24
57#define TX_ENTRIES 24
58#define BEACON_ENTRIES 1
59#define ATIM_ENTRIES 8
60
61/**
62 * enum data_queue_qid: Queue identification 46 * enum data_queue_qid: Queue identification
63 * 47 *
64 * @QID_AC_BE: AC BE queue 48 * @QID_AC_BE: AC BE queue
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index af548c87f10..3232336b7f4 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -2078,7 +2078,7 @@ static void rt61pci_txdone(struct rt2x00_dev *rt2x00dev)
2078 * that the TX_STA_FIFO stack has a size of 16. We stick to our 2078 * that the TX_STA_FIFO stack has a size of 16. We stick to our
2079 * tx ring size for now. 2079 * tx ring size for now.
2080 */ 2080 */
2081 for (i = 0; i < TX_ENTRIES; i++) { 2081 for (i = 0; i < rt2x00dev->ops->tx->entry_num; i++) {
2082 rt2x00pci_register_read(rt2x00dev, STA_CSR4, &reg); 2082 rt2x00pci_register_read(rt2x00dev, STA_CSR4, &reg);
2083 if (!rt2x00_get_field32(reg, STA_CSR4_VALID)) 2083 if (!rt2x00_get_field32(reg, STA_CSR4_VALID))
2084 break; 2084 break;
@@ -2857,21 +2857,21 @@ static const struct rt2x00lib_ops rt61pci_rt2x00_ops = {
2857}; 2857};
2858 2858
2859static const struct data_queue_desc rt61pci_queue_rx = { 2859static const struct data_queue_desc rt61pci_queue_rx = {
2860 .entry_num = RX_ENTRIES, 2860 .entry_num = 32,
2861 .data_size = DATA_FRAME_SIZE, 2861 .data_size = DATA_FRAME_SIZE,
2862 .desc_size = RXD_DESC_SIZE, 2862 .desc_size = RXD_DESC_SIZE,
2863 .priv_size = sizeof(struct queue_entry_priv_pci), 2863 .priv_size = sizeof(struct queue_entry_priv_pci),
2864}; 2864};
2865 2865
2866static const struct data_queue_desc rt61pci_queue_tx = { 2866static const struct data_queue_desc rt61pci_queue_tx = {
2867 .entry_num = TX_ENTRIES, 2867 .entry_num = 32,
2868 .data_size = DATA_FRAME_SIZE, 2868 .data_size = DATA_FRAME_SIZE,
2869 .desc_size = TXD_DESC_SIZE, 2869 .desc_size = TXD_DESC_SIZE,
2870 .priv_size = sizeof(struct queue_entry_priv_pci), 2870 .priv_size = sizeof(struct queue_entry_priv_pci),
2871}; 2871};
2872 2872
2873static const struct data_queue_desc rt61pci_queue_bcn = { 2873static const struct data_queue_desc rt61pci_queue_bcn = {
2874 .entry_num = 4 * BEACON_ENTRIES, 2874 .entry_num = 4,
2875 .data_size = 0, /* No DMA required for beacons */ 2875 .data_size = 0, /* No DMA required for beacons */
2876 .desc_size = TXINFO_SIZE, 2876 .desc_size = TXINFO_SIZE,
2877 .priv_size = sizeof(struct queue_entry_priv_pci), 2877 .priv_size = sizeof(struct queue_entry_priv_pci),
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c
index 9be8089317e..67447ec005b 100644
--- a/drivers/net/wireless/rt2x00/rt73usb.c
+++ b/drivers/net/wireless/rt2x00/rt73usb.c
@@ -2296,21 +2296,21 @@ static const struct rt2x00lib_ops rt73usb_rt2x00_ops = {
2296}; 2296};
2297 2297
2298static const struct data_queue_desc rt73usb_queue_rx = { 2298static const struct data_queue_desc rt73usb_queue_rx = {
2299 .entry_num = RX_ENTRIES, 2299 .entry_num = 32,
2300 .data_size = DATA_FRAME_SIZE, 2300 .data_size = DATA_FRAME_SIZE,
2301 .desc_size = RXD_DESC_SIZE, 2301 .desc_size = RXD_DESC_SIZE,
2302 .priv_size = sizeof(struct queue_entry_priv_usb), 2302 .priv_size = sizeof(struct queue_entry_priv_usb),
2303}; 2303};
2304 2304
2305static const struct data_queue_desc rt73usb_queue_tx = { 2305static const struct data_queue_desc rt73usb_queue_tx = {
2306 .entry_num = TX_ENTRIES, 2306 .entry_num = 32,
2307 .data_size = DATA_FRAME_SIZE, 2307 .data_size = DATA_FRAME_SIZE,
2308 .desc_size = TXD_DESC_SIZE, 2308 .desc_size = TXD_DESC_SIZE,
2309 .priv_size = sizeof(struct queue_entry_priv_usb), 2309 .priv_size = sizeof(struct queue_entry_priv_usb),
2310}; 2310};
2311 2311
2312static const struct data_queue_desc rt73usb_queue_bcn = { 2312static const struct data_queue_desc rt73usb_queue_bcn = {
2313 .entry_num = 4 * BEACON_ENTRIES, 2313 .entry_num = 4,
2314 .data_size = MGMT_FRAME_SIZE, 2314 .data_size = MGMT_FRAME_SIZE,
2315 .desc_size = TXINFO_SIZE, 2315 .desc_size = TXINFO_SIZE,
2316 .priv_size = sizeof(struct queue_entry_priv_usb), 2316 .priv_size = sizeof(struct queue_entry_priv_usb),