madwifi: Fix compilation for 2.6.39
[openwrt/staging/yousong.git] / package / madwifi / patches / 475-2.6.39-compile.patch
1 --- a/net80211/ieee80211_scan.c
2 +++ b/net80211/ieee80211_scan.c
3 @@ -97,7 +97,7 @@ struct scan_state {
4 static void scan_restart_pwrsav(unsigned long);
5 static void scan_next(unsigned long);
6
7 -spinlock_t channel_lock = SPIN_LOCK_UNLOCKED;
8 +DEFINE_SPINLOCK(channel_lock);
9 static LIST_HEAD(channels_inuse);
10
11 struct channel_inuse {