Staging: batman-adv: Unify sysfs file names with their bat_priv atomics
[cascardo/linux.git] / drivers / staging / batman-adv / routing.c
index 3946c7c..1b35486 100644 (file)
@@ -1019,7 +1019,7 @@ struct neigh_node *find_router(struct bat_priv *bat_priv,
        /* without bonding, the first node should
         * always choose the default router. */
 
-       bonding_enabled = atomic_read(&bat_priv->bonding_enabled);
+       bonding_enabled = atomic_read(&bat_priv->bonding);
 
        if ((!recv_if) && (!bonding_enabled))
                return orig_node->router;
@@ -1168,7 +1168,7 @@ int route_unicast_packet(struct sk_buff *skb, struct batman_if *recv_if,
        unicast_packet = (struct unicast_packet *)skb->data;
 
        if (unicast_packet->packet_type == BAT_UNICAST &&
-           atomic_read(&bat_priv->frag_enabled) &&
+           atomic_read(&bat_priv->fragmentation) &&
            skb->len > batman_if->net_dev->mtu)
                return frag_send_skb(skb, bat_priv, batman_if,
                                     dstaddr);