diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-07-23 11:04:45 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-07-23 11:04:47 +0200 |
commit | 85f01c44a950be8518ce5a7d251b5bba219348cf (patch) | |
tree | 5b415838ce2606394aee5a37e61728a8290117ff /system-dummy.c | |
parent | 7f24a063475e1e2be4e0c516a5b62c3fae5ec542 (diff) | |
download | netifd-85f01c44a950be8518ce5a7d251b5bba219348cf.tar.gz |
bridge: check bridge port vlan membership on link-up events
When changing to a dfs channel, hostapd can bring down wlan interfaces and
reset their bridge membership. If that happens, the port loses its vlan
membership settings and needs to be reconfigured by netifd.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'system-dummy.c')
-rw-r--r-- | system-dummy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/system-dummy.c b/system-dummy.c index 6bf0f8b..b6b0050 100644 --- a/system-dummy.c +++ b/system-dummy.c @@ -66,6 +66,11 @@ int system_bridge_vlan(const char *iface, uint16_t vid, bool add, unsigned int v return 0; } +int system_bridge_vlan_check(struct device *dev, char *ifname) +{ + return 0; +} + int system_link_netns_move(struct device *dev, int netns_fd, const char *target_ifname) { D(SYSTEM, "ip link set %s name %s netns %d\n", dev->ifname, target_ifname, netns_fd); |