Re: rt61pci - bad performance

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas
Date: Saturday, August 14, 2010 - 1:33 am

Andrew Morton wrote:

That's wrong. I detected, that there is a great difference, because if 
you start the unpatched driver directly after the boot, the link isn't 
useable at all.
I can't see any difference if the patched driver is loaded once and 
removed and the unpatched is loaded afterwards without rebooting between.

The patch is:

--- rt61pci.c.orig      2010-07-20 21:03:02.000000000 +0200
+++ rt61pci.c   2010-08-14 10:27:52.708008193 +0200
@@ -2661,13 +2661,17 @@
         spec->channels_info = info;

         tx_power = rt2x00_eeprom_addr(rt2x00dev, EEPROM_TXPOWER_G_START);
-       for (i = 0; i < 14; i++)
-               info[i].tx_power1 = TXPOWER_FROM_DEV(tx_power[i]);
+       for (i = 0; i < 14; i++) {
+               // info[i].tx_power1 = TXPOWER_FROM_DEV(tx_power[i]);
+               info[i].tx_power1 = 25;
+               }

         if (spec->num_channels > 14) {
                 tx_power = rt2x00_eeprom_addr(rt2x00dev, 
EEPROM_TXPOWER_A_START);
-               for (i = 14; i < spec->num_channels; i++)
-                       info[i].tx_power1 = TXPOWER_FROM_DEV(tx_power[i]);
+               for (i = 14; i < spec->num_channels; i++) {
+                       // info[i].tx_power1 = 
TXPOWER_FROM_DEV(tx_power[i]);
+                       info[i].tx_power1 = 25;
+                       }
         }

         return 0;



Kind regards,
Andreas
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: rt61pci - bad performance, Andreas, (Sat Aug 14, 1:33 am)