From 74e9124611b10d3d7bc353b082b6348211314da9 Mon Sep 17 00:00:00 2001 From: Sven Eckelmann Date: Sat, 19 May 2018 00:30:28 +0200 Subject: [PATCH] batman-adv: Add compat for link_ksettings->base.autoneg Signed-off-by: Sven Eckelmann --- batman-adv/files/compat-hacks.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/batman-adv/files/compat-hacks.h b/batman-adv/files/compat-hacks.h index d35cece..0cf8e31 100644 --- a/batman-adv/files/compat-hacks.h +++ b/batman-adv/files/compat-hacks.h @@ -98,6 +98,7 @@ struct batadv_ethtool_link_ksettings { struct { __u32 speed; __u8 duplex; + __u8 autoneg; } base; }; @@ -119,6 +120,7 @@ batadv_ethtool_get_link_ksettings(struct net_device *dev, link_ksettings->base.duplex = cmd.duplex; link_ksettings->base.speed = ethtool_cmd_speed(&cmd); + link_ksettings->base.autoneg = cmd.autoneg; return 0; } -- 2.30.2