16 lines
421 B
Diff
16 lines
421 B
Diff
--- wl/src/wl/sys/wl_linux.c 2010-12-15 03:01:09.000000000 +0100
|
|
+++ temp/src/wl/sys/wl_linux.c 2011-03-04 11:02:12.754753700 +0100
|
|
@@ -482,7 +482,11 @@
|
|
#ifdef WL_ALL_PASSIVE
|
|
spin_lock_init(&wl->txq_lock);
|
|
#endif
|
|
- init_MUTEX(&wl->sem);
|
|
+ #ifndef init_MUTEX
|
|
+ sema_init(&wl->sem,1);
|
|
+ #else
|
|
+ init_MUTEX(&wl->sem);
|
|
+ #endif
|
|
}
|
|
|
|
if (!(wl->wlc = wlc_attach((void *) wl, vendor, device, unit, wl->piomode,
|