aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/hard-interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/batman-adv/hard-interface.c')
-rw-r--r--net/batman-adv/hard-interface.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c
index 68b667c1d85e..ff5ba406b1cf 100644
--- a/net/batman-adv/hard-interface.c
+++ b/net/batman-adv/hard-interface.c
@@ -28,7 +28,6 @@
28#include "bat_sysfs.h" 28#include "bat_sysfs.h"
29#include "originator.h" 29#include "originator.h"
30#include "hash.h" 30#include "hash.h"
31#include "bat_ogm.h"
32 31
33#include <linux/if_arp.h> 32#include <linux/if_arp.h>
34 33
@@ -147,7 +146,7 @@ static void primary_if_select(struct bat_priv *bat_priv,
147 if (!new_hard_iface) 146 if (!new_hard_iface)
148 return; 147 return;
149 148
150 bat_ogm_init_primary(new_hard_iface); 149 bat_priv->bat_algo_ops->bat_ogm_init_primary(new_hard_iface);
151 primary_if_update_addr(bat_priv); 150 primary_if_update_addr(bat_priv);
152} 151}
153 152
@@ -233,7 +232,7 @@ static void hardif_activate_interface(struct hard_iface *hard_iface)
233 232
234 bat_priv = netdev_priv(hard_iface->soft_iface); 233 bat_priv = netdev_priv(hard_iface->soft_iface);
235 234
236 bat_ogm_update_mac(hard_iface); 235 bat_priv->bat_algo_ops->bat_ogm_update_mac(hard_iface);
237 hard_iface->if_status = IF_TO_BE_ACTIVATED; 236 hard_iface->if_status = IF_TO_BE_ACTIVATED;
238 237
239 /** 238 /**
@@ -315,7 +314,7 @@ int hardif_enable_interface(struct hard_iface *hard_iface,
315 hard_iface->soft_iface = soft_iface; 314 hard_iface->soft_iface = soft_iface;
316 bat_priv = netdev_priv(hard_iface->soft_iface); 315 bat_priv = netdev_priv(hard_iface->soft_iface);
317 316
318 bat_ogm_init(hard_iface); 317 bat_priv->bat_algo_ops->bat_ogm_init(hard_iface);
319 318
320 if (!hard_iface->packet_buff) { 319 if (!hard_iface->packet_buff) {
321 bat_err(hard_iface->soft_iface, "Can't add interface packet " 320 bat_err(hard_iface->soft_iface, "Can't add interface packet "
@@ -535,9 +534,10 @@ static int hard_if_event(struct notifier_block *this,
535 goto hardif_put; 534 goto hardif_put;
536 535
537 check_known_mac_addr(hard_iface->net_dev); 536 check_known_mac_addr(hard_iface->net_dev);
538 bat_ogm_update_mac(hard_iface);
539 537
540 bat_priv = netdev_priv(hard_iface->soft_iface); 538 bat_priv = netdev_priv(hard_iface->soft_iface);
539 bat_priv->bat_algo_ops->bat_ogm_update_mac(hard_iface);
540
541 primary_if = primary_if_get_selected(bat_priv); 541 primary_if = primary_if_get_selected(bat_priv);
542 if (!primary_if) 542 if (!primary_if)
543 goto hardif_put; 543 goto hardif_put;