[package] mac80211: add compile fix for pre-2.6.32 kernels
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 17 Feb 2010 22:37:04 +0000 (22:37 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 17 Feb 2010 22:37:04 +0000 (22:37 +0000)
SVN-Revision: 19692

package/mac80211/patches/900-linux-2.6.30-compat.patch [new file with mode: 0644]

diff --git a/package/mac80211/patches/900-linux-2.6.30-compat.patch b/package/mac80211/patches/900-linux-2.6.30-compat.patch
new file mode 100644 (file)
index 0000000..de46545
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/net/wireless/nl80211.c
++++ b/net/wireless/nl80211.c
+@@ -5667,7 +5667,11 @@
+               return err;
+       }
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
+       err = genlmsg_unicast(wiphy_net(&rdev->wiphy), msg, nlpid);
++#else
++      err = genlmsg_unicast(msg, nlpid);
++#endif
+       if (err < 0)
+               return err;
+       return 0;