diff options
author | Sven Eckelmann <sven.eckelmann@open-mesh.com> | 2016-09-30 15:21:06 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2016-11-08 19:02:38 +0100 |
commit | ee3b5e9fe8400fac8e0d08db7c5c985df0234f64 (patch) | |
tree | 88a20185a3ac70f31f4e6859286991aa65fb43da /net/batman-adv | |
parent | 1942de1bbac30118a96255af1d14d1449aeb1a38 (diff) | |
download | linux-riscv-ee3b5e9fe8400fac8e0d08db7c5c985df0234f64.tar.gz linux-riscv-ee3b5e9fe8400fac8e0d08db7c5c985df0234f64.tar.bz2 linux-riscv-ee3b5e9fe8400fac8e0d08db7c5c985df0234f64.zip |
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@open-mesh.com>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv')
-rw-r--r-- | net/batman-adv/hard-interface.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c index ca743a5e5680..61a431a9772b 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); break; + case NETDEV_CHANGEUPPER: + 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; default: break; } |