summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/broadcom-sta/files')
-rw-r--r--net-wireless/broadcom-sta/files/broadcom-sta-5.100.82.38-linux-2.6.37.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-wireless/broadcom-sta/files/broadcom-sta-5.100.82.38-linux-2.6.37.patch b/net-wireless/broadcom-sta/files/broadcom-sta-5.100.82.38-linux-2.6.37.patch
new file mode 100644
index 000000000000..ae57a20874e8
--- /dev/null
+++ b/net-wireless/broadcom-sta/files/broadcom-sta-5.100.82.38-linux-2.6.37.patch
@@ -0,0 +1,15 @@
+diff -Naur broadcom-sta.orig/src/wl/sys/wl_linux.c broadcom-sta/src/wl/sys/wl_linux.c
+--- broadcom-sta.orig/src/wl/sys/wl_linux.c 2010-12-15 11:01:09.000000000 +0900
++++ broadcom-sta/src/wl/sys/wl_linux.c 2011-01-02 00:18:32.438095116 +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,