Repository : ssh://git@open-mesh.org/openwrt-feed-devel
On branch : master
commit be405690bda047348f9d1aadfc0431766734901f Author: Marek Lindner mareklindner@neomailbox.ch Date: Fri May 6 00:04:59 2016 +0800
batman-adv-devel: add compat support for netif_trans_update()
Signed-off-by: Marek Lindner mareklindner@neomailbox.ch
be405690bda047348f9d1aadfc0431766734901f batman-adv-devel/files/compat-hacks.h | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/batman-adv-devel/files/compat-hacks.h b/batman-adv-devel/files/compat-hacks.h index 5126fc2..a910c2d 100644 --- a/batman-adv-devel/files/compat-hacks.h +++ b/batman-adv-devel/files/compat-hacks.h @@ -74,3 +74,13 @@ batadv_ethtool_get_link_ksettings(struct net_device *dev, }
#endif /* < KERNEL_VERSION(4, 6, 0) */ + +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0) + +#define netif_trans_update batadv_netif_trans_update +static inline void batadv_netif_trans_update(struct net_device *dev) +{ + dev->trans_start = jiffies; +} + +#endif /* < KERNEL_VERSION(4, 7, 0) */