aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-06-21 16:54:46 +0000
committerJohn Crispin <blogic@openwrt.org>2013-06-21 16:54:46 +0000
commit407d63b431f7a2a7972167bfa93db3b4f4b27b23 (patch)
tree7bf454f2d96939713dca86ade59c17f90b3d398d
parentf1b4824c865b228039d84b2605b2e7e4f34cddeb (diff)
downloadmaster-187ad058-407d63b431f7a2a7972167bfa93db3b4f4b27b23.tar.gz
master-187ad058-407d63b431f7a2a7972167bfa93db3b4f4b27b23.tar.bz2
master-187ad058-407d63b431f7a2a7972167bfa93db3b4f4b27b23.zip
mac80211: fix compile error on rt2x00 when buildin for SoC
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37008 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/kernel/mac80211/patches/618-rt2x00-msi-fix.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/618-rt2x00-msi-fix.patch b/package/kernel/mac80211/patches/618-rt2x00-msi-fix.patch
new file mode 100644
index 0000000000..139bd7245e
--- /dev/null
+++ b/package/kernel/mac80211/patches/618-rt2x00-msi-fix.patch
@@ -0,0 +1,34 @@
+Index: compat-wireless-2013-06-13/drivers/net/wireless/rt2x00/rt2x00pci.c
+===================================================================
+--- compat-wireless-2013-06-13.orig/drivers/net/wireless/rt2x00/rt2x00pci.c 2013-06-20 21:19:16.205070973 +0200
++++ compat-wireless-2013-06-13/drivers/net/wireless/rt2x00/rt2x00pci.c 2013-06-20 21:18:36.705069262 +0200
+@@ -108,7 +108,9 @@
+ goto exit_release_regions;
+ }
+
++#ifdef CONFIG_PCI_MSI
+ pci_enable_msi(pci_dev);
++#endif
+
+ hw = ieee80211_alloc_hw(sizeof(struct rt2x00_dev), ops->hw);
+ if (!hw) {
+@@ -162,7 +164,9 @@
+ ieee80211_free_hw(hw);
+
+ exit_disable_msi:
++#ifdef CONFIG_PCI_SET_MWI
+ pci_disable_msi(pci_dev);
++#endif
+
+ exit_release_regions:
+ pci_release_regions(pci_dev);
+@@ -188,7 +192,9 @@
+ rt2x00pci_free_reg(rt2x00dev);
+ ieee80211_free_hw(hw);
+
++#ifdef CONFIG_PCI_MSI
+ pci_disable_msi(pci_dev);
++#endif
+
+ /*
+ * Free the PCI device data.