aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2015-12-06 13:31:58 +0000
committerHauke Mehrtens <hauke@openwrt.org>2015-12-06 13:31:58 +0000
commitdcbf45cffd649d36abd119f61d9d9bd2cd1de992 (patch)
treef2d9a41fe905dff32fe3deb52b1197cdf9012914 /package/kernel/mac80211/patches
parent058db0be70edd1676793c9cc07ece8e1ffadaef9 (diff)
downloadmaster-187ad058-dcbf45cffd649d36abd119f61d9d9bd2cd1de992.tar.gz
master-187ad058-dcbf45cffd649d36abd119f61d9d9bd2cd1de992.tar.bz2
master-187ad058-dcbf45cffd649d36abd119f61d9d9bd2cd1de992.zip
mac80211: fix build of mac80211-hwsim on kernel 4.4
This genl_notify() backport should not be applied for kernel 4.4. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47795 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches')
-rw-r--r--package/kernel/mac80211/patches/020-header-fix-genl_notify-on-kernel-4.4.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/020-header-fix-genl_notify-on-kernel-4.4.patch b/package/kernel/mac80211/patches/020-header-fix-genl_notify-on-kernel-4.4.patch
new file mode 100644
index 0000000000..a15f30c872
--- /dev/null
+++ b/package/kernel/mac80211/patches/020-header-fix-genl_notify-on-kernel-4.4.patch
@@ -0,0 +1,28 @@
+From 7a6e8b70a956a722f90d551e920c1096a9455b54 Mon Sep 17 00:00:00 2001
+From: Hauke Mehrtens <hauke@hauke-m.de>
+Date: Sat, 5 Dec 2015 14:10:28 +0100
+Subject: [PATCH 07/12] header: fix genl_notify() on kernel 4.4
+
+The change of the parameters of genl_notify() is in kernel 4.4. This
+backport should not be applied for kernel 4.4 and newer kernel versions.
+
+Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
+---
+ backport/backport-include/net/genetlink.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/backport-include/net/genetlink.h
++++ b/backport-include/net/genetlink.h
+@@ -146,10 +146,12 @@ backport_genlmsg_multicast_allns(struct
+ #define __genl_const
+ #else /* < 3.13 */
+ #define __genl_const const
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
+ #define genl_notify(_fam, _skb, _info, _group, _flags) \
+ genl_notify(_fam, _skb, genl_info_net(_info), \
+ genl_info_snd_portid(_info), \
+ _group, _info->nlhdr, _flags)
++#endif /* < 4.4 */
+ #endif /* < 3.13 */
+
+ #endif /* __BACKPORT_NET_GENETLINK_H */