aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2009-09-26 22:05:46 +0000
committerHauke Mehrtens <hauke@openwrt.org>2009-09-26 22:05:46 +0000
commitdf614f3fb9a41f8ad4c9cd7272dab9940e52421c (patch)
tree894e8ecdb16200384103c219a96b9e355f33950d
parent9d8805d1d72e5ce3ce703c00e7abe98917a7031b (diff)
downloadupstream-df614f3fb9a41f8ad4c9cd7272dab9940e52421c.tar.gz
upstream-df614f3fb9a41f8ad4c9cd7272dab9940e52421c.tar.bz2
upstream-df614f3fb9a41f8ad4c9cd7272dab9940e52421c.zip
[mac80211] Do not depend on rfkill
With kernel 2.6.31 cfg80211 is build with rfkill if it was build. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17754 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/mac80211/patches/012-remove_rfkill.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/mac80211/patches/012-remove_rfkill.patch b/package/mac80211/patches/012-remove_rfkill.patch
new file mode 100644
index 0000000000..a47168a05c
--- /dev/null
+++ b/package/mac80211/patches/012-remove_rfkill.patch
@@ -0,0 +1,33 @@
+--- a/drivers/net/wireless/ath/ath5k/base.h
++++ b/drivers/net/wireless/ath/ath5k/base.h
+@@ -46,7 +46,7 @@
+ #include <linux/wireless.h>
+ #include <linux/if_ether.h>
+ #include <linux/leds.h>
+-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31))
++#if 0
+ #include <linux/rfkill.h>
+ #else
+ #include <linux/rfkill_backport.h>
+--- a/net/wireless/core.h
++++ b/net/wireless/core.h
+@@ -11,7 +11,7 @@
+ #include <linux/kref.h>
+ #include <linux/rbtree.h>
+ #include <linux/debugfs.h>
+-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31))
++#if 0
+ #include <linux/rfkill.h>
+ #else
+ #include <linux/rfkill_backport.h>
+--- a/include/linux/rfkill_backport.h
++++ b/include/linux/rfkill_backport.h
+@@ -149,7 +149,7 @@ struct rfkill_ops {
+ int (*set_block)(void *data, bool blocked);
+ };
+
+-#if defined(CONFIG_RFKILL_BACKPORT) || defined(CONFIG_RFKILL_MODULE_BACKPORT)
++#if 0
+ /**
+ * rfkill_alloc - allocate rfkill structure
+ * @name: name of the struct -- the string is not copied internally