summaryrefslogtreecommitdiffstats
path: root/network/broadcom-sta/wl_linux.c-semaphore.patch
blob: 8cdd7306f475cd9ad1b1f679fa8b326ca8f655b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Nur orig//src/wl/sys/wl_linux.c fixed/src/wl/sys/wl_linux.c
--- orig//src/wl/sys/wl_linux.c	2010-12-14 19:58:07.000000000 -0600
+++ fixed/src/wl/sys/wl_linux.c	2011-03-09 12:32:47.236260917 -0600
@@ -482,7 +482,7 @@
 #ifdef WL_ALL_PASSIVE
 		spin_lock_init(&wl->txq_lock);
 #endif 
-		init_MUTEX(&wl->sem);
+		sema_init(&wl->sem,1);
 	}
 
 	if (!(wl->wlc = wlc_attach((void *) wl, vendor, device, unit, wl->piomode,