package/madwifi: fix r23829 commit
[openwrt/openwrt.git] / package / madwifi / patches / 473-mutex_fix.patch
1 --- a/ath/if_athvar.h
2 +++ b/ath/if_athvar.h
3 @@ -991,5 +991,5 @@
4 #endif
5 /* Protects the device from concurrent accesses */
6 -#define ATH_LOCK_INIT(_sc) init_MUTEX(&(_sc)->sc_lock)
7 +#define ATH_LOCK_INIT(_sc) sema_init(&(_sc)->sc_lock, 1)
8 #define ATH_LOCK_DESTROY(_sc)
9 #define ATH_LOCK(_sc) down(&(_sc)->sc_lock)