[03/10] batman-adv: add generic netlink query API to replace debugfs files
Commit Message
On Friday 29 April 2016 21:55:32 Sven Eckelmann wrote:
[...]
> But there is now still the problem that info->snd_portid was previously
> called info->snd_pid. Also the genl_register_family_with_ops compat has to
> be added.
I don't have a better idea for the snd_portid right now than the attached
patch.
The seems to be already solved by backports.git but I will not try to
understand their hacks tonight.
https://git.kernel.org/cgit/linux/kernel/git/backports/backports.git/tree/backport/backport-include/net/genetlink.h?id=a91a3e6e3a6ed6cdbbe942bafe05ae5fcdf41ce9
Kind regards,
Sven
From: Sven Eckelmann <sven@narfation.org>
Date: Fri, 29 Apr 2016 22:10:20 +0200
Subject: [PATCH] add snd_portid hack
---
compat.h | 6 ++++++
1 file changed, 6 insertions(+)
@@ -62,6 +62,12 @@ static int __batadv_interface_kill_vid(struct net_device *dev, __be16 proto,\
#endif /* < KERNEL_VERSION(3, 3, 0) */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 7, 0)
+
+#define snd_portid snd_pid
+
+#endif /* < KERNEL_VERSION(3, 7, 0) */
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0)
#define batadv_interface_set_mac_addr(x, y) \