aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/gateway_client.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-06-03 16:19:18 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-07-01 16:47:18 -0400
commitcd646ab1e2edde9faeff52bbc1b40e58a5e381fc (patch)
tree7608bcfc6054333d482d83a5d77276b6ee2a182a /net/batman-adv/gateway_client.c
parenta59a4d1921664da63d801ba477950114c71c88c9 (diff)
batman-adv: Prefix gateway 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/gateway_client.c')
-rw-r--r--net/batman-adv/gateway_client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/batman-adv/gateway_client.c b/net/batman-adv/gateway_client.c
index 5fc162c8425a..2fcf26f5b9c5 100644
--- a/net/batman-adv/gateway_client.c
+++ b/net/batman-adv/gateway_client.c
@@ -194,7 +194,7 @@ void batadv_gw_election(struct bat_priv *bat_priv)
194 * hear about. This check is based on the daemon's uptime which we 194 * hear about. This check is based on the daemon's uptime which we
195 * don't have. 195 * don't have.
196 */ 196 */
197 if (atomic_read(&bat_priv->gw_mode) != GW_MODE_CLIENT) 197 if (atomic_read(&bat_priv->gw_mode) != BATADV_GW_MODE_CLIENT)
198 goto out; 198 goto out;
199 199
200 if (!batadv_atomic_dec_not_zero(&bat_priv->gw_reselect)) 200 if (!batadv_atomic_dec_not_zero(&bat_priv->gw_reselect))
@@ -663,13 +663,13 @@ bool batadv_gw_out_of_range(struct bat_priv *bat_priv,
663 goto out; 663 goto out;
664 664
665 switch (atomic_read(&bat_priv->gw_mode)) { 665 switch (atomic_read(&bat_priv->gw_mode)) {
666 case GW_MODE_SERVER: 666 case BATADV_GW_MODE_SERVER:
667 /* If we are a GW then we are our best GW. We can artificially 667 /* If we are a GW then we are our best GW. We can artificially
668 * set the tq towards ourself as the maximum value 668 * set the tq towards ourself as the maximum value
669 */ 669 */
670 curr_tq_avg = BATADV_TQ_MAX_VALUE; 670 curr_tq_avg = BATADV_TQ_MAX_VALUE;
671 break; 671 break;
672 case GW_MODE_CLIENT: 672 case BATADV_GW_MODE_CLIENT:
673 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); 673 curr_gw = batadv_gw_get_selected_gw_node(bat_priv);
674 if (!curr_gw) 674 if (!curr_gw)
675 goto out; 675 goto out;
@@ -689,7 +689,7 @@ bool batadv_gw_out_of_range(struct bat_priv *bat_priv,
689 689
690 curr_tq_avg = neigh_curr->tq_avg; 690 curr_tq_avg = neigh_curr->tq_avg;
691 break; 691 break;
692 case GW_MODE_OFF: 692 case BATADV_GW_MODE_OFF:
693 default: 693 default:
694 goto out; 694 goto out;
695 } 695 }