]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0457d71079f005a99a47dfd43857b3e4967c6bdd
tree29841e9fd46c7fe622b5fe3520cf777d7b5cbc6a
parentad6dd815862b4fd079b459a86409c58f6316d57f
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