|
@@ -70,11 +70,6 @@ static int batadv_v_iface_enable(struct batadv_hard_iface *hard_iface)
|
|
|
if (ret < 0)
|
|
|
batadv_v_elp_iface_disable(hard_iface);
|
|
|
|
|
|
- /* enable link throughput auto-detection by setting the throughput
|
|
|
- * override to zero
|
|
|
- */
|
|
|
- atomic_set(&hard_iface->bat_v.throughput_override, 0);
|
|
|
-
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
@@ -338,6 +333,20 @@ static struct batadv_algo_ops batadv_batman_v __read_mostly = {
|
|
|
.bat_neigh_print = batadv_v_neigh_print,
|
|
|
};
|
|
|
|
|
|
+/**
|
|
|
+ * batadv_v_hardif_init - initialize the algorithm specific fields in the
|
|
|
+ * hard-interface object
|
|
|
+ * @hard_iface: the hard-interface to initialize
|
|
|
+ */
|
|
|
+void batadv_v_hardif_init(struct batadv_hard_iface *hard_iface)
|
|
|
+{
|
|
|
+ /* enable link throughput auto-detection by setting the throughput
|
|
|
+ * override to zero
|
|
|
+ */
|
|
|
+ atomic_set(&hard_iface->bat_v.throughput_override, 0);
|
|
|
+ atomic_set(&hard_iface->bat_v.elp_interval, 500);
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* batadv_v_mesh_init - initialize the B.A.T.M.A.N. V private resources for a
|
|
|
* mesh
|