diff options
author | Antonio Quartulli <ordex@autistici.org> | 2011-04-27 00:22:00 +0200 |
---|---|---|
committer | Sven Eckelmann <sven@narfation.org> | 2011-06-20 11:37:35 +0200 |
commit | 2265c141086474bbae55a5bb3afa1ebb78ccaa7c (patch) | |
tree | f932bcdfa2ff8a6a2b442252e7167b90363bfa4d /net/batman-adv/main.c | |
parent | c6bda689c2c94788e1e567463ce861d1f135857f (diff) | |
download | linux-2265c141086474bbae55a5bb3afa1ebb78ccaa7c.tar.bz2 |
batman-adv: gateway election code refactoring
The gateway election mechanism has been a little revised. Now the
gw_election is trigered by an atomic_t flag (gw_reselect) which is set
to 1 in case of election needed, avoding to set curr_gw to NULL.
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/main.c')
-rw-r--r-- | net/batman-adv/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c index c2b06b71d574..e367e690a9f6 100644 --- a/net/batman-adv/main.c +++ b/net/batman-adv/main.c @@ -113,6 +113,7 @@ int mesh_init(struct net_device *soft_iface) if (vis_init(bat_priv) < 1) goto err; + atomic_set(&bat_priv->gw_reselect, 0); atomic_set(&bat_priv->mesh_state, MESH_ACTIVE); goto end; |