diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2011-11-28 04:40:17 -0500 |
---|---|---|
committer | Marek Lindner <lindner_marek@yahoo.de> | 2012-02-16 13:50:20 -0500 |
commit | 1c280471b013e26c833fc86acc231c73442cfa21 (patch) | |
tree | ff48395664f514b1c8f2f14e78c5b3c4da653702 /net/batman-adv/soft-interface.c | |
parent | 6e242f9037f8a82ce2608c20a5460b670b2d5ff4 (diff) |
batman-adv: add infrastructure to change routing algorithm at runtime
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/soft-interface.c')
-rw-r--r-- | net/batman-adv/soft-interface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index bd8c7cfaeacf..b5aecd5e45cc 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c | |||
@@ -855,6 +855,10 @@ struct net_device *softif_create(const char *name) | |||
855 | bat_priv->primary_if = NULL; | 855 | bat_priv->primary_if = NULL; |
856 | bat_priv->num_ifaces = 0; | 856 | bat_priv->num_ifaces = 0; |
857 | 857 | ||
858 | ret = bat_algo_select(bat_priv, bat_routing_algo); | ||
859 | if (ret < 0) | ||
860 | goto unreg_soft_iface; | ||
861 | |||
858 | ret = sysfs_add_meshif(soft_iface); | 862 | ret = sysfs_add_meshif(soft_iface); |
859 | if (ret < 0) | 863 | if (ret < 0) |
860 | goto unreg_soft_iface; | 864 | goto unreg_soft_iface; |