aboutsummaryrefslogtreecommitdiffstats
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
commit588f7c1b01bfba896c3361be9cfceb1c10e36bd6 (patch)
tree71e53b7472f980129764159c7d762ad00b0c43b6
parente0cb25837f181bd25d8393e6f9c7401b4ddc51ad (diff)
downloadupstream-588f7c1b01bfba896c3361be9cfceb1c10e36bd6.tar.gz
upstream-588f7c1b01bfba896c3361be9cfceb1c10e36bd6.tar.bz2
upstream-588f7c1b01bfba896c3361be9cfceb1c10e36bd6.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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26771 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 {