summaryrefslogtreecommitdiffhomepage
path: root/system-linux.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-09-10 22:59:33 +0200
committerFelix Fietkau <nbd@openwrt.org>2015-09-10 22:59:34 +0200
commit03834f80dc526cc3ed6c1a78730bb393f202277c (patch)
tree9e0554ffe333562af5b62a8a3d78efe2692bf530 /system-linux.c
parenta8f7addd5fca0af20a5942149711acc8bb35c5ce (diff)
wireless: fix mcast_to_ucast handling, only apply it to AP mode
Fixes a regression that caused WDS stations to repeat packets back to the AP. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'system-linux.c')
-rw-r--r--system-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system-linux.c b/system-linux.c
index 01500a5..f51c078 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -576,7 +576,7 @@ static char *system_get_bridge(const char *name, char *buf, int buflen)
static void
system_bridge_set_wireless(struct device *bridge, struct device *dev)
{
- bool mcast_to_ucast = true;
+ bool mcast_to_ucast = dev->wireless_ap;
bool hairpin = true;
if (bridge->settings.flags & DEV_OPT_MULTICAST_TO_UNICAST &&