mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
c2d4e98e34
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
12 lines
332 B
Diff
12 lines
332 B
Diff
--- 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 {
|