madwifi: Fix compilation for 2.6.39
authorFelix Fietkau <nbd@openwrt.org>
Tue, 26 Apr 2011 23:05:34 +0000 (23:05 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 26 Apr 2011 23:05:34 +0000 (23:05 +0000)
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

package/madwifi/patches/475-2.6.39-compile.patch [new file with mode: 0644]

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 (file)
index 0000000..5b8a777
--- /dev/null
@@ -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 {