[linux-next] LinuxNextTracking branch, master, updated. next-20161122

batman at open-mesh.org batman at open-mesh.org
Wed Nov 23 00:15:59 CET 2016

The following commit has been merged in the master branch:
commit ee3b5e9fe8400fac8e0d08db7c5c985df0234f64
Author: Sven Eckelmann <sven.eckelmann at open-mesh.com>
Date:   Fri Sep 30 15:21:06 2016 +0200

    batman-adv: Update wifi flags on upper link change
    Things like VLANs don't have their link set when they are created. Thus
    the wifi flags have to be evaluated later to fix their contents for the
    link interface.
    Signed-off-by: Sven Eckelmann <sven.eckelmann at open-mesh.com>
    Signed-off-by: Simon Wunderlich <sw at simonwunderlich.de>

diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c
index ca743a5..61a431a 100644
--- a/net/batman-adv/hard-interface.c
+++ b/net/batman-adv/hard-interface.c
@@ -1006,6 +1006,11 @@ static int batadv_hard_if_event(struct notifier_block *this,
 		if (hard_iface == primary_if)
 			batadv_primary_if_update_addr(bat_priv, NULL);
+		hard_iface->wifi_flags = batadv_wifi_flags_evaluate(net_dev);
+		if (batadv_is_wifi_hardif(hard_iface))
+			hard_iface->num_bcasts = BATADV_NUM_BCASTS_WIRELESS;
+		break;


More information about the linux-merge mailing list