summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/020-nl80211_fix.patch
blob: d7fb4df3e2ffb1a9687ed1a0f3ef281ef9a44836 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/compat/compat-2.6.37.c
+++ b/compat/compat-2.6.37.c
@@ -130,7 +130,8 @@ int compat_genl_register_family_with_ops
 		__copy(dumpit);
 		__copy(done);
 #undef __copy
-		ops[i].ops.doit = nl_doit_wrapper;
+		if (ops[i].doit)
+			ops[i].ops.doit = nl_doit_wrapper;
 		ret = genl_register_ops(&family->family, &ops[i].ops);
 		if (ret < 0)
 			goto error_ops;