5_100_82_38.patch 414 B

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