]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rt2x00: Disable powersaving for rt61pci and rt2800pci.
authorGertjan van Wingerde <gwingerde@gmail.com>
Mon, 14 Dec 2009 19:33:55 +0000 (20:33 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jan 2010 22:26:47 +0000 (14:26 -0800)
commit 93b6bd26b74efe46b4579592560f9f1cb7b61994 upstream.

We've had many reports of rt61pci failures with powersaving enabled.
Therefore, as a stop-gap measure, disable powersaving of the rt61pci
until we have found a proper solution.
Also disable powersaving on rt2800pci as it most probably will show
the same problem.

Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/rt2x00/rt61pci.c

index 49b29ff90c47acdf70dfaf06c01f02036d6916d3..0d9931451e4306577cb15e7b452dcc24fde306f3 100644 (file)
@@ -2545,6 +2545,11 @@ static int rt61pci_probe_hw_mode(struct rt2x00_dev *rt2x00dev)
        char *tx_power;
        unsigned int i;
 
+       /*
+        * Disable powersaving as default.
+        */
+       rt2x00dev->hw->wiphy->ps_default = false;
+
        /*
         * Initialize all hw fields.
         */