batman-adv: don't compile the BLA switch if not requested
authorAntonio Quartulli <ordex@autistici.org>
Mon, 26 Nov 2012 00:27:29 +0000 (01:27 +0100)
committerAntonio Quartulli <ordex@autistici.org>
Sat, 12 Jan 2013 10:58:22 +0000 (20:58 +1000)
commitfa706554d6553331e886ce6fb86ca40b6dbc2083
treeb68eb55c1ce66c7638eba6390921fe01772f0b45
parent3f87c4239fa1df61beffbee2ca00e8ffbe31a5e3
batman-adv: don't compile the BLA switch if not requested

When the Bridge Loop Avoidance component is not compiled-in, its boolean switch
should be not compiled as well. This patch surrounds the switch with a proper
ifdef.

This behaviour was introduced by 9fd6b0615b5499b270d39a92b8790e206cf75833
("batman-adv: add bridge loop avoidance compile option")

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Acked-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/soft-interface.c
net/batman-adv/types.h