]> 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)
commit1a9c881599106dee8b5c38127ad8386916e5ac25
tree29841e9fd46c7fe622b5fe3520cf777d7b5cbc6a
parente469b54eaaa75d66d1414cce91ed3962d7f6e112
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