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