aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-04-26 23:05:34 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-04-26 23:05:34 +0000
commitc2d4e98e34e7ed44f6698bc6944038ddfb617817 (patch)
treec7b4c9a4d5a5f8f27919d34c192aa8260dd1e72f /package/madwifi/patches
parent9e8cd7894436f41e19a7650f47e6832f9fad9daf (diff)
downloadupstream-c2d4e98e34e7ed44f6698bc6944038ddfb617817.tar.gz
upstream-c2d4e98e34e7ed44f6698bc6944038ddfb617817.tar.bz2
upstream-c2d4e98e34e7ed44f6698bc6944038ddfb617817.zip
madwifi: Fix compilation for 2.6.39
Fix compilation for 2.6.39 by replacing SPIN_LOCK_UNLOCKED with DEFINE_SPINLOCK(). Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> SVN-Revision: 26771
Diffstat (limited to 'package/madwifi/patches')
-rw-r--r--package/madwifi/patches/475-2.6.39-compile.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/madwifi/patches/475-2.6.39-compile.patch b/package/madwifi/patches/475-2.6.39-compile.patch
new file mode 100644
index 0000000000..5b8a777187
--- /dev/null
+++ b/package/madwifi/patches/475-2.6.39-compile.patch
@@ -0,0 +1,11 @@
+--- a/net80211/ieee80211_scan.c
++++ b/net80211/ieee80211_scan.c
+@@ -97,7 +97,7 @@ struct scan_state {
+ static void scan_restart_pwrsav(unsigned long);
+ static void scan_next(unsigned long);
+
+-spinlock_t channel_lock = SPIN_LOCK_UNLOCKED;
++DEFINE_SPINLOCK(channel_lock);
+ static LIST_HEAD(channels_inuse);
+
+ struct channel_inuse {