aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-08-27 11:07:23 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-08-27 11:07:23 +0000
commit7a341980fa3af70b5685a1db49c479825cbf0463 (patch)
tree4de004912ef047233dc99b28b88e4e9b0ccb17a0 /package
parentb639f7f0a49dd2befd7158c96ac3a372b0b66524 (diff)
downloadupstream-7a341980fa3af70b5685a1db49c479825cbf0463.tar.gz
upstream-7a341980fa3af70b5685a1db49c479825cbf0463.tar.bz2
upstream-7a341980fa3af70b5685a1db49c479825cbf0463.zip
ath9k: add a patch to fix ASPM related issues
SVN-Revision: 33277
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/574-ath9k_fix_aspm_resume.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/mac80211/patches/574-ath9k_fix_aspm_resume.patch b/package/mac80211/patches/574-ath9k_fix_aspm_resume.patch
new file mode 100644
index 0000000000..31259de822
--- /dev/null
+++ b/package/mac80211/patches/574-ath9k_fix_aspm_resume.patch
@@ -0,0 +1,21 @@
+--- a/drivers/net/wireless/ath/ath9k/pci.c
++++ b/drivers/net/wireless/ath/ath9k/pci.c
+@@ -331,6 +331,9 @@ static int ath_pci_suspend(struct device
+ static int ath_pci_resume(struct device *device)
+ {
+ struct pci_dev *pdev = to_pci_dev(device);
++ struct ieee80211_hw *hw = pci_get_drvdata(pdev);
++ struct ath_softc *sc = hw->priv;
++ struct ath_common *common = ath9k_hw_common(sc->sc_ah);
+ u32 val;
+
+ /*
+@@ -342,6 +345,8 @@ static int ath_pci_resume(struct device
+ if ((val & 0x0000ff00) != 0)
+ pci_write_config_dword(pdev, 0x40, val & 0xffff00ff);
+
++ ath_pci_aspm_init(common);
++
+ return 0;
+ }
+