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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c
index c1ba6e28a96c..340108411c4d 100644
--- a/net/batman-adv/hard-interface.c
+++ b/net/batman-adv/hard-interface.c
@@ -263,6 +263,7 @@ int batadv_hardif_enable_interface(struct hard_iface *hard_iface,
263{ 263{
264 struct bat_priv *bat_priv; 264 struct bat_priv *bat_priv;
265 struct net_device *soft_iface; 265 struct net_device *soft_iface;
266 __be16 ethertype = __constant_htons(BATADV_ETH_P_BATMAN);
266 int ret; 267 int ret;
267 268
268 if (hard_iface->if_status != IF_NOT_IN_USE) 269 if (hard_iface->if_status != IF_NOT_IN_USE)
@@ -309,7 +310,7 @@ int batadv_hardif_enable_interface(struct hard_iface *hard_iface,
309 hard_iface->if_status = IF_INACTIVE; 310 hard_iface->if_status = IF_INACTIVE;
310 batadv_orig_hash_add_if(hard_iface, bat_priv->num_ifaces); 311 batadv_orig_hash_add_if(hard_iface, bat_priv->num_ifaces);
311 312
312 hard_iface->batman_adv_ptype.type = __constant_htons(ETH_P_BATMAN); 313 hard_iface->batman_adv_ptype.type = ethertype;
313 hard_iface->batman_adv_ptype.func = batadv_batman_skb_recv; 314 hard_iface->batman_adv_ptype.func = batadv_batman_skb_recv;
314 hard_iface->batman_adv_ptype.dev = hard_iface->net_dev; 315 hard_iface->batman_adv_ptype.dev = hard_iface->net_dev;
315 dev_add_pack(&hard_iface->batman_adv_ptype); 316 dev_add_pack(&hard_iface->batman_adv_ptype);