batman-adv: init ELP tweaking options only once
authorMarek Lindner <mareklindner@neomailbox.ch>
Tue, 10 May 2016 14:31:59 +0000 (22:31 +0800)
committerSimon Wunderlich <sw@simonwunderlich.de>
Thu, 30 Jun 2016 08:29:43 +0000 (10:29 +0200)
commit7db682d1c39b2198a9c9d0bee5812d9c4329123d
tree14f9eef1514bf90cdfdc6f95c92ec5c7fd4afd8c
parent3a24a63e74af1bffc7aeb5d83adcd63b37e38425
batman-adv: init ELP tweaking options only once

The ELP interval and throughput override interface settings are initialized
with default settings on every time an interface is added to a mesh.
This patch prevents this behavior by moving the configuration init to the
interface detection routine which runs only once per interface.

Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
[a@unstable.cc: move initialization to batadv_v_hardif_init]
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/bat_algo.h
net/batman-adv/bat_v.c
net/batman-adv/bat_v_elp.c
net/batman-adv/hard-interface.c