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);
7 -spinlock_t channel_lock = SPIN_LOCK_UNLOCKED;
8 +DEFINE_SPINLOCK(channel_lock);
9 static LIST_HEAD(channels_inuse);
11 struct channel_inuse {