mirror of
https://github.com/openwrt/routing.git
synced 2026-06-17 17:01:55 +04:00
batman-adv: Add compat for link_ksettings->base.autoneg
Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user