aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-02-17 22:37:04 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-02-17 22:37:04 +0000
commit99809048a70f206917343e32c3ba7cb0e3cb42eb (patch)
tree9b3aebb1431b4e32d0cbcff6c88d9194fd4e410a /package
parent47a82d2dad266b8247e3796ac461cbe5caaf7ec5 (diff)
downloadupstream-99809048a70f206917343e32c3ba7cb0e3cb42eb.tar.gz
upstream-99809048a70f206917343e32c3ba7cb0e3cb42eb.tar.bz2
upstream-99809048a70f206917343e32c3ba7cb0e3cb42eb.zip
[package] mac80211: add compile fix for pre-2.6.32 kernels
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19692 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/900-linux-2.6.30-compat.patch14
1 files changed, 14 insertions, 0 deletions
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
index 0000000000..de46545116
--- /dev/null
+++ b/package/mac80211/patches/900-linux-2.6.30-compat.patch
@@ -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;