json_select "$_w_iface"
if [ -n "$_w_types" ]; then
json_get_var network_bridge bridge
+ json_get_var network_ifname bridge-ifname
json_get_var multicast_to_unicast multicast_to_unicast
json_select config
_wireless_set_brsnoop_isolation "$multicast_to_unicast"
vif_config_add_bridge(struct blob_buf *buf, struct blob_attr *networks, bool prepare)
{
struct interface *iface;
- struct device *dev = NULL;
+ struct device *dev = NULL, *orig_dev;
struct blob_attr *cur;
const char *network;
int rem;
if (!dev)
return;
+ orig_dev = dev;
if (dev->hotplug_ops && dev->hotplug_ops->prepare)
dev->hotplug_ops->prepare(dev, &dev);
return;
blobmsg_add_string(buf, "bridge", dev->ifname);
+ blobmsg_add_string(buf, "bridge-ifname", orig_dev->ifname);
if (dev->settings.flags & DEV_OPT_MULTICAST_TO_UNICAST)
blobmsg_add_u8(buf, "multicast_to_unicast",