1234567891011121314 |
- --- a/src/wl/sys/wl_linux.c 2011-08-14 21:19:36.000000000 +0900
- +++ b/src/wl/sys/wl_linux.c 2011-08-14 21:35:53.000000000 +0900
- @@ -482,7 +482,11 @@
- #ifdef WL_ALL_PASSIVE
- spin_lock_init(&wl->txq_lock);
- #endif
- +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,37)
- + sema_init(&wl->sem, 1);
- +#else
- init_MUTEX(&wl->sem);
- +#endif
- }
-
- if (!(wl->wlc = wlc_attach((void *) wl, vendor, device, unit, wl->piomode,
|