aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/120-linux-2.6.30-compat.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-02-19 00:47:28 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-02-19 00:47:28 +0000
commitb3caca36778acd3230a94c8e91f206c09f8cc442 (patch)
tree4f76086722cadef99b82902f7b40ef09e47b4692 /package/mac80211/patches/120-linux-2.6.30-compat.patch
parentd38ce9313b0cbe3f48edec87ee23e9f5be523a06 (diff)
downloadupstream-b3caca36778acd3230a94c8e91f206c09f8cc442.tar.gz
upstream-b3caca36778acd3230a94c8e91f206c09f8cc442.tar.bz2
upstream-b3caca36778acd3230a94c8e91f206c09f8cc442.zip
mac80211: move the 2.6.30 compat patch to the other compat patches
SVN-Revision: 19715
Diffstat (limited to 'package/mac80211/patches/120-linux-2.6.30-compat.patch')
-rw-r--r--package/mac80211/patches/120-linux-2.6.30-compat.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/mac80211/patches/120-linux-2.6.30-compat.patch b/package/mac80211/patches/120-linux-2.6.30-compat.patch
new file mode 100644
index 0000000000..de46545116
--- /dev/null
+++ b/package/mac80211/patches/120-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;