summaryrefslogtreecommitdiffhomepage
path: root/wireless.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-29 20:31:26 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-06-29 20:31:26 +0200
commita3bf8cbe10b0bad85475f4c3dc2bae4afb65774b (patch)
tree76b05f206dee6b86e1d32a54e760945b94340e3a /wireless.c
parent61e627ed78ed47e40cc63a24ff8fb2f5fb2c418f (diff)
bridge: enable multicast_to_unicast on all wireless bridge ports
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'wireless.c')
-rw-r--r--wireless.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wireless.c b/wireless.c
index 0e293a0..c0f3b71 100644
--- a/wireless.c
+++ b/wireless.c
@@ -202,6 +202,12 @@ static void wireless_interface_handle_link(struct wireless_interface *vif, bool
if (!vif->network || !vif->ifname)
return;
+ if (up) {
+ struct device *dev = device_get(vif->ifname, 2);
+ if (dev)
+ dev->wireless = true;
+ }
+
blobmsg_for_each_attr(cur, vif->network, rem) {
network = blobmsg_data(cur);