batman-adv: Return EINVAL on invalid gw_bandwidth change
authorSven Eckelmann <sven@narfation.org>
Sun, 21 Jun 2015 12:42:49 +0000 (14:42 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Mon, 24 Aug 2015 22:12:21 +0000 (00:12 +0200)
commit77927b7d9dd6c9c5f59f0f49c76cda54b908090e
tree15a4c680aeecebfeea3517da29b2dc764f28ce81
parenta121048a89f8186fa2c8388d5b41528466013857
batman-adv: Return EINVAL on invalid gw_bandwidth change

Invalid speed settings by the user are currently acknowledged as correct
but not stored. Instead the return of the store operation of the file
"gw_bandwidth" should indicate that the given value is not acceptable.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/gateway_common.c