aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/batman-adv/main.c')
-rw-r--r--net/batman-adv/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c
index b3f0a2e5e2ef..24d651da6fd7 100644
--- a/net/batman-adv/main.c
+++ b/net/batman-adv/main.c
@@ -132,7 +132,7 @@ int batadv_mesh_init(struct net_device *soft_iface)
132 goto err; 132 goto err;
133 133
134 atomic_set(&bat_priv->gw_reselect, 0); 134 atomic_set(&bat_priv->gw_reselect, 0);
135 atomic_set(&bat_priv->mesh_state, MESH_ACTIVE); 135 atomic_set(&bat_priv->mesh_state, BATADV_MESH_ACTIVE);
136 136
137 return 0; 137 return 0;
138 138
@@ -145,7 +145,7 @@ void batadv_mesh_free(struct net_device *soft_iface)
145{ 145{
146 struct bat_priv *bat_priv = netdev_priv(soft_iface); 146 struct bat_priv *bat_priv = netdev_priv(soft_iface);
147 147
148 atomic_set(&bat_priv->mesh_state, MESH_DEACTIVATING); 148 atomic_set(&bat_priv->mesh_state, BATADV_MESH_DEACTIVATING);
149 149
150 batadv_purge_outstanding_packets(bat_priv, NULL); 150 batadv_purge_outstanding_packets(bat_priv, NULL);
151 151
@@ -160,7 +160,7 @@ void batadv_mesh_free(struct net_device *soft_iface)
160 160
161 free_percpu(bat_priv->bat_counters); 161 free_percpu(bat_priv->bat_counters);
162 162
163 atomic_set(&bat_priv->mesh_state, MESH_INACTIVE); 163 atomic_set(&bat_priv->mesh_state, BATADV_MESH_INACTIVE);
164} 164}
165 165
166void batadv_inc_module_count(void) 166void batadv_inc_module_count(void)
@@ -230,7 +230,7 @@ int batadv_batman_skb_recv(struct sk_buff *skb, struct net_device *dev,
230 230
231 bat_priv = netdev_priv(hard_iface->soft_iface); 231 bat_priv = netdev_priv(hard_iface->soft_iface);
232 232
233 if (atomic_read(&bat_priv->mesh_state) != MESH_ACTIVE) 233 if (atomic_read(&bat_priv->mesh_state) != BATADV_MESH_ACTIVE)
234 goto err_free; 234 goto err_free;
235 235
236 /* discard frames on not active interfaces */ 236 /* discard frames on not active interfaces */
@@ -240,7 +240,7 @@ int batadv_batman_skb_recv(struct sk_buff *skb, struct net_device *dev,
240 batman_ogm_packet = (struct batman_ogm_packet *)skb->data; 240 batman_ogm_packet = (struct batman_ogm_packet *)skb->data;
241 241
242 if (batman_ogm_packet->header.version != BATADV_COMPAT_VERSION) { 242 if (batman_ogm_packet->header.version != BATADV_COMPAT_VERSION) {
243 batadv_dbg(DBG_BATMAN, bat_priv, 243 batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
244 "Drop packet: incompatible batman version (%i)\n", 244 "Drop packet: incompatible batman version (%i)\n",
245 batman_ogm_packet->header.version); 245 batman_ogm_packet->header.version);
246 goto err_free; 246 goto err_free;