batman-adv: Don't manually reattach hard-interface
authorSven Eckelmann <sven@narfation.org>
Tue, 1 Jun 2021 21:52:48 +0000 (23:52 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Wed, 2 Jun 2021 20:25:45 +0000 (22:25 +0200)
commit170258ce1c71dc4e03d5cb92b5f03cfb01941514
treeb86b4ac09d03e04dfae1347fa61230dfed111211
parentfa205602d46e0b66c0c90672bce8b36e5de449df
batman-adv: Don't manually reattach hard-interface

The batadv_hardif_enable_interface is now only called from the callback
ndo_add_slave. This callback is only used by do_set_master in the rtnetlink
code which only does two things:

1. remove the net_device from its old master
2. add the net_device to its new batadv master

The code to replicate the first step in batman-adv is therefore unused
since the sysfs code was dropped.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/hard-interface.c