summaryrefslogtreecommitdiff
path: root/vlan.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2020-11-18 13:38:17 +0100
committerFelix Fietkau <nbd@nbd.name>2020-11-18 13:38:19 +0100
commit351d690f1a09e062ef951ac406ee571e1f1fe3e6 (patch)
treea142451fac10848da5970c65ee3ac9ce92e0f2a9 /vlan.c
parent4a41135750d97e06d1f6d808a9d24bb4b472aca4 (diff)
downloadnetifd-351d690f1a09e062ef951ac406ee571e1f1fe3e6.tar.gz
wireless: fix passing bridge name for vlan hotplug pass-through
When preparing the interface for hotplug add, pass the bridge device back to the caller, since it may not match the original device Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'vlan.c')
-rw-r--r--vlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vlan.c b/vlan.c
index 647c6b7..e238461 100644
--- a/vlan.c
+++ b/vlan.c
@@ -69,7 +69,7 @@ vlan_hotplug_del(struct device *dev, struct device *member)
}
static int
-vlan_hotplug_prepare(struct device *dev)
+vlan_hotplug_prepare(struct device *dev, struct device **bridge_dev)
{
struct vlan_device *vldev = container_of(dev, struct vlan_device, dev);
@@ -77,7 +77,7 @@ vlan_hotplug_prepare(struct device *dev)
if (!dev || !dev->hotplug_ops)
return UBUS_STATUS_NOT_SUPPORTED;
- return dev->hotplug_ops->prepare(dev);
+ return dev->hotplug_ops->prepare(dev, bridge_dev);
}
static void vlan_hotplug_check(struct vlan_device *vldev, struct device *dev)