batman-adv: disable sysfs knobs when GW-mode is not implemented
authorAntonio Quartulli <a@unstable.cc>
Sun, 3 Jul 2016 10:46:35 +0000 (12:46 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 9 Aug 2016 05:54:30 +0000 (07:54 +0200)
commita8d8d1de414ee4c393ba43dbbf01eaf21a4f47bd
tree29841e9fd46c7fe622b5fe3520cf777d7b5cbc6a
parent50164d8f500f1cd211178f7b3d062987d68fe013
batman-adv: disable sysfs knobs when GW-mode is not implemented

Now that the GW-mode code is algorithm specific, batman-adv expects the
routing algorithm to implement some APIs to make it work.

However, such APIs are not mandatory, therefore we might have algorithms
not providing them. In this case all the sysfs knobs related to GW-mode
should be deactivated to make sure that settings injected by the user
for this feature are rejected.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/sysfs.c