diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-06-03 16:19:22 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-07-01 16:47:19 -0400 |
commit | 39c75a51eda38ca5ce8b75f0a62a621eb3820a54 (patch) | |
tree | 22eb93745b165356b042c840e7581d844d9c2550 /net/batman-adv/soft-interface.c | |
parent | acd34afa89772f6379b642bb979d0a112328c769 (diff) |
batman-adv: Prefix main enum with BATADV_
Reported-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/soft-interface.c')
-rw-r--r-- | net/batman-adv/soft-interface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index 3aae91d0d59a..0a00324e67e3 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c | |||
@@ -105,7 +105,7 @@ static int batadv_interface_set_mac_addr(struct net_device *dev, void *p) | |||
105 | return -EADDRNOTAVAIL; | 105 | return -EADDRNOTAVAIL; |
106 | 106 | ||
107 | /* only modify transtable if it has been initialized before */ | 107 | /* only modify transtable if it has been initialized before */ |
108 | if (atomic_read(&bat_priv->mesh_state) == MESH_ACTIVE) { | 108 | if (atomic_read(&bat_priv->mesh_state) == BATADV_MESH_ACTIVE) { |
109 | batadv_tt_local_remove(bat_priv, dev->dev_addr, | 109 | batadv_tt_local_remove(bat_priv, dev->dev_addr, |
110 | "mac address changed", false); | 110 | "mac address changed", false); |
111 | batadv_tt_local_add(dev, addr->sa_data, BATADV_NULL_IFINDEX); | 111 | batadv_tt_local_add(dev, addr->sa_data, BATADV_NULL_IFINDEX); |
@@ -143,7 +143,7 @@ static int batadv_interface_tx(struct sk_buff *skb, | |||
143 | short vid __maybe_unused = -1; | 143 | short vid __maybe_unused = -1; |
144 | bool do_bcast = false; | 144 | bool do_bcast = false; |
145 | 145 | ||
146 | if (atomic_read(&bat_priv->mesh_state) != MESH_ACTIVE) | 146 | if (atomic_read(&bat_priv->mesh_state) != BATADV_MESH_ACTIVE) |
147 | goto dropped; | 147 | goto dropped; |
148 | 148 | ||
149 | soft_iface->trans_start = jiffies; | 149 | soft_iface->trans_start = jiffies; |
@@ -398,7 +398,7 @@ struct net_device *batadv_softif_create(const char *name) | |||
398 | atomic_set(&bat_priv->bcast_queue_left, BATADV_BCAST_QUEUE_LEN); | 398 | atomic_set(&bat_priv->bcast_queue_left, BATADV_BCAST_QUEUE_LEN); |
399 | atomic_set(&bat_priv->batman_queue_left, BATADV_BATMAN_QUEUE_LEN); | 399 | atomic_set(&bat_priv->batman_queue_left, BATADV_BATMAN_QUEUE_LEN); |
400 | 400 | ||
401 | atomic_set(&bat_priv->mesh_state, MESH_INACTIVE); | 401 | atomic_set(&bat_priv->mesh_state, BATADV_MESH_INACTIVE); |
402 | atomic_set(&bat_priv->bcast_seqno, 1); | 402 | atomic_set(&bat_priv->bcast_seqno, 1); |
403 | atomic_set(&bat_priv->ttvn, 0); | 403 | atomic_set(&bat_priv->ttvn, 0); |
404 | atomic_set(&bat_priv->tt_local_changes, 0); | 404 | atomic_set(&bat_priv->tt_local_changes, 0); |