On Saturday, May 21, 2016 16:30:53 Sven Eckelmann wrote:
On Saturday 21 May 2016 21:35:55 Antonio Quartulli wrote:
Some fields in the hard-interface data structure are specific to the B.A.T.M.A.N. V protocol and have to be initialized only when such protocol is compiled in. Instead of having a #ifdef block in the middle of the hard-interface.c code it is better to have an algorithm private function that hides the precompiler logic in its own header file (like other functions).
Fixes: ffd2f27908e5 ("batman-adv: Only init ELP tweaking options when BATMAN_V is enabled") Signed-off-by: Antonio Quartulli a@unstable.cc
Reviewed-by: Sven Eckelmann sven@narfation.org
Applied in revision 713586f.
Thanks, Marek