summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/soft-interface.c
diff options
context:
space:
mode:
authorMarek Lindner <lindner_marek@yahoo.de>2012-12-16 13:53:15 +0800
committerAntonio Quartulli <ordex@autistici.org>2013-01-12 20:58:23 +1000
commit0c430d0d7b8bafa74959a84156ef0bda1417a3d4 (patch)
tree32e476273adc485ffe0e5f8751086219ef8b94af /net/batman-adv/soft-interface.c
parent9338026107166b54d54ef875978c9c3dca3aaee5 (diff)
downloadop-kernel-dev-0c430d0d7b8bafa74959a84156ef0bda1417a3d4.zip
op-kernel-dev-0c430d0d7b8bafa74959a84156ef0bda1417a3d4.tar.gz
batman-adv: unbloat batadv_priv if debug is not enabled
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/soft-interface.c')
-rw-r--r--net/batman-adv/soft-interface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c
index 57714f8..3d68166 100644
--- a/net/batman-adv/soft-interface.c
+++ b/net/batman-adv/soft-interface.c
@@ -493,7 +493,9 @@ struct net_device *batadv_softif_create(const char *name)
atomic_set(&bat_priv->gw_bandwidth, 41);
atomic_set(&bat_priv->orig_interval, 1000);
atomic_set(&bat_priv->hop_penalty, 30);
+#ifdef CONFIG_BATMAN_ADV_DEBUG
atomic_set(&bat_priv->log_level, 0);
+#endif
atomic_set(&bat_priv->fragmentation, 1);
atomic_set(&bat_priv->bcast_queue_left, BATADV_BCAST_QUEUE_LEN);
atomic_set(&bat_priv->batman_queue_left, BATADV_BATMAN_QUEUE_LEN);
OpenPOWER on IntegriCloud