summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2011-01-01 15:28:28 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2011-01-01 15:28:28 +0000
commitc00570819802a55c8b7cbcdc1f2077b51858f360 (patch)
tree8c4a85f657a8d8fa639b9de5af501380a97a646b /net-wireless/broadcom-sta/files
parentx86 stable wrt bug #340677 (diff)
downloadgentoo-2-c00570819802a55c8b7cbcdc1f2077b51858f360.tar.gz
gentoo-2-c00570819802a55c8b7cbcdc1f2077b51858f360.tar.bz2
gentoo-2-c00570819802a55c8b7cbcdc1f2077b51858f360.zip
>=virtual/linux-sources-2.6.37 support, bug #350196.
(Portage version: 2.1.9.26/cvs/Linux x86_64)
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,