1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-01 09:11:59 +03:00

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
This commit is contained in:
nbd 2011-04-26 23:05:34 +00:00
parent 43ac860de1
commit 2bf6a59bdf

View File

@ -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 {