From 7bede59974e967c7df5b364ca632b0f35b1e7aac Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 20 Mar 2011 17:12:21 +0000 Subject: [PATCH] rt2800usb: Disable powersaving by default (Closes: #618930) svn path=/dists/sid/linux-2.6/; revision=17091 --- debian/changelog | 1 + ...t2800-disable-powersaving-as-default.patch | 27 +++++++++++++++++++ debian/patches/series/2 | 1 + 3 files changed, 29 insertions(+) create mode 100644 debian/patches/bugfix/all/rt2800-disable-powersaving-as-default.patch diff --git a/debian/changelog b/debian/changelog index 94bd94111..1880a8718 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ linux-2.6 (2.6.38-2) UNRELEASED; urgency=low [ Ben Hutchings ] * kconfig: Avoid buffer underrun in choice input (fixes FTBFS on mips) + * rt2800usb: Disable powersaving by default (Closes: #618930) -- Ben Hutchings Sat, 19 Mar 2011 05:17:42 +0000 diff --git a/debian/patches/bugfix/all/rt2800-disable-powersaving-as-default.patch b/debian/patches/bugfix/all/rt2800-disable-powersaving-as-default.patch new file mode 100644 index 000000000..a353f03b7 --- /dev/null +++ b/debian/patches/bugfix/all/rt2800-disable-powersaving-as-default.patch @@ -0,0 +1,27 @@ +From: Johannes Stezenbach +Date: Wed Jan 19 04:43:34 EST 2011 +Subject: [PATCH RFC] rt2800: disable powersaving as default + +Powersaving is broken on rt2800usb (the hardware cannot do timed wakeup +to receive beacons) and also on rt2800pci currently (auto-wakeup irq +does no seem to work, for reasons so far unknown). + +Signed-off-by: Johannes Stezenbach + +diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c +index b7d91d5..b846fd9 100644 +--- a/drivers/net/wireless/rt2x00/rt2800lib.c ++++ b/drivers/net/wireless/rt2x00/rt2800lib.c +@@ -3229,10 +3229,9 @@ int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev) + u16 eeprom; + + /* +- * Disable powersaving as default on PCI devices. ++ * Disable powersaving as default. + */ +- if (rt2x00_is_pci(rt2x00dev) || rt2x00_is_soc(rt2x00dev)) +- rt2x00dev->hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; ++ rt2x00dev->hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; + + /* + * Initialize all hw fields. diff --git a/debian/patches/series/2 b/debian/patches/series/2 index 1b5d94ed4..5c150c3c2 100644 --- a/debian/patches/series/2 +++ b/debian/patches/series/2 @@ -1 +1,2 @@ + bugfix/all/kconfig-Avoid-buffer-underrun-in-choice-input.patch ++ bugfix/all/rt2800-disable-powersaving-as-default.patch