From ba5390f40c27f97d3c79d2a83e310707a87f4c1f Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 26 Sep 2009 22:05:46 +0000 Subject: [PATCH] [mac80211] Do not depend on rfkill With kernel 2.6.31 cfg80211 is build with rfkill if it was build. SVN-Revision: 17754 --- .../mac80211/patches/012-remove_rfkill.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/mac80211/patches/012-remove_rfkill.patch 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 + #include + #include +-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)) ++#if 0 + #include + #else + #include +--- a/net/wireless/core.h ++++ b/net/wireless/core.h +@@ -11,7 +11,7 @@ + #include + #include + #include +-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)) ++#if 0 + #include + #else + #include +--- 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 -- 2.30.2