aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-10-19 04:28:15 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-10-19 04:28:15 +0000
commit863546509a6cc23afa60dc734f2649953bf259b1 (patch)
tree65960d32e637c734e17fbd40eed939e736e52a55 /package/mac80211
parent6e1290c8d1a9abc3346bf0d73f4bb1af5d096c77 (diff)
downloadupstream-863546509a6cc23afa60dc734f2649953bf259b1.tar.gz
upstream-863546509a6cc23afa60dc734f2649953bf259b1.tar.bz2
upstream-863546509a6cc23afa60dc734f2649953bf259b1.zip
mac80211: fix ath5k compile on 2.6.28 and earlier
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18065 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-rw-r--r--package/mac80211/patches/407-ath5k_compat_fix.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/mac80211/patches/407-ath5k_compat_fix.patch b/package/mac80211/patches/407-ath5k_compat_fix.patch
new file mode 100644
index 0000000000..a214343fb1
--- /dev/null
+++ b/package/mac80211/patches/407-ath5k_compat_fix.patch
@@ -0,0 +1,22 @@
+--- a/drivers/net/wireless/ath/ath5k/base.c
++++ b/drivers/net/wireless/ath/ath5k/base.c
+@@ -238,7 +238,7 @@ static struct pci_driver ath5k_pci_drive
+ .remove = __devexit_p(ath5k_pci_remove),
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
+ .driver.pm = ATH5K_PM_OPS,
+-#else
++#elif defined(CONFIG_PM)
+ .suspend = ath5k_pci_suspend_compat,
+ .resume = ath5k_pci_resume_compat,
+ #endif
+--- a/compat/patches/11-dev-pm-ops.patch
++++ b/compat/patches/11-dev-pm-ops.patch
+@@ -49,7 +49,7 @@ calls on compat code with only slight mo
+ .remove = __devexit_p(ath5k_pci_remove),
+ +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
+ .driver.pm = ATH5K_PM_OPS,
+-+#else
+++#elif defined(CONFIG_PM)
+ + .suspend = ath5k_pci_suspend_compat,
+ + .resume = ath5k_pci_resume_compat,
+ +#endif