batman-adv: Use ethtool helper to get link status
authorSven Eckelmann <sven@narfation.org>
Sat, 1 Apr 2017 12:47:03 +0000 (14:47 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Mon, 3 Apr 2017 10:57:06 +0000 (12:57 +0200)
commit2f249e99c7cda7107ac52f0319c89bed9a6431d3
tree7586d833cbe486235763439fbea292ed1039bd81
parente2d9ba43559e5fcd94a365ba86718332737b0817
batman-adv: Use ethtool helper to get link status

The ethtool_ops of batman-adv never contained more than a stub for the
get_link function pointer. It was always returning that a link exists even
when the devices was not yet up and therefore nothing resampling a link
could have been available.

Instead use the ethtool helper which returns the current carrier state.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Acked-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/soft-interface.c