aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2800usb.c
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2012-03-14 06:16:21 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-03-15 13:40:33 -0400
commit0d9be8a4b7da71ef3b4ac8f6aa4fa225c1cb8e98 (patch)
tree6edc2815f73f5d0d2dbbb977df6da2a30d70fc79 /drivers/net/wireless/rt2x00/rt2800usb.c
parent5f8f718ae1e1a6b4e16e67e9e67aff1864419f2e (diff)
rt2x00: rt2800usb: limit tx queues length
TX status fifo is limited to 16 elements. When we send more frames than that, we can easily loose status, what is not good for rate scaling algorithm. On my testing the change does not degrade performance, actually make is slightly better. Additionally with the patch I can see much less various rt2x00 warnings in dmesg. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Acked-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800usb.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c
index 8c1d2c0df854..cd490abced91 100644
--- a/drivers/net/wireless/rt2x00/rt2800usb.c
+++ b/drivers/net/wireless/rt2x00/rt2800usb.c
@@ -870,7 +870,7 @@ static const struct data_queue_desc rt2800usb_queue_rx = {
870}; 870};
871 871
872static const struct data_queue_desc rt2800usb_queue_tx = { 872static const struct data_queue_desc rt2800usb_queue_tx = {
873 .entry_num = 64, 873 .entry_num = 16,
874 .data_size = AGGREGATION_SIZE, 874 .data_size = AGGREGATION_SIZE,
875 .desc_size = TXINFO_DESC_SIZE + TXWI_DESC_SIZE, 875 .desc_size = TXINFO_DESC_SIZE + TXWI_DESC_SIZE,
876 .priv_size = sizeof(struct queue_entry_priv_usb), 876 .priv_size = sizeof(struct queue_entry_priv_usb),